Play Audio File
This block plays an audio file through the device's audio output.
Configuration
- File Path: path to the
.mp3file to play, for example/SD:/chime.mp3. A variable or setting can be used so the file can be chosen at runtime. - Loop: when enabled, the audio repeats continuously until stopped.
- Volume: playback volume,
0to100.
Connections
- Done: executed once playback has been started.
Note
This block starts playback and continues immediately, it does not wait for the file to finish playing. Use Stop Audio to stop playback, which is the only way to end a looped file.
Audio output requires hardware with an audio output, such as Tibbit #48.
See also Stop Audio, Buzzer Pattern