I got a simple multiplayer game working, can I transmit voice in my game somehow?
In a standalone you can, but I don’t think you can in a webplayer.
Well in standalone, yes. Why do you think I want in webplayer anyway?
Because a webplayer is more accessible and would probably reach a larger audience.
Thats pretty much doable in the standalone through a plugin.
I personally would either look into integrating one of the two common “game voicechat server” solutions (ventrilo or teamspeak) or alternatively opt for a gaming targeted solution like Green Ear and create a plugin for it (they might be interested to actually support unity)
If your going the plugin path I can recomend Speex. Its not that complicated to use and has jitter buffer, echo filter,… and the list goes on. its also pretty effecient (think I messured it to like 1%-3% of total cpu use) and has an execelent sound quality.
//Perlohmann
Dremora mentioned Vent and TS. Both use Speex these days. Mumble, which is opensource and not as popular, also uses Speex.
Yet, somehow every TS server I’ve ever been on sounds like two kids with dixie cups and a piece of string. That’s because of bandwidth and quality settings mostly.
So you would certainly be in good company using Speex. You would certainly sound better than a lot of big-budget game’s voice chat, like L4D for example.
If anybody’s interested, I’ve got a voice chat system on the Asset Store. It works on all licenses and platforms (even webplayer), audio quality is great even in high-lag conditions, and should plug into pretty much any network engine. Plus, if the asset store guys ever get around to approving the latest update, it’ll even allow for custom codecs. Link in sig.