Noise suppression and automatic gain with webrtc
Project description
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/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file webrtc_noise_gain-1.3.0.tar.gz.
File metadata
- Download URL: webrtc_noise_gain-1.3.0.tar.gz
- Upload date:
- Size: 3.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67c96337db3b074a7a5dce0936c98a93886f22a0724e4387198ae86f31914643
|
|
| MD5 |
e86e71f21bf046de9530143e9c70dac6
|
|
| BLAKE2b-256 |
e570675fc3b28b7212f32959dd222bce6e753f235a9fcccc924826e135302e66
|
Provenance
The following attestation bundles were made for webrtc_noise_gain-1.3.0.tar.gz:
Publisher:
publish.yml on OHF-Voice/webrtc-noise-gain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
webrtc_noise_gain-1.3.0.tar.gz -
Subject digest:
67c96337db3b074a7a5dce0936c98a93886f22a0724e4387198ae86f31914643 - Sigstore transparency entry: 1659103444
- Sigstore integration time:
-
Permalink:
OHF-Voice/webrtc-noise-gain@3164970e8563c5dee5425cac1524f3260f86f950 -
Branch / Tag:
refs/tags/v1.3.0 - Owner: https://github.com/OHF-Voice
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3164970e8563c5dee5425cac1524f3260f86f950 -
Trigger Event:
push
-
Statement type:
File details
Details for the file webrtc_noise_gain-1.3.0-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: webrtc_noise_gain-1.3.0-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 8.9 MB
- Tags: CPython 3.9+, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d052501c2cbe4948101e011450e93bff22b800f89014f192dfb861e319522a3
|
|
| MD5 |
b2de3788d0a182f848926b713ac76f74
|
|
| BLAKE2b-256 |
3c0fb475e7c58de013d634df63da60e3d9a81601d8416c212739ab0eeb21e478
|
Provenance
The following attestation bundles were made for webrtc_noise_gain-1.3.0-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
publish.yml on OHF-Voice/webrtc-noise-gain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
webrtc_noise_gain-1.3.0-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
3d052501c2cbe4948101e011450e93bff22b800f89014f192dfb861e319522a3 - Sigstore transparency entry: 1659103557
- Sigstore integration time:
-
Permalink:
OHF-Voice/webrtc-noise-gain@3164970e8563c5dee5425cac1524f3260f86f950 -
Branch / Tag:
refs/tags/v1.3.0 - Owner: https://github.com/OHF-Voice
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3164970e8563c5dee5425cac1524f3260f86f950 -
Trigger Event:
push
-
Statement type:
File details
Details for the file webrtc_noise_gain-1.3.0-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.
File metadata
- Download URL: webrtc_noise_gain-1.3.0-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 8.8 MB
- Tags: CPython 3.9+, manylinux: glibc 2.27+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba7df808439bae994459be7e916802e384ffa4f0e750035b5284f7fe4ff466dc
|
|
| MD5 |
b549f472752d4b9bfcc735c7d5b9197b
|
|
| BLAKE2b-256 |
bce2711f829859a869aeda2dd58bc9eed32261418c5d1942b2d7929056fe74a0
|
Provenance
The following attestation bundles were made for webrtc_noise_gain-1.3.0-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl:
Publisher:
publish.yml on OHF-Voice/webrtc-noise-gain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
webrtc_noise_gain-1.3.0-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl -
Subject digest:
ba7df808439bae994459be7e916802e384ffa4f0e750035b5284f7fe4ff466dc - Sigstore transparency entry: 1659103652
- Sigstore integration time:
-
Permalink:
OHF-Voice/webrtc-noise-gain@3164970e8563c5dee5425cac1524f3260f86f950 -
Branch / Tag:
refs/tags/v1.3.0 - Owner: https://github.com/OHF-Voice
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3164970e8563c5dee5425cac1524f3260f86f950 -
Trigger Event:
push
-
Statement type: