Hello I recently have a project that require ingame multiplayer voice chat, I’m new in unity so I wanted to know how voice chat can be done in unity and can I use Red5 for the voice chat if can how ? I using SmartFoxServer for the server.
Thanks,
xInfinity.
Unity offers no possibility to record audio. you would need to do a standalone build + Unity Pro so you can use a plugin to do so
Thanks for the reply. May I know what plugin u mean ?
a unmanaged dll (win) / bundle (osx) you wrote or that someone else wrote that offers this functionality to your standalone windows / osx build
If you’re creating a web player deployment you could use red5phone embedded in the page to connect to your red5 server or you could do something bespoke to write a flash/flex plugin to talk to red5.
The only draw back with red5phone is that there is some lag in speech as it does a conversion in red5 to send the voice stream to asterisk.
You can communicate from your webplayer to the flash plugin using Application.ExternalCall and pass it info such as what SIP channel to connect to on the asterisk server etc.
If you are part of a commercial effort you might also want to talk to Vivox about using their browser plugin which offers high quality spatial voice.
Hey, as of Unity 3.5 there’s now a Microphone class (yay, rejoice).
Check my sig for a voice chat system I’ve made. It’s fully compatible with web builds (mobile builds, too) 