BirdNet-goMikrofon/Arduino-audio-tools-main/arduino-audio-tools-main/examples/examples-stream/streams-memory_wav-pwm/README.md

19 lines
734 B
Markdown
Raw Normal View History

2026-09-26 01:20:55 +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!