pymumble
pymumble copied to clipboard
Pymumble latency
From an email :
We found out that after we read the data from the pyaudio stream of the microphone (with small buffer size), we don‘t have much latency. But after sending it to the server with the add_sound(data) method we are getting about half a second latency on the other receiver, even if receiver is on the same machine. When pushing sound from Mumble(MAC-Client) to pymumble receivers, we don‘t have any latency. The behaviour isn‘t different on Mac or Linux OS with our script.
Can you tell us if there is a false setting or if we can optimize that behaviour in any way?
My first answer is :
One option you can try is to lower is the
PYMUMBLE_AUDIO_PER_PACKETlink (don't forget to also adjustPYMUMBLE_LOOP_RATEvariable )
There are no other buffer we can customize. If it didn't work, we need to search deep on the code. I'm sure we can make optimizations (your problem is near this function).