0
0

Hi all :)
I want to create a voice chat using fmod….and to compress a lot data i want to check if a buffer is only silence, and if it’s only silence don’t send it…..but how to check if it’s only silence? :(

  • You must to post comments
0
0

i know about codec…….but can they compress wav data if it’s without an header?????? ๐Ÿ˜†

  • You must to post comments
0
0

You should be able to find the source for one, and use it to take a datastream. Ditto, the other end, take a compressed stream, and turn back into a sound buffer.

  • You must to post comments
0
0

You could use Channel::getWaveData? Then do an average of the values and check to makes its above your tolerance. I’d probably recommend checking for small pops, and maybe do a spectrum on it, and check the frequencies around human speech to make sure it’s picking up speaking, instead of PC fan noise etc.

I’ve never done voice stuff before, so this is just my guess work :)

  • You must to post comments
0
0

i tryed to record a wav with fmod, and i got 340 kb in 5 seconds…..it’s too much!!!
it’s about 80 kb/s in upload for a client…… ๐Ÿ˜ก

how to get a compressed output? :(

  • You must to post comments
0
0

Can’t you set the rate to 8khz, or just downsample it yourself?

Also, do some searches for GSM codecs (on wikipedia or something), perhaps one of those each end would suit your needs?

  • You must to post comments
0
0

the problem is that the header is a little big, so i can’t add it…and without it i don’t know if a codec can compress a wav!!!! ๐Ÿ˜•

  • You must to post comments
0
0

Ah I assumed you had raw data, captured on the fly.

  • You must to post comments
0
0

i want to use the FMOD_System_RecordStart to record the sound from mic, and then get the data and send it…. :)

  • You must to post comments
0
0

Could you not set the sound frequency to about 8k when you create the sound? That’ll reduce the amount of data per second.

  • You must to post comments
0
0

yes i tryed, now a client should send a constant 17/18 kbps….but it’s too much!!!!!
i want to use the less bandwidth possible….. ๐Ÿ˜ก

  • You must to post comments
0
0

Compress it with a GSM codec, I’m sure there are free examples out there.

  • You must to post comments
Showing 11 results
Your Answer

Please first to submit.