#problem with Voice Chat in Mirror, Unity

34 messages · Page 1 of 1 (latest)

slate shard
#

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)

#

code:

#

code on Audio Source:

shadow umbra
# slate shard Hello everyone. I've been trying to create a voice chat using Mirror and Unity f...

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.

https://github.com/Metater/MetaVoiceChat

GitHub

Contribute to Metater/MetaVoiceChat development by creating an account on GitHub.

shadow umbra
# slate shard 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

slate shard
#

and read how it is arranged?

shadow umbra
#

I will start doing unity package releases for the next version, right now you have to download it and follow the tutorial

slate shard
#

Ok

shadow umbra
#

@slate shard here is the update: #📖3rd-party-resources message

slate shard
# shadow umbra <@1147550174697242724> here is the update: https://discord.com/channels/34344045...

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

shadow umbra
#

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?

shadow umbra
#

Spacial blend

slate shard
#

has not changed

shadow umbra
#

That is reverb zone

#

*spatial

slate shard
#

oops

slate shard
#

yes, I have the same

#

there is just no sound

shadow umbra
#

Could you try the setup again from scratch?

slate shard
#

ok

slate shard