Skip to main content

Noise suppression and automatic gain with speex

Project description

pyspeex-noise

Noise suppression and automatic gain control using speex.

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyspeex_noise-2.0.1.tar.gz (50.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyspeex_noise-2.0.1-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (145.7 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyspeex_noise-2.0.1-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (137.9 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

File details

Details for the file pyspeex_noise-2.0.1.tar.gz.

File metadata

  • Download URL: pyspeex_noise-2.0.1.tar.gz
  • Upload date:
  • Size: 50.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyspeex_noise-2.0.1.tar.gz
Algorithm Hash digest
SHA256 607b3faf8cd11edf01620fa0e05f7d98ed5027aee637ffe28534321eed1a610a
MD5 920392b18dbb79917b54b0118b1d02e4
BLAKE2b-256 d5e8306f0f33710ec1cc4215df174066469ffa7e18654562d205986fffae1d3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyspeex_noise-2.0.1.tar.gz:

Publisher: publish.yml on rhasspy/pyspeex-noise

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyspeex_noise-2.0.1-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyspeex_noise-2.0.1-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bbcc365556bd184ab3da17276dbfadb21485dcd013496889006eb31ffb341c06
MD5 ac4f8ff93ed642f809481bc837df9fb4
BLAKE2b-256 4ea844214e9554f29bd1b00b4455c62219b8cc2910d118167f2138c0d2b2f284

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyspeex_noise-2.0.1-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on rhasspy/pyspeex-noise

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyspeex_noise-2.0.1-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pyspeex_noise-2.0.1-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e9770a7807d3f67b54dea95ac89288a8ca222feb1f9351acd411edb2b8c0fd03
MD5 a148b7dd330b1207d2ebbc55570158ba
BLAKE2b-256 5c42f6d912bc4ed49912bac7908306e3e09fa90d489845c5758629a7156462fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyspeex_noise-2.0.1-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl:

Publisher: publish.yml on rhasspy/pyspeex-noise

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page