0
0

Hello everyone! i am a new user of this web. mi trouble is this:
I am very novice in FMOD, I’ve never used. I am a Unity developer, and i need that in my game the players can speak with the microphone to the others players as such counter strike.
could someone tell me if this can be done with FMOD and if it involves a lot of difficulty? where should I start to develop this considering that i never use FMOD? is there any example of this?
sorry por my english and thank you very much

  • You must to post comments
0
0

Yes, that is correct.

  • You must to post comments
0
0

[quote="peter":22q9pa97][quote:22q9pa97]I do not think the wav format is best suited to do a voice chat by the size of the files that are generated, am I right?[/quote:22q9pa97]
Yes, that is why i included steps (2) and (4); compressing and decompressing the audio stream. This is not a feature built into FMOD so you would have to look into a third party library for that purpose.

Here are some common compression libraries for this purpose:
http://www.speex.org/
http://www.celt-codec.org/

FMOD cannot decompress either of these formats, but these formats are more appropriate for the task. This means you would have to decompress them yourself but once you’ve done the encoding side, the decoding side should be relatively straight forward. If you wanted to do something like MP3, then FMOD might be able to decompress that but there are licensing issues surrounding that codec that you have to be aware of.[/quote:22q9pa97]

Concluding:

  • I record the sound in wave format with FMOD
  • I compress the file to another format with a third library
  • I send it with Unity3D
  • I descompress in the other side with the third library
  • I play with FMOD

is that correct?

thank you very much for your help!!!

  • You must to post comments
0
0

[quote:pd9e7mk0]I do not think the wav format is best suited to do a voice chat by the size of the files that are generated, am I right?[/quote:pd9e7mk0]
Yes, that is why i included steps (2) and (4); compressing and decompressing the audio stream. This is not a feature built into FMOD so you would have to look into a third party library for that purpose.

Here are some common compression libraries for this purpose:
http://www.speex.org/
http://www.celt-codec.org/

FMOD cannot decompress either of these formats, but these formats are more appropriate for the task. This means you would have to decompress them yourself but once you’ve done the encoding side, the decoding side should be relatively straight forward. If you wanted to do something like MP3, then FMOD might be able to decompress that but there are licensing issues surrounding that codec that you have to be aware of.

  • You must to post comments
0
0

hello. Trying to understand the example of recording me more questions have emerged:

I see that in the example it constructs the wav format structure. I do not think the wav format is best suited to do a voice chat by the size of the files that are generated, am I right?

What would I have to do to save the file in another appropriate format and then decompressed with FMOD can too?

  • You must to post comments
0
0

Since you have to compress the audio data yourself, it’s probably easiest to use the same library to decompress the data on the other end. Although I think you could get FMOD to play a compressed stream from memory, in this case I would reccomend you decompres the data yourself so you can debug the trasfer of data. If you do want to play the compressed data through FMOD you could open it as a stream and override the FMOD file callbacks. You would have to buffer the compressed data yourself.

  • You must to post comments
0
0

[quote="peter":jdr9vx0b]The FMOD examples should be in you FMOD install directory, they includes recording examples.

[quote:jdr9vx0b]For the step 4… can’t i use FMOD too?[/quote:jdr9vx0b]
It depends on what format you use to compress the audio data.

[quote:jdr9vx0b]for the step 3 and 5, i can use Unity.[/quote:jdr9vx0b]
I’m nt sure if you can use Unity for step 5, the thing that makes this different to normal audio playback is that the audio data is a stream rather than a complete file. As far as I know Unity can only play whole files but I may be mistaken.

I’d also like to mention that, it can be difficult to integrate 3rd party libraries like FMOD into Unity games for some platforms such as the unity webplayer. What platform are you developing for?[/quote:jdr9vx0b]

many thanks for your reply

The ideal would be to use my application on all platforms, but most important is that it works in standalone, that would be enough to. About the format of compress data, What format would you recommend me for being able to decompress after fmod?

for step 5 you have told me that I can use FMOD, so this would not be a problem.

I think I need your help several times 😉

  • You must to post comments
0
0

The FMOD examples should be in you FMOD install directory, they includes recording examples.

[quote:35lo3s9l]For the step 4… can’t i use FMOD too?[/quote:35lo3s9l]
It depends on what format you use to compress the audio data.

[quote:35lo3s9l]for the step 3 and 5, i can use Unity.[/quote:35lo3s9l]
I’m nt sure if you can use Unity for step 5, the thing that makes this different to normal audio playback is that the audio data is a stream rather than a complete file. As far as I know Unity can only play whole files but I may be mistaken.

I’d also like to mention that, it can be difficult to integrate 3rd party libraries like FMOD into Unity games for some platforms such as the unity webplayer. What platform are you developing for?

  • You must to post comments
0
0

[quote="peter":21xdbylw]Hi javitxin, welcome to the FMOD forum.

Voice chat between players requires:
(1) recording microphone input
(2) compress the audio stream
(3) send compressed audio stream to other players
(4) decompress the audio stream
(5) playing audio stream

You can do (1) and (5) with FMOD. You might be able to do (4) with FMOD as well depending on what compression format you use. For (2) you will have to find a 3rd party library, and for (3) you will either have to roll your own network streaming code or find another 3rd party library for that as well.[/quote:21xdbylw]

hello! thanks for your reply!

i am looking for others solutions tu make my voice chat, but I’ve finally seen that FMOD is the best option. so i have to try.

the first thing I need to learn how to record sound from microphone and turn it into data that can be sent. Is there any example of this somewhere? for the step 3 and 5, i can use Unity. For the step 4… can’t i use FMOD too?

When are the examples?

thank you! i am very very very lost… help me please!

  • You must to post comments
0
0

Hi javitxin, welcome to the FMOD forum.

Voice chat between players requires:
(1) recording microphone input
(2) compress the audio stream
(3) send compressed audio stream to other players
(4) decompress the audio stream
(5) playing audio stream

You can do (1) and (5) with FMOD. You might be able to do (4) with FMOD as well depending on what compression format you use. For (2) you will have to find a 3rd party library, and for (3) you will either have to roll your own network streaming code or find another 3rd party library for that as well.

  • You must to post comments
Showing 9 results
Your Answer

Please first to submit.