0
0

Hello~
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.

Leslie

  • You must to post comments
0
0

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) :

[url:3a1etyni]http://www.xiph.org/ogg/vorbis/[/url:3a1etyni]
[url:3a1etyni]http://lame.sourceforge.net[/url:3a1etyni]

Also, depending on your requirements/limitations, you may be able to cobble something together using winamp + SHOUTcast/Icecast.

Good luck!

  • You must to post comments
0
0

Thanks Andrew..

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?

Leslie

  • You must to post comments
0
0

For voice compression, have a look at Speex. Lots of features and it’s free :

[url:37kh43vc]http://www.speex.org/[/url:37kh43vc]

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.