microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6k stars 2.12k forks source link

Voice VOIP garbled & slow on WAN when using MicrophoneTransmitter & MicrophoneReceiver #529

Closed StokedOnIt closed 7 years ago

StokedOnIt commented 7 years ago

Voice VOIP garbled & slow on WAN when using MicrophoneTransmitter & MicrophoneReceiver

StephenHodgson commented 7 years ago

Any steps to reproduce? Have any example scripts to show?

StokedOnIt commented 7 years ago

Hmmm, just adding the MicrophoneTransmitter & MicrophoneReceiver to the Camera. Works fine on localhost with multiple emulators connected through Unity using Holographic Emulation and HL Emulator. Once it is on an internet server with a real HoloLens it get garbled, slow and only bits and pieces come through.

Also, doesn't seem to matter if I put an Anchor Transform on it or not.

StephenHodgson commented 7 years ago

Are you using MicStream or Unity.Microphone for your implementation?

StokedOnIt commented 7 years ago

I just used the premade scripts that came with the HoloToolKit-Unity in HoloToolKit/Sharing/Scripts/VoiceChat

StephenHodgson commented 7 years ago

What's your transmission rate? Maybe try lowering your recording quality. Could be network issues over the line? It's hard to debug something like that though.

StokedOnIt commented 7 years ago

I was using the preset LOW_QUALITY_VOICE in Unity when the Script is added to the Camera. Yeah I'm assuming it has something to do with the packets. I was assuming since it comes in the HoloToolKit-Unity that it works, haha. I've had to modify so much of the Toolkit's code though to get some things to work. image

StephenHodgson commented 7 years ago

Well any fixes are welcome to be submitted!

It helps to get more eyes on it as well. I've been working on some mic stuff, but it's mostly with dictation.

StokedOnIt commented 7 years ago

I'm thinking it is on the SharingServer end. As it works great on LAN but WAN no. The speech com-es - I-n lik-e th-is.

S-Hodgson-MMOARgames commented 7 years ago

Maybe. suggest opening a ticket on the main HoloToolkit repository addressing this.

StephenHodgson commented 7 years ago

Closing this in favor of https://github.com/Microsoft/HoloToolkit/issues/72