Thanks for the video, I really enjoyed it. I will build this at some point! It looked like the data that was exported from Audacity was stereo. Did the Mac command that converted it into hex fix this or is there twice as much data in the file? It wasn't clear where the sample rate was specified within the ESP project.
I've been trying to get an ESP32-S2 to play sounds for about 2 months now without success, using the Arduino IDE. It seems all libraries were made for old versions of the ESP core and arduino IDE and trying to get them to work in 2024 is a real challenge. I used to program small projects in arduino nano without any problems, but switching to ESP32 has been a nightmare. I started with a QT PY ESP32-S3 from Adafruit, only to realize it does not have a DAC pin, so I switched to a Lolin/HiLetGo ESP32-S2, and even though I have 2 DAC outputs, its been impossible to make it work. Don't want to give up but its really frustrating
I don’t know if the little box attached to wires and board is included in store catalog page.??? And your pins on the amp are 90 angle not 0, the screw terminal was not included with purchase? shows on picture? Screw terminal connector?
@@datasith I tried the DFPlayer. The problem with using it for sound effects is that you have a pretty decent delay before the sound plays and reacts to new commands. This brought me back full circle to using the PAM and the internal ESP32 DAC.
In nodemcu, I have an alarm clock. When it is equal to the time, how can I play my wav extension sound in the viola tab in the program when the alarm is equal. thanks
I know this is a long time ago... I see the current version is 4.2.1. When I go to compile I see an error it can't locate esp32-hal-timer.h file. Any ideas? Thanks in advanced!
Muy buen trabajo. Felicidades. He intentado compilar el mismo ejemplo en mi WEMOS D1 esp32 y no compila. Me pone error de compilación para WEMOS lolin32 ¿Cuál puede ser el error? Mi Arduino ide es versión 1.8.5
I have a python script to do this: gist.github.com/alkhimey/55eb4d4b03b680b1f5742ec513aeb071 You can also see my take on the WAV through ESP8266 ides here: www.nihamkin.com/playing-wav-files-on-esp8266.html#playing-wav-files-on-esp8266 ACROBOTIC actually did a really good job, showed many ideas I did not think of when writing that blog post.
Hey, Sachir. Sorry, the library doesn't work on the ESP8266. You need quite a bit of computational power to decode the .wav files, and as far as I know, this is very hard to do on the ESP8266. An alternative would be to use an .mp3 external chip, you can load your sounds on an SD card as well. HTH!
What are the commands on the Mac to create the .h file from wave file. I use windows mainly but I do have a iMac .. which would seem the easiest way to convert the files.
I'm not into advocating for Apple devices, so I'll just state that having an OS that includes these tools by default saves me a bit of time in my electronics tinkering. So yes, if you have an iMac it should be straight forward. The command I used is: xxd -i lightsaber_idle.wav > lightsaber_idle.h Thanks so much for watching!
Wonderfull, I will use this to make some noise to avoid wild animals that come to eat the growceries in the garden, thanks.
Hello, the library XT_DAC_Audio don't work with IDE Arduino, why ?
Thanks for the video, I really enjoyed it.
I will build this at some point!
It looked like the data that was exported from Audacity was stereo. Did the Mac command that converted it into hex fix this or is there twice as much data in the file?
It wasn't clear where the sample rate was specified within the ESP project.
can I make it like bluetooth beadphone
I've been trying to get an ESP32-S2 to play sounds for about 2 months now without success, using the Arduino IDE. It seems all libraries were made for old versions of the ESP core and arduino IDE and trying to get them to work in 2024 is a real challenge. I used to program small projects in arduino nano without any problems, but switching to ESP32 has been a nightmare. I started with a QT PY ESP32-S3 from Adafruit, only to realize it does not have a DAC pin, so I switched to a Lolin/HiLetGo ESP32-S2, and even though I have 2 DAC outputs, its been impossible to make it work. Don't want to give up but its really frustrating
Am I the only one who get this error...?
PlayWav.ino:10:27: error: 'Force' was not declared in this scope
I don’t know if the little box attached to wires and board is included in store catalog page.??? And your pins on the amp are 90 angle not 0, the screw terminal was not included with purchase? shows on picture? Screw terminal connector?
Dude this saved me!
With this i can finish the X-Mas Present for my gf :*
I am making an alarm clock. I want to make the WAV file uploaded to SPIFFS pause. What should I do?
Can we have a link to the code that you used in the example to save having to retype it all from the video? Thanks Derek
For high quality sounds you can use DFPlayer Mini module (or your own solution based on voice chips like XY6xxx (eg YX6100) or JQ6xxx (eg JQ6500).
Or even ES8388 (present on ESP32-LyraT Dev board)
Yup, yup. Thanks for sharing!
@@datasith I tried the DFPlayer. The problem with using it for sound effects is that you have a pretty decent delay before the sound plays and reacts to new commands. This brought me back full circle to using the PAM and the internal ESP32 DAC.
keep up the good work.
In nodemcu, I have an alarm clock. When it is equal to the time, how can I play my wav extension sound in the viola tab in the program when the alarm is equal. thanks
What is the maximum sound level you were able to produce at 10cm?
I know this is a long time ago... I see the current version is 4.2.1. When I go to compile I see an error it can't locate esp32-hal-timer.h file. Any ideas?
Thanks in advanced!
It is possible to play 2 wav at the same time?
Hey can we send the .wav file stored in flash memory of 1 ESP32 to another ESP32?
Muy buen trabajo. Felicidades. He intentado compilar el mismo ejemplo en mi WEMOS D1 esp32 y no compila. Me pone error de compilación para WEMOS lolin32
¿Cuál puede ser el error?
Mi Arduino ide es versión 1.8.5
Lograste resolverlo? Tengo el mismo problema.
Finalmente no. Lo siento.
@@fjnavarretemartin El error es de la librería, descargué una versión anterior y la reemplacé y ya compiló.
Muchas gracias. Te lo agradezco. Lo probaré
Excelente!! Vi los videos anteriores pero se me paso comentar :(, dont know what happened to me haha. Un fuerte abrazo Bro argento
Gracias capo, no worries, se que el aguante no falla!
You bet on it!
Is it possible to play a complete song ? or maybe a few minutes?
Hey, Carolina. Yes, it is possible. The main constraint is the memory size, but you can add an SD card to the project for extra storage. HTH!
You have written in the title also for windows, but how to convert the .wax to .h in windows?
i think there is some free programs to do that, just use google.
I have a python script to do this:
gist.github.com/alkhimey/55eb4d4b03b680b1f5742ec513aeb071
You can also see my take on the WAV through ESP8266 ides here: www.nihamkin.com/playing-wav-files-on-esp8266.html#playing-wav-files-on-esp8266
ACROBOTIC actually did a really good job, showed many ideas I did not think of when writing that blog post.
You can use WAVToCode.
www.softpedia.com/get/Multimedia/Audio/Other-AUDIO-Tools/WAVToCode.shtml
Thank you all for sharing your insights!
@@artiumnihamkin9206 Superb!!
Please make a video on using 3.5mm audio jack and playing files from SD card.
sir, please make a video for ESP8266
Hey, Sachir. Sorry, the library doesn't work on the ESP8266. You need quite a bit of computational power to decode the .wav files, and as far as I know, this is very hard to do on the ESP8266. An alternative would be to use an .mp3 external chip, you can load your sounds on an SD card as well. HTH!
What are the commands on the Mac to create the .h file from wave file. I use windows mainly but I do have a iMac .. which would seem the easiest way to convert the files.
I'm not into advocating for Apple devices, so I'll just state that having an OS that includes these tools by default saves me a bit of time in my electronics tinkering. So yes, if you have an iMac it should be straight forward. The command I used is:
xxd -i lightsaber_idle.wav > lightsaber_idle.h
Thanks so much for watching!
How to record sound and send to API?
Too fast! I constantly needed to pause and play and rewind back.
How you add 'PROGMEM' ?
Since it is only for AVR boards.
I am not getting it for esp32 how i get it?