Howdy, Stranger!

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

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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

ctimactima Posts: 3Member
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

  • MJarusMJarus Posts: 19Member
    : 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


  • acid_radioacid_radio Posts: 1Member
    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.