Hello everyone. I've been trying to create a voice chat using Mirror and Unity for about a month now. But every time I encounter serious problems such as interruptions and poor sound quality. I solved this problem by sending a lot more packets, but now the sound has a lot of delay and repeats. If anyone can tell me where the error is in my code, why the sound is coming out like this?(code below in the comments)
#problem with Voice Chat in Mirror, Unity
34 messages · Page 1 of 1 (latest)
Hey, I can give you some tips if you want to make your own voice chat, but it is pretty complicated to make voice chat that handles network issues.
I made open source proximity voice chat here. I am working on a new version right now with auto mic reconnection. I can publish it today.
yes please
Ok, I can make a new release with a Unity package within 12 hours, after I am done with work. You could set it up now if you want using the tutorial, just wait on implementing any mic switching code, since the new release handles that way better
Maybe I should make a YouTube video on how to do full VC settings eventually, since the tutorial doesn't cover that
just download?
and read how it is arranged?
I will start doing unity package releases for the next version, right now you have to download it and follow the tutorial
Ok
@slate shard here is the update: #📖3rd-party-resources message
Thank you
Hello! I've set up MetaVoiceChat according to the README, and I think everything is connected properly, but I still hear nothing.
I tested with:
MetaVc component added
VcMicAudioInput attached
VcAudioSourceOutput connected to an AudioSource
MirrorNetProvider present
AudioSource is looping, 3D sound works, volume up.
I also verified framesPerClip wasn't zero (had to patch it manually).
Still, no sound comes through — not even sine wave or mic echo.
Can you please help or suggest any debug method? I'm happy to share screenshots
Maybe try 2d spacial blend, just to make sure it isn't your audio source configuration
And this player prefab is instanciated by the network manager?
Spacial blend
has not changed
oops
Here is a video I made a while ago of the whole setup process: https://cdn.discordapp.com/attachments/1324491079902429234/1325181517357514814/2025-01-04_14-15-40.mp4?ex=68848136&is=68832fb6&hm=16edda2857986c7f4385143c6db3acb9576baab4d9b218f24060da480824d822&
Could you try the setup again from scratch?
ok
I set it up from scratch and it really worked, sorry for the delay