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

Pymumble latency #59

Open
azlux opened this issue Apr 14, 2020 · 0 comments
Open

Pymumble latency #59

azlux opened this issue Apr 14, 2020 · 0 comments

Comments

@azlux
Copy link
Owner

azlux commented Apr 14, 2020

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

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

No branches or pull requests

1 participant