arduino-audio-tools/examples/examples-stream/streams-memory_wav-pwm
2023-07-13 17:40:44 +02:00
..
alice.h rename examples-streams to examples-stream 2021-11-04 09:24:39 +01:00
knghtsng.h rename examples-streams to examples-stream 2021-11-04 09:24:39 +01:00
README.md rename examples-streams to examples-stream 2021-11-04 09:24:39 +01:00
streams-memory_wav-pwm.ino Correct compile errors for examples 2023-07-13 17:40:44 +02:00

Decoding a WAV file

In this example we decode a WAV file into RAW output and send it to a PWM pins (on a Raspberry Pico or ESP32)

The WAV file has been down sampled with the help of Audacity and then converted into an array with xxd.

Please note that this example is still using the more confusing old api which uses the following processing chain: MemoryStream -> AudioOutputStream -> WAVDecoder -> AudioPWM

The pins depend on the Processor:

PIEZO ESP32 RPI Pico MBED
+ GPIO4 GPIO2 GPIO2
- GND

Complie with Partition Scheme Huge APP!