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
Comments
I have noticed the same problem when using WAN. |
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. |
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. |
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. |
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. |
@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! |
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, |
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. |
@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. |
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. |
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!! |
Voice VOIP garbled & slow on WAN when using MicrophoneTransmitter & MicrophoneReceiver.
Could this just be an incorrect setting?
The text was updated successfully, but these errors were encountered: