Closed lwbantoto closed 2 years ago
On Linux where I work, I use: xxd -i file.wav > file.h
. Then I edit the file to make the variable PROGMEM
and you're all set.
Windows should have similar tools.
Good question. I´ve tried to use wav to code applications, https://colinjs.com/software.htm#t_WAVToCode, but it removes the header of wav file. I have an additional question: regarding the read and play 16 bits wav file (converted to c)
Hi @earlephilhower. Thank you. I was able to use xxd on Mac. Which file do you edit PROGMEM to? I can't find it.
Edit the generated .h
file and make the variable PROGMEM (see the example for where it would go).
xxd for windows https://sourceforge.net/projects/xxd-for-windows/ I will try to use it.
Hello, how do you convert a wav file to a header file like viola.h?
https://github.com/earlephilhower/ESP8266Audio/tree/master/examples/PlayWAVFromPROGMEM
Thank you, Lance