Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
StokedOnIt opened this issue Feb 21, 2017 · 11 comments

Comments

@StokedOnIt
Copy link

Voice VOIP garbled & slow on WAN when using MicrophoneTransmitter & MicrophoneReceiver.
Could this just be an incorrect setting?

@PaulKemppi
Copy link

I have noticed the same problem when using WAN.

@PaulKemppi
Copy link

Apparently the problem is related to the available bandwidth. It seems that the VoIP is both sending and receiving 3-4Mbps(!) even when low quality voice option. Apparently the audio stream is not compressed at all.

@StephenHodgson
Copy link

Audio compression would definitely help. I wonder if there's already libraries for audio compression inside the toolkit that forgot to get implemented or if that is something developers will need to implement themselves.

@PaulKemppi
Copy link

Yes indeed. It seems a bit weird that the Sharing module has an external dependency called speex-1.2 which seems to be audio compression codec? Apparently it is not used.

@PaulKemppi
Copy link

In SharingService -> AudioSessionProcessorServer.h / cpp the compressor and decompressor (SpeexProcessorPtr) have been commented out. It would be nice to know the reason. We would really like to get the Sharing module working with a low(wer) bandwidth connection.

@mr0ng
Copy link

mr0ng commented Mar 9, 2017

@StokedOnIt how did you get the voice chat to work? I tried attaching both the transmitter and receiver scripts to the camera (and a few other objects), but I can't seem to transmit any audio at all - both LAN and WAN. You mentioned in another tread that you had to tweak some code. Any help is appreciated!

@PaulKemppi
Copy link

PaulKemppi commented Mar 9, 2017

Yes I got it working, but it requires a good Wi-Fi connection. You need you have Sharing prefab in both ends with IsAudioEndPoint checked. Then like you mentioned, attach MicrophoneReceiver and Transmitter components to your Camera. Additionally you need to establish connection between the endpoints (or check ConnectOnAwake from Sharing). And you have to have the Sharing server running with IP address accessible to the clients. That's all. Due to the bandwidth problems, I decided to give up the whole Sharing module and to implement my own VoIP using Speex audio compression. Not finished with that yet, but the path looks promising.

Oh and I had to disable Windows Firewall to let the traffic through in LAN.

Regards,
Paul

@jaseva
Copy link

jaseva commented Mar 10, 2017

Can we do voice commands if we are streaming audio?

I'm having trouble transmitting/receiving any voice at all. I can only hear myself when I speak however I am unable to hear others who have joined the app and they cannot hear me. Other users during the shared experience report the same experience.

@mr0ng
Copy link

mr0ng commented Mar 14, 2017

@branchbark @PaulKemppi I got the voice transmission working over WAN, but as you mentioned - extremely bad quality and unusable. Checking to see if this is still an outstanding issue and if anyone is working on a fix.

@sorianog
Copy link

Did anyone ever observe the packets being transmitted when audio is being streamed? It would be nice to see some data on if there are some important things being dropped on the network.

@mr0ng
Copy link

mr0ng commented Mar 14, 2017

All - Whenever we do get a decent connection over WAN, we hear echos of ourselves. This only happens on the HoloLens and not when we connect via the Unity editor. Any suggestions on removing the echo? We've determined that it's not caused by speaker-mic feedback (we tested with earphones). Thank you! I put the microphone transmitter on the HoloLens Camera and I put the Microphone receiver on another gameobject in the scene.

EDIT: The issue went away when I put the Mic scripts both on the HoloLens Camera. Works great!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants