WAVDecoder not playing or returning expected values for file when used #1577
-
Hello, I'm playing a .wav file from an external micro sd card through an ESP32. When using the player_sd_i2s example to play an mp3 from the micro sd, it plays the audio and returns the correct audio info on the serial monitor. From this I know that the pinouts, PCM5102, connections, and sd card are all in working order. When changing the codec from MP3DecoderHelix to WAVDecoder, changing file extension from "mp3" to "wav", and passing this to the player class, no audio plays and the codec returns this to the monitor. I can see that it is pulling the correct .wav file as seen on the line:
However the .wav data doesn't seem to be being pulled and populated into the decoder. Am I able to manually set the decoder settings through the WAVDecoder class? Or am I missing on the decoder setup? Here is the attached code:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The WAVDecoder supports valid PCM WAV files I suggest to create it with Audacity. |
Beta Was this translation helpful? Give feedback.
The WAVDecoder supports valid PCM WAV files
Your file does not meet this condition: it does not have a valid WAV header so most likely the data part is invalid as well.
I suggest to create it with Audacity.