-
Notifications
You must be signed in to change notification settings - Fork 231
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
bus error when using the reduce_noise in PyAudio streaming callback function #87
Comments
Can you paste the error you get? If it’s just one audio stream you shouldn’t be running into bus issues. Maybe the channels and samples are transposed in streaming and so the algorithm thinks there’s 16k channels |
Thanks for the response! In the terminal, the only error message I got was I also got more detail reports here after the error:
Also, I found it seem to be a Mac issue? I run the same code on a Windows laptop and it works. |
Hm... do you get the same error when you remove noisereduce entirely from the callback? If so you would want to cross post this to pyaudio |
I don't get this error when moving noisereduce outside of the callback function. |
When you say moving noisereduce outside of the callback function, do you
mean, (1) running noisereduce independently outside of the callback
function or (2) running the callback function independently of noisereduce
(e.g replacing noisereduce with an identity function)
On Wed, Jul 26, 2023 at 18:43 Yujie Tao ***@***.***> wrote:
I don't get this error when moving noisereduce outside of the callback
function.
—
Reply to this email directly, view it on GitHub
<#87 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJYKBX72FDMJOL7LK222QLXSGMQZANCNFSM6AAAAAA2VBEKNI>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Tim Sainburg <https://timsainburg.com/>
Postdoctoral Fellow
Harvard Medical School
814.574.7780, ***@***.***
|
Sorry about the confusion! In both cases you mentioned: (2) running the callback function without noisereduce in the code at all It doesn't run into bus errors. |
Ok, this suggests that this is an issue with the streaming library and not
noisereduce, i recommend crossposting there
On Wed, Jul 26, 2023 at 19:37 Yujie Tao ***@***.***> wrote:
Sorry about the confusion!
In both cases you mentioned:
(1) running noisereduce independently outside of the callback function
(2) running the callback function without noisereduce in the code at all
It doesn't run into bus errors.
—
Reply to this email directly, view it on GitHub
<#87 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJYKBTMBGQJHLKYNDYYNS3XSGS43ANCNFSM6AAAAAA2VBEKNI>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Tim Sainburg <https://timsainburg.com/>
Postdoctoral Fellow
Harvard Medical School
814.574.7780, ***@***.***
|
Hello, I've run into same issue, but using sounddevice library instead of pyaudio. I guess there's some conflict with portaudio because both libraries provide bindings for it. My environment and error are equal to the ones mentioned by Yujie. |
Hi
I hope to do real-time de-noising of microphone input, and when running the reduce_noise function (v2 and v3), I am experiencing bus error (on the Mac M1 system). Do we have any pointers on why this is happening?
The function works smoothly when processing a local file or moving the function outside of the callback function.
The text was updated successfully, but these errors were encountered: