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

Stereo not outputting sound #385

Open
James-Mat opened this issue May 4, 2024 · 1 comment
Open

Stereo not outputting sound #385

James-Mat opened this issue May 4, 2024 · 1 comment

Comments

@James-Mat
Copy link

James-Mat commented May 4, 2024

Anytime I set the stereo option to True in the .ini, the bot stops outputting any sound. The speaking indicator also remains grey.
When I set stereo back to False, everything works as expected.
I tried various youtube videos, radios, and a local file, all behaving the same.

I'm using the latest Docker image from june, though the version says unknown in the log.
I tried Murmur with version 1.5.629 and 1.4.287, the clients are on 1.4.287 on two different Windows machines.
If it's useful, I could also build the bot locally, but I didn't try that yet. I now tested both the latest and testing docker images and also tried building locally: Using Dockerfile.local I always get the error module 'ssl' has no attribute 'wrap_socket', using Dockerfile I was able to build master but got the same error for the tags 7.2.3 and 7.2.2

When I activate debugging PyMumble, it seems to indicate that it's sending voice data:

[May 03 23:51:06 DEBUG] audio packet to send: sequence:4773, type:4, length:1281
2024-05-03 23:51:06,745-PyMumble-DEBUG-audio packet to send: sequence:4775, type:4, length:1281
[May 03 23:51:06 DEBUG] audio packet to send: sequence:4775, type:4, length:1281
2024-05-03 23:51:06,766-PyMumble-DEBUG-audio packet to send: sequence:4777, type:4, length:1281
[May 03 23:51:06 DEBUG] audio packet to send: sequence:4777, type:4, length:1281
2024-05-03 23:51:06,787-PyMumble-DEBUG-audio packet to send: sequence:4779, type:4, length:1281

I'm a bit stumped on how to continue debugging and would be grateful for any help!

@James-Mat
Copy link
Author

I've pinpointed the issue: it appears my bot's bandwidth setting was set too high.
My Murmur is configured to allow bandwidths up to 558 kBit/s. Apparently, settings above ~260 kBit/s for the bot lead to stuttering in the audio, and above ~400 kBit/s the audio ceases completely. When I look at what the client transmits, it always peaks at around 300 kBit/s regardless of bandwidth setting, but with settings above 260 kBit/s it begins caving intermittently and stays at 0 kBit/s above 400 kBit/s.
This only applies to stereo though, which is why I didn't suspect the bandwidth setting as the culprit at first: Setting the bandwidth to 500 kBit/s or even higher has no impact with stereo=False and audio is transferred perfectly fine.

For me, the issue is resolved, but I'll keep it open so maybe someone can try to reproduce it and, if it's reproducible, it might be worth noting to avoid setting the bandwidth above a certain threshold in stereo mode for now.

I briefly examined pymumble, but without a deep understanding of the code, I couldn't identify any obvious causes for this behavior.
If someone has more insight into this problem than me, I'd still be interested to find out what causes the behaviour!

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

1 participant