This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to convert .wav file into .hex file?

I want to use .wav files for sound generation. In order write those hex files on eeprom using eeprom programmer I want to convert those .wav files(Containing only RAW data and header is removed)into .hex files. Is there any utility available to do so?

Parents
  • If you have a Linux machine with the sound device set up for correct number of channels + bits/sample + samples/second you can try to play wav files by just copying them to the sound device. It actually works quite well.

    While a WAV file can contain a lot of additional information, most files don't. And a 44kbit/s 16-bit stereo file normally has a 44-byte header. Each audio sample corresponds to 4 bytes. So the header represents 11 audio samples which is 11/44100 = 249 us of noise. With 16-bit 11kbit/s mono, you get about 2ms of noise. Lots of - if not most - embedded equipment that plays sound produces way more "click" sound from turning on the amplifier than the noise created from playing the header.

    In the end, a teacher is not likely to notice a project where the student goes the easy route and plays the header too.

Reply
  • If you have a Linux machine with the sound device set up for correct number of channels + bits/sample + samples/second you can try to play wav files by just copying them to the sound device. It actually works quite well.

    While a WAV file can contain a lot of additional information, most files don't. And a 44kbit/s 16-bit stereo file normally has a 44-byte header. Each audio sample corresponds to 4 bytes. So the header represents 11 audio samples which is 11/44100 = 249 us of noise. With 16-bit 11kbit/s mono, you get about 2ms of noise. Lots of - if not most - embedded equipment that plays sound produces way more "click" sound from turning on the amplifier than the noise created from playing the header.

    In the end, a teacher is not likely to notice a project where the student goes the easy route and plays the header too.

Children
No data