This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
docs:blox:examples-audio-i2s [2024/08/26 17:09] admin |
docs:blox:examples-audio-i2s [2024/08/26 17:20] (current) admin |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== 6.4.7 Audio: I2S ====== | ====== 6.4.7 Audio: I2S ====== | ||
| - | BLOX can be used to to play audio in more complicated projects via an external I2S Audio decoder module | + | BLOX can be used to to play audio in more complicated projects via an external I2S Audio decoder module. |
| + | |||
| + | I2S (Inter-IC Sound) is a serial bus interface standard used for connecting digital audio devices. It is designed to transmit high-quality audio data between devices, such as digital-to-analog converters (DACs), and microcontrollers. | ||
| ---- | ---- | ||
| Line 33: | Line 35: | ||
| {{: | {{: | ||
| + | |||
| + | Once Set up, wired and initialized - you can proceed to use the module to play sounds in your firmware | ||
| ---- | ---- | ||
| Line 38: | Line 42: | ||
| ===== 6.4.7.4 I2S Audio: Play audio files from SD Card ===== | ===== 6.4.7.4 I2S Audio: Play audio files from SD Card ===== | ||
| - | {{docs: | + | Place an audio file on the SD Card, and let your firmware play it |
| + | |||
| + | This can be used for audible notifications, | ||
| + | |||
| + | Tip: Not shown, but there are Play Next buttons etc as well | ||
| + | |||
| + | {{:docs: | ||
| + | |||
| + | You can also play the NEXT/PREV or RANDOM file (useful for jukebox like projects, random noises for halloween props etc) | ||
| + | |||
| + | {{: | ||
| ---- | ---- | ||
| ===== 6.4.7.5 I2S Audio: Play audio via stream URL ===== | ===== 6.4.7.5 I2S Audio: Play audio via stream URL ===== | ||
| + | |||
| + | Enable WIFI and let your firmware play a streamable audio link for you. Could make for a nice jukebox/web radio project | ||
| {{: | {{: | ||
| Line 49: | Line 65: | ||
| ===== 6.4.7.6 I2S Audio: Use text to speech ===== | ===== 6.4.7.6 I2S Audio: Use text to speech ===== | ||
| + | |||
| + | Enable WIFI, and let your firmware call the Google Text to Speech API to create verbal notifications | ||
| {{: | {{: | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== 6.4.7.7 I2S Audio: Volume and Tone ===== | ||
| + | |||
| + | BLOX provides the ability to set the volume and tone of the audio as well: | ||
| + | |||
| + | {{: | ||
| ---- | ---- | ||