Comments (8)
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
from noisereduce.
Thanks for the response!
In the terminal, the only error message I got was [1] 57294 bus error python3 stream-noise-cancel.py
I also got more detail reports here after the error:
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Python [57342]
Path: /opt/homebrew/*/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python
Identifier: org.python.python
Version: 3.9.13 (3.9.13)
Code Type: ARM-64 (Native)
Parent Process: zsh [35530]
Responsible: iTerm2 [620]
User ID: 501
Date/Time: 2023-07-26 14:50:44.0138 -0600
OS Version: macOS 12.5 (21G72)
Report Version: 12
Time Awake Since Boot: 260000 seconds
Time Since Wake: 3428 seconds
System Integrity Protection: enabled
Crashed Thread: 20 com.apple.audio.IOThread.client
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000001701e3ff8
Exception Codes: 0x0000000000000002, 0x00000001701e3ff8
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SIGNAL, Code 10 Bus error: 10
Terminating Process: exc handler [57342]
Also, I found it seem to be a Mac issue? I run the same code on a Windows laptop and it works.
from noisereduce.
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
from noisereduce.
I don't get this error when moving noisereduce outside of the callback function.
from noisereduce.
from noisereduce.
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.
from noisereduce.
from noisereduce.
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.
from noisereduce.
Related Issues (20)
- Error occurs when executing 'enhanced_speech = tg(noisy_speech)' HOT 3
- module 'numpy' has no attribute 'float',The aliases was originally deprecated in NumPy 1.20 HOT 1
- smoothing filter settings when n<1
- How train noisereduce on new dataset to increase your accuracy of it HOT 1
- remove signal A from signal B HOT 1
- Please release 3.0.2 to PyPI HOT 2
- install problem with llvmlite dependency HOT 7
- ValueError: time_mask_smooth_ms needs to be at least 256ms HOT 3
- Can't find any settings that work to remove burst of clipping static (example .wav attached) HOT 1
- volume reduction after denoising HOT 2
- Optimal parameters to apply on small chunks of data for streaming application HOT 4
- RuntimeWarning: invalid value encountered in divide HOT 1
- Latency for streaming audio HOT 1
- How to convert an audio stream from PYAudio into the right format to pass to noisereduce? HOT 5
- Add ONNX export for Pytorch Model HOT 1
- Minor change in device setting value HOT 3
- Why is torch a mandatory dependency on 3.0.0? HOT 4
- type error when trying to run code can anyone help? HOT 1
- TorchGate init parameter win_length type error HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from noisereduce.