https://github.com/rhasspy/pyspeex-noise
Noise suppression and automatic gain with speex
https://github.com/rhasspy/pyspeex-noise
Last synced: 9 days ago
JSON representation
Noise suppression and automatic gain with speex
- Host: GitHub
- URL: https://github.com/rhasspy/pyspeex-noise
- Owner: rhasspy
- License: other
- Created: 2024-08-25T19:13:36.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-09-01T15:56:05.000Z (8 months ago)
- Last Synced: 2025-03-28T08:11:46.404Z (27 days ago)
- Language: C++
- Size: 1.07 MB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# pyspeex-noise
Noise suppression and automatic gain control using speex.
``` python
from pyspeex_noise import AudioProcessorauto_gain = 4000
noise_suppression = -30
audio_processor = AudioProcessor(auto_gain, noise_suppression)# Process 10ms chunks of 16-bit mono PCM @16Khz
while audio := get_10ms_of_audio():
assert len(audio) == 160 * 2 # 160 samples
clean_audio = audio_processor.Process10ms(audio).audio
```