0
0

Hy all.
I am trying to make a Voice Chat program in Visual Basic, using the Fmod Sound System.
I tryed to use the FSOUND_Record_StartSample with loop, but i’me having a problem with the sample data recorded. I mean, i have to get the sample data buffer , and then send it to the remote computer… in real time.
My ideea was to send a buffer to the remote computer every 2 secs.
But when i start recording to a sample with loop , when the recording has hit the end of sample it goes from the start again, and i don’t know how to get the recorded buffer.

Any ideas? Please reply. :-?
  • You must to post comments
0
0

You can read this [url=http://www.fmod.org/forum/viewtopic.php?t=2676:xt5sjatx]topic[/url:xt5sjatx] where you can find a similar project (in C), it shows how wich FMOD functions to use.

  • You must to post comments
0
0

Thanx… ๐Ÿ˜€

I also wanna know:
– if i want to make a voice chat through internet (IP), how can i make a Sample (or stream) compression . I mean , when i start recording from microphone, it records a wave stream. How can i make a mp3 compression, or something like this, because if the data transfer through Internet is 10 – 15 Kbs, it wont work with wave compression…

P.S.: PLS excuse my spelling (and my english) ๐Ÿ˜†

  • You must to post comments
0
0

I would suggest using a compressed wave format, like PCM. I’m not too sure as to how you would compress it, you would have to do some research. Or maybe Brett knows! ๐Ÿ˜€ But, you shouldn’t use a format like MP3 because it’s really lossy.

  • You must to post comments
0
0

My advice is to use a more compressed format, [url=http://www.speex.org/:3mwz38vr]Speex[/url:3mwz38vr] is a sound library for voip (voice over ip) : it is fast, efficient and easy to use.
You will certainly have to convert exported function to _stdcall to make them usuable within VB.
Then, just compress the data sent by FMOD ( from a dspcallback ), then you get a chunk of compressed data, ready to be sent.
Btw, as voip use low samplerate, don’t init fmod up to what you initialized with speex.

Paranoid_Android>i don’t think that using a losy compressed format like mp3 is really a problem when coding a voip tool.

  • You must to post comments
0
0

[quote="KarLKoX":2ytnmlzy]
Paranoid_Android>i don’t think that using a losy compressed format like mp3 is really a problem when coding a voip tool.[/quote:2ytnmlzy]

I have to disagree, using a format like MP3, which is not really intended for voice chat, wouldn’t make sense, and MP3 being very lossy it wouldn’t provide very good quality, as I assume you would be compressing it at low bitrates. But maybe I’m wrong ๐Ÿ˜•

  • You must to post comments
0
0

yes you are wrong, sound quality is not usefull when using voice chat, the human voice go from [url=http://www.mp3-converter.com/mp3codec/waveforms.htm:135j39zy]500 hz to 2 khz[/url:135j39zy] (when talking, not crying or anything else).
But as i said, speex is what Phlonta should use.

  • You must to post comments
0
0

[quote="KarLKoX":1o93dtpd]yes you are wrong, sound quality is not usefull when using voice chat, the human voice go from [url=http://www.mp3-converter.com/mp3codec/waveforms.htm:1o93dtpd]500 hz to 2 khz[/url:1o93dtpd] (when talking, not crying or anything else).
But as i said, speex is what Phlonta should use.[/quote:1o93dtpd]

hehe, ok, no big deal.

  • You must to post comments
0
0

Thanx verry much guys. ๐Ÿ˜€

I already made a sample (Test) of the project, but on LAN, because i used Wave compression ( or better said: No compression) . The bad thing is that the program sends data about 1.5 MB in 20 - 25 secs... i don't know for sure the exact secs...   :-? 
But.. this is only the first test. In the future i will use a compression, but i'me not sure witch it will be.

 As soon as the program will be ready, i will launch it on net... (free) or.. open source    :wink:
  • You must to post comments
Showing 8 results
Your Answer

Please first to submit.