Difference between revisions of "Block Audio"
(→AUDIO_PLAY_FILE) |
|||
| Line 15: | Line 15: | ||
|} | |} | ||
'''Example:'''<br> | '''Example:'''<br> | ||
| − | [[File:Block Audio play File.png]] | + | [[File:Block Audio play File.png]]<br> |
| + | Note: plays aaa.mp3 in folder "home" | ||
==== AUDIO_PLAY_HTTP ==== | ==== AUDIO_PLAY_HTTP ==== | ||
Revision as of 15:02, 5 October 2018
Contents
Audio library
Playback
AUDIO_PLAY_FILE
Plays audio file on given path
| Asynchronous interface | ||||
| in | FILENAME | string | file (with whole path) to play | |
Example:

Note: plays aaa.mp3 in folder "home"
AUDIO_PLAY_HTTP
Plays http audio stream on given url
| Asynchronous interface | ||||
| in | URL | string | url to audio stream | |
AUDIO_STOP
Stops actual playback
| Asynchronous interface |
Configuration
AUDIO_VOLUME
Sets volume to left and right audio channel
| Asynchronous interface | ||||
| in | VOL_L | uint | percent volume for left channel | |
| in | VOL_R | uint | percent volume for right channel | |


