Comments (5)
I was able to make some progress but all the values in the output of the noisereduce are 0
mic_data = await audio_queue.get()
numpydata = np.frombuffer(mic_data, np.int16)
reduced_noise = nr.reduce_noise(
y=numpydata,
sr=SAMPLE_RATE,
stationary=True,
freq_mask_smooth_hz=2000,
time_mask_smooth_ms=75,
n_std_thresh_stationary=2
)
noise_mic_data = reduced_noise.tobytes()
from noisereduce.
Did you see #44 already?
If not the approach + snippets there might help you
from noisereduce.
I figured out the issue actually
I was trying to send smaller chunks of audio 20ms at a time and up to 200ms at a time.
Once I switched to 1sec audio chunks the above code started working for me
from noisereduce.
Closing as the above code does the job once frames per buffer and the audio stream was set to 1 seconds (16k in my case since the audio is 16Khz)
from noisereduce.
how to fix?
from noisereduce.
Related Issues (20)
- Error occurs when executing 'enhanced_speech = tg(noisy_speech)' HOT 2
- 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
- bus error when using the reduce_noise in PyAudio streaming callback function HOT 8
- 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
- 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.