Speaker
The StudioBot is equiped with a basic speaker. This is suitable for playing simple sounds and complex sounds that come from an MP3 source.
Basic Sounds
The most basic sounds can be a simple tone.
import board
from StudioBot import *
audio.tone(frequency=440, duration=2, volume=1)
Audio Off
To turn the audio off use the following command
audio.off()MP3 Files
Our Robot can actually play MP3 files.
Download the following file and place it on the CIRCUITPY drive.
Last updated