webrtc-noise-gain
Tiny Python wrapper around webrtc-audio-processing for noise suppression and auto gain only.
Install
pip install webrtc-noise-gain
Usage
from webrtc_noise_gain import AudioProcessor
# 0 = disable
auto_gain_dbfs = 3 # [0, 31]
# 0 = disable, 4 is max suppression
noise_suppression_level = 2 # [0, 4]
# 16 Khz mono with 16-bit samples only
audio_processor = AudioProcessor(auto_gain_dbfs, noise_suppression_level)
# Operates on 10ms of audio at a time (160 samples @ 16Khz)
audio_bytes_10ms = ... # 160 samples (320 bytes)
result = audio_processor.Process10ms(audio_bytes_10ms)
if result.is_speech:
# True if VAD detected speech
# result.audio contains clean audio
Building
# Install system dependencies
sudo apt-get install python3 python3-dev python3-pip python3-venv build-essential
# Clone repo
git clone http://github.com/rhasspy/webrtc-noise-gain.git
cd webrtc-noise-gain
# Create virtual environment
python3 -m venv .venv
source .venv/bin/activate
pip3 install --upgrade pip
pip3 install --upgrade wheel build
# Build
python3 -m build --wheel
find dist/
Release files for webrtc-noise-gain 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| webrtc_noise_gain-1.3.0.tar.gz | 3.1 MB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| webrtc_noise_gain-1.3.0-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 | Details |
| webrtc_noise_gain-1.3.0-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.28+ ARM64, Linux glibc 2.27+ ARM64 | Details |
Total release size: 20.8 MB
Release files / webrtc_noise_gain-1.3.0.tar.gz
| Download URL | webrtc_noise_gain-1.3.0.tar.gz |
|---|---|
| Size | 3.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67c96337db3b074a7a5dce0936c98a93886f22a0724e4387198ae86f31914643
|
|
BLAKE2b-256 checksum How to use checksums |
e570675fc3b28b7212f32959dd222bce6e753f235a9fcccc924826e135302e66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 28, 2026.
Transparency logRelease files / webrtc_noise_gain-1.3.0-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | webrtc_noise_gain-1.3.0-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 8.9 MB |
| Tags | CPython 3.9 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
3d052501c2cbe4948101e011450e93bff22b800f89014f192dfb861e319522a3
|
|
BLAKE2b-256 checksum How to use checksums |
3c0fb475e7c58de013d634df63da60e3d9a81601d8416c212739ab0eeb21e478
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 28, 2026.
Transparency logRelease files / webrtc_noise_gain-1.3.0-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
| Download URL | webrtc_noise_gain-1.3.0-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 8.8 MB |
| Tags | CPython 3.9 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
ba7df808439bae994459be7e916802e384ffa4f0e750035b5284f7fe4ff466dc
|
|
BLAKE2b-256 checksum How to use checksums |
bce2711f829859a869aeda2dd58bc9eed32261418c5d1942b2d7929056fe74a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 28, 2026.
Transparency log