Convert wav file to binary text file and analyze data & play segments?

Hi,

I found your thread very informative. I have a question I would highly appreciate if someone could answer or direct me appropriately to locate the right information.

Summary: I am trying to take a wave file or voice being recorded via microphone and convert it to binary text file, parse and analyze that text file, and play bits and pieces of it.

Detail: Basically I am trying to find a code in C/C++ that will be able to recognize certain patterns in the voice, save it to memory and play it at a certain time. I want it done by using C/C++ to convert a wave file to binary file and then analize that data and play bits and pieces of it.

I will extremely appreciate your help or guidence into the right direction.

Thank you.

Amit

Comments

  • : Hi,
    :
    : I found your thread very informative. I have a question I would highly appreciate if someone could answer or direct me appropriately to locate the right information.
    :
    : Summary: I am trying to take a wave file or voice being recorded via microphone and convert it to binary text file, parse and analyze that text file, and play bits and pieces of it.
    :
    : Detail: Basically I am trying to find a code in C/C++ that will be able to recognize certain patterns in the voice, save it to memory and play it at a certain time. I want it done by using C/C++ to convert a wave file to binary file and then analize that data and play bits and pieces of it.
    :
    : I will extremely appreciate your help or guidence into the right direction.
    :
    : Thank you.
    :
    : Amit
    :

    I guess it really depends on what you want to analyze out of the sound? If you just basically want to play words or phrases then it would be easier to cut the pieces into samples from the original sound file and play them like you would a normal wav file. There are many tools that are VERY capable of doing this if you look on the web.

    A .Wav file is a binary file that is Pulse Code Modulated Data (PCM data). This data describes the amplitudes of the sounds that you hear over time. In order to convert this to the frequency spectrum you would have to use something like a Fourrier Transform algorithm.

    If I have missed the point, let me know and I will take another crack at it!

    ===============
    www.cafe441.com
    ===============
    Music is the art of thinking with sounds.
    -- Jules Combarieu


  • Hello, i was looking on the net for some sort of program to do the following thing:
    i want to convert a wav file to a binary file in order to burn that file into a ROM and then play the sound again.

    first) is this possible?
    second) does this kind of program exist?


    i have a bass drum sound for example, of 1 second of duration at 22,050 Khz and 8 bits...i just want a program that generates me a simple file containing the 22,050 frames of the wav file and then burn that file into a ROM

    ps: the whole idea is to make a very simple drum machine. i have plenty of 512K Rom chips, and they would be useful for that duty...

    Thanks, nicolai.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories