Is it possible to play multiple sounds using this code? I am trying to play sound1 when one button is pressed and sound2 when another button is pressed. If not, is it possible with the SD card reader option and how so?
Thank you so much! This video is excellent! I have a question about the wave.h: Does it has to be in hex? If I'll write it as a short int, will it still work?
@@XTronical Thanks for the answer! Btw, I really like your videos, they are coherent and crystal clear (and above all, you're helping others in the comments!). It's not much, but I donated 20$, keep up the good work!
Thanks for the kind words. I appreciate it. And thank you very much for that donation, that is loads, honestly, to give to a stranger! Thank you again. All money goes into the channel.
@@XTronical Hey, I have another question: I noticed that for some of the WAV parameters, the values are reversed. For example, looking at the Sample Rate portion, you wrote 0x80, 0x3E, 0x00, 0x00 But when I converted 16000 to hex, I got 3E80, so why didn't you wrote 0x3E, 0x80, 0x00, 0x00? I'm mainly asking because for the size portion, you wrote 0x10, 0x00, 0x00, 0x00, which corresponds to 16,000.
@@XTronical Thanks for your atention! Your library is the easiest to use and I cant now use a simple hex song for my project without this update in some commands.
I see hardcoded references to the GPIO pins 25 and 26 in the library code. If I want to use this on an ESP32-S2, where the DAC GPIO pins are 17 and 18, should it work just to change those references? (I tried just doing that and don't hear anything.)
Yes, you'd have thought so in theory. I can't remember the exact differences off hand to know why it wouldn't work. Have been successful with a normal esp 32?
Great viseo I have successfully included 3 small hex header files. If I change in setup const unsigned char *WavFile = headerfilename; then I can play each file after recompiling and uploading. I want to know how I can change to different sounds (Using switch case in the void loop() section and play the sound once. The switch statement will depend on a button press so that I can play each sound depending on which button is pressed. Thanks in advance and keep up the good work
thankyou for these, I 've sunk an entire afternoon going through your DAC wav and i2s videos. currently for a model train sound project I'm using a esp8266 and the DF robot mp3 player to produce sounds but looking at your videos I'm encouraged to switch to esp 32. sound mixing, vol and speed controls are a big plus. one fundamental question, what is the benefit or need to use i2s instead of the built in DAC? is it just to be able to use any pin on esp32 and get better sampling rate above 8mhz? or are there other benefits ? coz it seems either ways externally you still need an amp board or a i2s decoder with built in amp?
As you mention the sound quality can be much higher in addition it's easier to do stereo, requiring only the one same single pin. We'd need two dac pins for stereo using DACAudio. At the moment existing i2s libraries are not as flexible as DACAudio which is why I'm implementing that library for I2s.
@@XTronical absolutely gonna watch and wait for the i2s audio library and it's corresponding video. Have you tried basic wifi functions of simple webserver libraries and so they work well with your dac and later i2s libraries? My end goal is to have a remote motor ctrl receiver and be able to drive audio sounds ( engine sounds) in parallel to the motor commands like speed or direction.
Is it possible to play multiple sounds using this code? I am trying to play sound1 when one button is pressed and sound2 when another button is pressed.
If not, is it possible with the SD card reader option and how so?
Cool! How to add multiple Wavs and enable / disable them by condition?
Thank you so much! This video is excellent!
I have a question about the wave.h: Does it has to be in hex? If I'll write it as a short int, will it still work?
Doesn't have to be hex, just make sure your storing 16 bit signed integers.
@@XTronical
Thanks for the answer!
Btw, I really like your videos, they are coherent and crystal clear (and above all, you're helping others in the comments!).
It's not much, but I donated 20$, keep up the good work!
Thanks for the kind words. I appreciate it. And thank you very much for that donation, that is loads, honestly, to give to a stranger! Thank you again. All money goes into the channel.
@@XTronical
Hey, I have another question:
I noticed that for some of the WAV parameters, the values are reversed.
For example, looking at the Sample Rate portion, you wrote 0x80, 0x3E, 0x00, 0x00
But when I converted 16000 to hex, I got 3E80, so why didn't you wrote 0x3E, 0x80, 0x00, 0x00?
I'm mainly asking because for the size portion, you wrote 0x10, 0x00, 0x00, 0x00, which corresponds to 16,000.
Please, can you actualize the XT_DAC_AUDIO library? It has several errors now latter the atualization 2.x to 3.0 of espressif changes commands.
Thanks for the information. I'll take a look.
@@XTronical Thanks for your atention! Your library is the easiest to use and I cant now use a simple hex song for my project without this update in some commands.
I see hardcoded references to the GPIO pins 25 and 26 in the library code. If I want to use this on an ESP32-S2, where the DAC GPIO pins are 17 and 18, should it work just to change those references? (I tried just doing that and don't hear anything.)
Yes, you'd have thought so in theory. I can't remember the exact differences off hand to know why it wouldn't work. Have been successful with a normal esp 32?
I wonder if you or anyone else got this working on a specific core of an ESP32. I just tried that and it stays silent.
Great viseo
I have successfully included 3 small hex header files.
If I change in setup const unsigned char *WavFile = headerfilename;
then I can play each file after recompiling and uploading.
I want to know how I can change to different sounds (Using switch case in the void loop() section and play the sound once.
The switch statement will depend on a button press so that I can play each sound depending on which button is pressed.
Thanks in advance and keep up the good work
Will get back to you in a few days.
@@XTronical Or years
thankyou for these, I 've sunk an entire afternoon going through your DAC wav and i2s videos. currently for a model train sound project I'm using a esp8266 and the DF robot mp3 player to produce sounds but looking at your videos I'm encouraged to switch to esp 32. sound mixing, vol and speed controls are a big plus. one fundamental question, what is the benefit or need to use i2s instead of the built in DAC? is it just to be able to use any pin on esp32 and get better sampling rate above 8mhz? or are there other benefits ? coz it seems either ways externally you still need an amp board or a i2s decoder with built in amp?
As you mention the sound quality can be much higher in addition it's easier to do stereo, requiring only the one same single pin. We'd need two dac pins for stereo using DACAudio. At the moment existing i2s libraries are not as flexible as DACAudio which is why I'm implementing that library for I2s.
@@XTronical absolutely gonna watch and wait for the i2s audio library and it's corresponding video.
Have you tried basic wifi functions of simple webserver libraries and so they work well with your dac and later i2s libraries? My end goal is to have a remote motor ctrl receiver and be able to drive audio sounds ( engine sounds) in parallel to the motor commands like speed or direction.
do u have a circuit schematic?
On my website xtronical.com
Hello! Is there a way to convert a wav file into an .h file on a Mac?
I would have thought similar software to that used on the PC exists but I don't use mac unfortunately.