You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the problem is related to the inability to record sound from speakers,
then before creating this issue, try to first record audio using the provided examples
(for example, simple_recording_app.py)
Hi🖐 Thanks for your time and attention to this repo!
But unfortunately, this issue relates to the limitations of "original" PyAudio design of wrapping PortAudio lib, and fix it here will be incongruously. PyAudio has or may have issues with multi-threading, depends on the target drivers which will be used. And here np guarantee that any of "APIs" will work in this mode in 100% cases.
So to use PyAudio(or in our case -WPatch) in multi-threading environment, you must use a little trick: do not share data between threads - pass it instead.
Simplest way to do it - is using pipes or queues:
Open PyAudio session and record audio stream in one thread
Pass recorded data to the queue(which is shared with another thread)
What problem are you facing?
What is the cause of the error (in your opinion)?
❗ Before creating, complete the checklist:
Start your issue here 👇
Script that has examples mentioned below and demonstrates the bug
The text was updated successfully, but these errors were encountered: