I have been tring 10+ hours reading post here and I decide to ask for some help, following is my situation.
I need to record voice from mic in one machine (call it A) and stream it over TCP/IP network to machine B and play it back.
How can I do it? Any help/hints will be greatly appreciated.
I know how to do that in MME but since FMOD can run on both linux and windows, I decided to give it a try.. please help me.
We only need to send out voice data (14400HZ, 16bit Mono), is there any compression lib you suggest us to use?
2)We are basically running on windows environment, how can we use the built-in compression lib of windows in FMOD? Is there any API in FMOD to do that?
For recording, look at the “record” example that comes with the FMOD api. It shows how to record and playback/process from a mic in realtime. You can modify this code so it sends the recorded data over the network.
For playback at the other end, look at the “stream” and “stream2” examples that come with the FMOD api. If you create a stream with a user callback then you’ll be able to feed data coming in from the network into the stream in realtime.
Depending on your quality/bandwidth limitations, you may want to compress the recorded data before sending it across the network – I’d suggest either ogg vorbis or mp3 (or maybe something designed specifically for voice, if that’s all you’ll be sending) :
Also, depending on your requirements/limitations, you may be able to cobble something together using winamp + SHOUTcast/Icecast.
Please login first to submit.