A minimal server and sketch to get ok sound with one or many esp32+speakers
Much thanks to julianfschroeter for providing the java version of this project
git clone espmusic
cd espmusic
- Create a formatted wav file:
ffmpeg -i <input_file> -ar 32000 -ac 1 -acodec pcm_u8 <output_file.wav>
- Get your ip address: open a terminal and type
ifconfig
oripconfig
and it will probably be near the word "inet" - Replace the wifi, password, and tcp_server in the arduino sketch
- Replace
PATH
with the path to your<example.wav>
file in index.js - Launch the music server, and upload the arduino sketch
node index.js #Launch the music server