Search Unity

Voice chat for PUN

Discussion in 'Audio & Video' started by vilpasan, Jun 22, 2015.

  1. vilpasan

    vilpasan

    Joined:
    Apr 9, 2015
    Posts:
    6
    Anybody have experience about integrating group voice chat to Photon Unity Networking multiplayer game? Have you succeeded, what assets do you recommend and are there any guides existing? I would like to implement this for iOS, win and web.

    I have found two potential assets for this: dfvoice (asset store) and fholm voice chat (github).
     
  2. dcarrigg

    dcarrigg

    Joined:
    May 21, 2014
    Posts:
    24
    I just implemented voice chat into Upsilon Circuit this past week.

    There are three options for Unity right now:
    Option 1. Write your own stuff, which is very similar to just going with...

    Option 2. This, by FHolm: https://github.com/fholm/unityassets/tree/master/VoiceChat

    This used to be on the asset store, but he open sourced it to focus on Bolt instead. This uses the Speex codec.

    Option 3. DfVoice, which is the only voice chat plugin currently on the store. This also uses Speex, which is why we just went with using FHolm's free and open source code.

    With this, we were able to get proximity voice chat, as well as team based radio chat up and going in less than a week. It also took a little extra time for us because we were adding support for 3d positional voices, and are also working with our own networking library.

    Unfortunately, the codec we want to be using is Opus (http://www.opus-codec.org/docs/), and I havent seen any versions available to use with Unity. Opus sounds much nicer than Speex.

    We just went with FHolm's solution. There's a guide on how to use it on the github page, including how to send the data over a network.