0

Hello,
I am caputing sound from a codec using a microcontroller and sending it over to the laptop using a serial port .Now I want to use this buffer of values to regenerate the captured sound in Windows using C/C++. I have no idea about how to do it?Can some one please tell me... Thanks

3
Contributors
4
Replies
13
Views
2 Years
Discussion Span
Last Post by Mayukh_1
0

This is not a trivial subject. You are getting the raw data, which I assume you have captured in Windows. How is the data encoded?

0

The data is not encoded. But what I read is that if the data is normalized ie if it ranges between +1.0 to -1.0 then it can be converted ino PCM data. Then we can use waveout..() functions to play the files. How do I use a simple form of waveout functions. Can someone tell me.

0

First decide which encoding format you want..(WAV is the obvious choice always)

Second read that how data is encoded in that format.

Implement that encoding format in your C program

Write data into a file in that encoded format from that C program & with .wav extention

Finally write a script file to play that in any player or call any wapper library function to play that tune.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.