JohannesMTC/ESP32_MAS

Generating the proper audio files

jurecotic opened this issue · 2 comments

Hello Johannes,

I'm having trouble converting my audio files to the right format. How did you convert them? Using Sox or ffmpeg?

I use Audacity.
A free audio software.
Set the sample rate to 22050.
Then adapt the final tracks to the project.
Everything as RAW audio export.
Set export 8 bit signed.
The file extension should then be aiff.
The files need no rework and can be loaded in the spiffs.

For sox the following command should bring the desired result.

sox INFILE.wav -b 8 -s -c 1 -r 22050 -t raw OUTFILE.aiff

I do not even try it myself though.

You might want to put this in the readme. I generated AIFF files from adobe audition with the same specs and they generated popping noises on loop. After exporting them through audacity, it worked fine.