# Implementing spatial audio voice chat into Unity project

**URL:** https://qa.fmod.com/t/implementing-spatial-audio-voice-chat-into-unity-project/18207
**Category:** FMOD Studio
**Tags:** unity
**Created:** [January 11, 2022, 1:03pm UTC](https://qa.fmod.com/t/implementing-spatial-audio-voice-chat-into-unity-project/18207 "2022-01-11T13:03:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mariioo](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@Mariioo](https://qa.fmod.com/u/Mariioo)
#### Post date: [January 11, 2022, 1:03pm UTC](https://qa.fmod.com/t/implementing-spatial-audio-voice-chat-into-unity-project/18207/1 "2022-01-11T13:03:25Z")

</div>

Hello,

I have a question / a problem with my project. I have been working on a VR-application in Unity with implemented Vivox voice chat.

So far, I have everything working except the spatial audio. I tried it with Vivox, but I can’t get it working with their documentation. The issue is that every time I change my ChannelType to Positional, everybody is connecting to their own chat instead to the same one. So, I want to have a Stereo audio voice channel and implement FMOD to make it spatial audio.

So, I thought maybe I can use FMOD for the spatial audio feature. Would it be possible to implement spatial audio voice chat?

I added the FMOD Studio Listener to my MainCamera inside the XROrigin rig. And I don’t really know what to do next? Someone got any tips or tricks, or can guide me towards the right way?

Greetings,  
Mariioo

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [January 20, 2022, 12:26am UTC](https://qa.fmod.com/t/implementing-spatial-audio-voice-chat-into-unity-project/18207/2 "2022-01-20T00:26:26Z")

</div>

Depends on how the voice chat is implemented- if Vivox gives you access to the underlying audio buffer then you should be able to send that to FMOD and then spatialize it.  
There was a discussion recently about [voice chat with FMOD](https://qa.fmod.com/t/using-fmod-with-voice-chat-utilizing-onaudiofilterread/17763) that is worth reading through for ideas on how to pass voice chat data to FMOD. There ended up being some issues with Unity’s `OnAudioFilterRead` callback that affected spatialization so that is definitely something to be aware of.
