Metadata-Version: 2.4
Name: pyspeex-noise
Version: 2.0.0
Summary: Noise suppression and automatic gain with speex
Home-page: https://github.com/rhasspy/pyspeex-noise
Author: Michael Hansen
Author-email: mike@rhasspy.org
License: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE.md
Provides-Extra: dev
Requires-Dist: black; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: flake8; extra == "dev"
Requires-Dist: isort; extra == "dev"
Requires-Dist: mypy; extra == "dev"
Requires-Dist: pylint; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Dynamic: license-file
Dynamic: provides-extra

# pyspeex-noise

Noise suppression and automatic gain control using speex.

``` python
from pyspeex_noise import AudioProcessor

auto_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():  # you define this
    assert len(audio) == 160 * 2  # 160 samples
    clean_audio = audio_processor.process_10ms(audio)
```
