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.0.tar.gz (49.2 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.0-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (145.6 kB view details)

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

pyspeex_noise-2.0.0-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.0.tar.gz.

File metadata

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

File hashes

Hashes for pyspeex_noise-2.0.0.tar.gz
Algorithm Hash digest
SHA256 6fdb16e59d7a353690661c71e35e2c91972419bfd79dfe37db66ead0e95e7827
MD5 269085d06931d8e8c9ec4258c4045e3d
BLAKE2b-256 39aaf257019e3159fccd34091e0acd66fd7527666417c28a3efaae40129007c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyspeex_noise-2.0.0.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.0-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyspeex_noise-2.0.0-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e26882383f81d474b31158185d88fcf91775b9c7978413a55e46b2d2ac6d41ee
MD5 e37b340a24016ec4356507c9d92b36af
BLAKE2b-256 8b35b02df058b780346e5d6a0b1cebe624e872ae5beb6ada4ffec27cefb1efe0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyspeex_noise-2.0.0-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.0-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pyspeex_noise-2.0.0-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 34928605513a0e48bbe35eec8e532c864fd4691ab03639eb5dcb53af7033b21f
MD5 3917e0ab745137b9a00dcfe1d483c546
BLAKE2b-256 e18c929d47f8ad20507cd7c6bdaa8470a7afbae286a9ca59a976917868d7d644

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyspeex_noise-2.0.0-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