-
Notifications
You must be signed in to change notification settings - Fork 65
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
receive audio from multiple users and send at same time #84
Comments
Hi, Sound is not merge together, but this function have buffer waiting for some loop to take the sound data, maybe it will help. To be honest, I've never used it with more than 6 users. |
Thanks for your answer, @azlux ! At the moment my implementation works in a sound_receive-function which runs endless in a thread. |
In fact, the callback will be trigger user by user. So you also need to merge the sound manually ( pymumble/pymumble_py3/mumble.py Line 519 in 9de35a5
Using a callback isn't better, there are a little bit less calculation to do on the library side, but I think your bottleneck is to merge and send the audio to the speaker ? |
Yes, I guess that's the bottleneck. Could it be a problem that I'm using the threading module to handle GUI, transmitting and receiving audio at the same time or shouldn't there be any connection with that method? |
Sorry I don't have example. |
Do you have any news about the tests ? |
Hi,
I'm working with pymumble to communicate with a various number of users who also are using pymumble.
So it's not only sending audio (microphone) to murmur-server but also receiving audio from different users via pymumble and outputting that to a speaker.
At the moment I'm asking for all online users in an endless while-loop and adding the soundchunk of every user by using audioop.add.
When done for every user, the PCM-chunk will be written to speaker.
As I notice that works but seems to have really bad performance when increasing number of speaking users at the same time. I would like to record a whole channel with more than 20 users, which seems to be impossible with that method.
Do you have alternative, better options to "mix" the sound of all users together and bring it to speaker with low latency?
Thanks for any help! :-)
The text was updated successfully, but these errors were encountered: