pymumble icon indicating copy to clipboard operation
pymumble copied to clipboard

Pymumble latency

Open azlux opened this issue 5 years ago • 0 comments

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_PACKET link (don't forget to also adjust PYMUMBLE_LOOP_RATE variable )

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).

azlux avatar Apr 14 '20 09:04 azlux