Comments: I2S Audio Breakout Hookup Guide
Looking for answers to technical questions?
We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.
If you've found an issue with this tutorial content, please send us your feedback!
Not seeing Raspberry Pi Zero 2W / 4 / Pico examples for your I2S products
What is the current when the shutdown pin is used?
Great write up, I had no trouble assembling the circuit or running the example code.
I am having problems reformatting the audio into C-Arrays. The PlayWAVFromPROGMEM arduino example stores the PCM as unsigned chars (I believe this applies to all example sketches). Since there are no explicit instructions for file conversion in the repo or readme, I exported the audio as a .wav (Microsoft header/encoded signed 16-bit PCM) and then copied the data with a hex editor as a char array.
I have been unsuccessful in playing anything other than silence or static.
Serial Output: | AudioGeneratorWAV::ReadWAVInfo: cannot read WAV, invalid RIFF header, got: D5D5D5D5 | AudioGeneratorWAV::begin: failed during ReadWAVInfo
Please add specifications for compatible C-Array output or instructions on generating compatible audio.
Hi there, it sounds like you are looking for technical assistance. Please use the link in the banner above, to get started with posting a topic in our forums. Our technical support team will do their best to assist you.
That being said, I am a little confused about what you are trying to do. If I am following the tutorial correctly, the files are saved on the SD card that is inserted into the ESP32 motion shield. I am pretty sure in the example code, you can see it directing the microcontroller to the file path of the SD card when this function is called:
new AudioFileSourceSD("/TRACK0.mp3")
. Otherwise, if you are doing something entirely different than the example and might need to reach out on the ESP8266 Audio Arduino Library for help on that specific issue (???).