Skip to content

Commit dc04935

Browse files
committed
Move mozzi examples to sandbox
1 parent 1f87e83 commit dc04935

File tree

13 files changed

+120189
-158
lines changed

13 files changed

+120189
-158
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ And some more useful examples:
106106
- [streams-memory_raw-i2s](examples/streams-memory_raw-i2s) - Play music form Flash Memory via I2S to External DAC
107107
- [streams-url_raw-serial](examples/streams-url_raw-serial) Displaying a music file from the internet on the Serial Plotter
108108
- [streams-url_raw-I2S.ino](examples/streams-url_raw-i2s) Streaming a File from the Internet to on external DAC via I2S
109-
- [streams-mozzi-a2dp](examples/streams-mozzi-a2dp) Use Mozzi to generate Sound to be sent to a Bluetooth Speaker
110109
- [streams-url_wav-i2s](examples/streams-url_wav-i2s) Text to Speach example using Rhasspy
111110

112111
... these are just a few examples, but you can combine any Input Stream with any Output Stream as you like...

examples/streams-memory_wav-pwm/streams-memory_wav-pwm.ino

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,6 @@
88
* @copyright Copyright (c) 2021
99
*/
1010

11-
/**
12-
* @file stream-memory_wav-pwm.ino
13-
* @author Phil Schatzmann
14-
* @brief decode WAV stream and output to PWM pins
15-
* @version 0.1
16-
* @date 2021-01-24
17-
*
18-
* @copyright Copyright (c) 2021
19-
*/
20-
2111
#include "AudioTools.h"
2212
#include "CodecWAV.h"
2313
//#include "knghtsng.h"

examples/streams-mozzi-webserver/streams-mozzi-webserver.ino

Lines changed: 0 additions & 126 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Decoding a WAV file
2+
3+
In this example we decode a WAV file into RAW output and let it output using the [Mozzi](https://sensorium.github.io/Mozzi/) output functionality.
4+
Mozzi is supporting
5+
6+
- AVR
7+
- ESP32
8+
- ESP8266
9+
- SAMD
10+
- STM32
11+
- Teensey3
12+
- Raspberry Pico
13+
- MBED
14+
15+
This flexibility comes at a price however:
16+
- you need to configure the AUDIO_CHANNELS in the mozzi_config.h to the right value or provide the number of channels that are currently configured
17+
- not all processors support all samping rates: it is recommended that you use the sampling rate which mozzi expects (this is available e.g. in AUDIO_RATE)
18+
19+
The WAV file has been down sampled with the help of __Audacity__ and then converted into an array with __xxd__.
20+
21+
MemoryStream -> AudioOutputStream -> WAVDecoder -> MozziStream
22+
23+
24+
## Preconditions
25+
26+
You need to have https://github.com/pschatzmann/Mozzi installed.

0 commit comments

Comments
 (0)