Skip to main content

Python bindings of speexdsp noise suppression library (Vulcanlabs fork with multi-platform wheels)

Project description

speexdsp-ns-vulcanlabs

Python bindings for SpeexDSP noise suppression library with pre-built wheels for multiple platforms.

This is a fork of TeaPoly/speexdsp-ns-python with added support for:

  • ✅ Linux x86_64
  • ✅ Linux ARM64 (aarch64)
  • ✅ macOS x86_64 (Intel)
  • ✅ macOS ARM64 (Apple Silicon M1/M2/M3)
  • ✅ Python 3.8 - 3.12

Installation

pip install speexdsp-ns-vulcanlabs

Usage

from speexdsp_ns import NoiseSuppression

# Create noise suppression instance
# frame_size: number of samples per frame (e.g., 256)
# sample_rate: audio sample rate in Hz (e.g., 16000)
ns = NoiseSuppression.create(frame_size=256, sample_rate=16000)

# Process audio frame (must be bytes of int16 samples)
# Input: raw PCM audio bytes (frame_size * 2 bytes for int16)
# Output: noise-suppressed audio bytes
processed_audio = ns.process(raw_audio_bytes)

Example: Process WAV file

import wave
from speexdsp_ns import NoiseSuppression

frame_size = 256

# Open input file
with wave.open('input.wav', 'rb') as infile:
    sample_rate = infile.getframerate()
    
    # Create noise suppression
    ns = NoiseSuppression.create(frame_size, sample_rate)
    
    # Open output file
    with wave.open('output.wav', 'wb') as outfile:
        outfile.setnchannels(1)
        outfile.setsampwidth(2)  # 16-bit
        outfile.setframerate(sample_rate)
        
        while True:
            data = infile.readframes(frame_size)
            if len(data) != frame_size * 2:
                break
            
            # Process frame
            processed = ns.process(data)
            outfile.writeframes(processed)

Requirements

  • Python 3.8+
  • No additional system dependencies required (pre-built wheels include speexdsp)

Building from source

If you need to build from source:

# Linux (Ubuntu/Debian)
sudo apt-get install libspeexdsp-dev swig
pip install .

# macOS
brew install speexdsp swig
export LDFLAGS="-L$(brew --prefix speexdsp)/lib"
export CPPFLAGS="-I$(brew --prefix speexdsp)/include"
pip install .

License

BSD-3-Clause License (same as original speexdsp-ns-python)

Credits

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

speexdsp_ns_vulcanlabs-0.1.3.tar.gz (52.7 kB view details)

Uploaded Source

Built Distributions

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

speexdsp_ns_vulcanlabs-0.1.3-cp312-cp312-manylinux_2_28_x86_64.whl (314.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

speexdsp_ns_vulcanlabs-0.1.3-cp312-cp312-manylinux_2_28_aarch64.whl (301.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

speexdsp_ns_vulcanlabs-0.1.3-cp312-cp312-macosx_11_0_arm64.whl (73.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

speexdsp_ns_vulcanlabs-0.1.3-cp312-cp312-macosx_10_13_x86_64.whl (74.2 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

speexdsp_ns_vulcanlabs-0.1.3-cp311-cp311-manylinux_2_28_x86_64.whl (310.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

speexdsp_ns_vulcanlabs-0.1.3-cp311-cp311-manylinux_2_28_aarch64.whl (299.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

speexdsp_ns_vulcanlabs-0.1.3-cp311-cp311-macosx_11_0_arm64.whl (73.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

speexdsp_ns_vulcanlabs-0.1.3-cp311-cp311-macosx_10_9_x86_64.whl (73.8 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

speexdsp_ns_vulcanlabs-0.1.3-cp310-cp310-manylinux_2_28_x86_64.whl (309.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

speexdsp_ns_vulcanlabs-0.1.3-cp310-cp310-manylinux_2_28_aarch64.whl (298.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

speexdsp_ns_vulcanlabs-0.1.3-cp310-cp310-macosx_11_0_arm64.whl (73.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

speexdsp_ns_vulcanlabs-0.1.3-cp310-cp310-macosx_10_9_x86_64.whl (73.8 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

speexdsp_ns_vulcanlabs-0.1.3-cp39-cp39-manylinux_2_28_x86_64.whl (309.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

speexdsp_ns_vulcanlabs-0.1.3-cp39-cp39-manylinux_2_28_aarch64.whl (298.0 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ ARM64

speexdsp_ns_vulcanlabs-0.1.3-cp39-cp39-macosx_11_0_arm64.whl (73.5 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

speexdsp_ns_vulcanlabs-0.1.3-cp39-cp39-macosx_10_9_x86_64.whl (73.8 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

speexdsp_ns_vulcanlabs-0.1.3-cp38-cp38-manylinux_2_28_x86_64.whl (309.9 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64

speexdsp_ns_vulcanlabs-0.1.3-cp38-cp38-manylinux_2_28_aarch64.whl (298.6 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ ARM64

speexdsp_ns_vulcanlabs-0.1.3-cp38-cp38-macosx_11_0_arm64.whl (73.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

speexdsp_ns_vulcanlabs-0.1.3-cp38-cp38-macosx_10_9_x86_64.whl (73.8 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3.tar.gz.

File metadata

  • Download URL: speexdsp_ns_vulcanlabs-0.1.3.tar.gz
  • Upload date:
  • Size: 52.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3.tar.gz
Algorithm Hash digest
SHA256 cdf9884336d93ebd2d6861d596735f858596dce9e4e2246b567aa93f74c1d5b6
MD5 fef276dd36ff9f4e3f8cb66b8337e7dd
BLAKE2b-256 acd5b9d4253c6621bb325fffa8499bfe35aa5e81a65ee98f3954ec8aa68159a1

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b6277ce7d12c310a9998aa43626bbc54d308e16275052993bc024f2b1f35a911
MD5 783e0eca607eb090fd4f73363d8efcf2
BLAKE2b-256 cba6da52aad380894516be1300dd95fc385aaaabbdfb95d73d21b520976eb25e

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c2a11ad74f754461bc12aefa4684f82dd5020bd631210c1364069b647cdf6364
MD5 ba628db88f843fca723382d282db7966
BLAKE2b-256 51b374fcadff4dd0444a462b3918da8cd7036d1a0d93fe59e68f81644f5fa922

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 083f65158b7a53ad4000570f70948af74aafc0a728b79a2ab516580e5b1f948d
MD5 80c6952732e97b82b235782f9c7e2704
BLAKE2b-256 985a065ecc7a393601ef21f944aa2d437370723d29c1dfd9b26aa740b626531e

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 70b1cbba5bd9ebcd95a5acab2fad923325a9f163e9a61246096de3710c7a7ab2
MD5 f08be88de8ce848f5de827022f3bdf06
BLAKE2b-256 0a4c1fddca64034b1e2c7adb9d24ecb089c0ad9bfb2e41a84e8507186b35443c

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fb948ae2c97287c65116b7d9703f69fb2b4cd537d8080a54f77df023182f864a
MD5 da64576e9cd19ba738294dcdc122f77e
BLAKE2b-256 0bf1903ff1ec25440cd0b196a4c698069a0e6aa797e7f961e0349faf2e529687

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 342712e785209228b4927baa12a5377ff166ba4609a95119b5202258d0151776
MD5 330ded8973c7a9bc29ff729a7ce6184c
BLAKE2b-256 77bdfc6dfadf21feae017ccb36a4acdff02faa94eb6b71da09e4439b4475bdca

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0af9cc84730e124c0ff0de9def97556d977f545f693f316508340a07c3a9eb2
MD5 fd3557e3276924ccc1f3cd664e614cb0
BLAKE2b-256 ef4d7295c274fd61584186836d1d834b4119f750500b26c64be9e87a2cc58efc

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ac4a6ad293def8ebfe910ff6529fdf9f7956984be549e1848f83ced7a9cd20ed
MD5 a8dd978b3cca5cbe3754900439a5459b
BLAKE2b-256 68d4226c06e4f28b061cf1bf3fd615597f103be21b91fc40fc5d902cfc67650a

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a9921c9e1614f3634aa07d4e69f6aeb0e6d48b9347b623a437454e3d1f9eb38a
MD5 c02c6b7ce37731b4315a3fcf60b9caff
BLAKE2b-256 85ff486d0d8323442c49aab1708dd1e27fba99147c63b6006e4adc54400c663d

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b919278c850f7333b2761b3d9e07ca13985d006407fff39d981428f1c1adddab
MD5 372619547adfe3b55decf48a800f2807
BLAKE2b-256 fd79f4ac83bc4f5d9e8cbf68b4f568f04702ff90df8020865e6abe3ce146b0a6

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ffd9e7ec695992f16ee0a2f5fa5358286379c2ae80b19e89abb090901debb1c
MD5 ee85258a690441b03dd16b335fd9f870
BLAKE2b-256 92cde0792407e8867d25db92215c9bf6133fc22a46e4403792e782c2f96aa2b5

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b4a7327b5cb378c1ac694be4ec9f2d2d3cccd2a18a907b3ce1a5d6cdafe1fb64
MD5 b455fef57fbc33088c29c539a0623f6d
BLAKE2b-256 f55dcceb8b5b9b08acbe44a303be8a4f5bf81e8374cd730ce226b9d7e30abc40

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f4c52ec33fa00d198f0799e0dbd99f6d6e21dc0c270aba5f511e0faa58cde792
MD5 046b7585f4a50fdfa51d5eb9b61e9085
BLAKE2b-256 6f91906dc29d470958f85bde6a3110831fd58c31aeb73aff887e49208b60be90

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp39-cp39-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9f636a8b1e3abba5de25edfd3f5bc52978cf822d55c13e577cd92b245f9ae18d
MD5 6fb8c0cc65e8e20f949de83e95fb3791
BLAKE2b-256 8f7bc26cbdcb54c8ddd7f12519591c933b536758a7567b389d774d264911a739

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a0683a643f01594ca68a8d41a6258d1de0abee0b364682f78bfdde2f5d07ef66
MD5 29421d1eae863f953a334659a587e39f
BLAKE2b-256 e2ac025d6c7d8e12dfddabf79bf01daddb899198d41a2e363dc40adb5174697b

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 644af5a006602ca43c663a1c6ff21c683b299221dde7f0cc8baa034f60b4ff23
MD5 064d6953e2ed4a2c3ccee5bef15cfc0e
BLAKE2b-256 7b19a0ccbba1a88cca8da3c2f7b304b941bc83063ef4b4ae741cdd5eec79c5a6

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp38-cp38-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b3751b336cd914a7acbf43f4e8d55c8c4a23ce7a81a94f9e7e155c4b62a59ed7
MD5 1c05637a132d8c514b108b969b901371
BLAKE2b-256 611e9c16f4bdcaadd8463c96e1276844dea284100eb0de81fa4d5647de7b6541

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp38-cp38-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp38-cp38-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 912534f4f6b8f70dd0bdc033e3f66d07ea832d8ada4253406b9d5b330d1990b7
MD5 1e9126107864f154afe97ad665403c21
BLAKE2b-256 ca4590c3b136669ef9a27f11a46b6c7c42d31d9e659839a97e745f87fd782875

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d98a7b39879993e545350e5c26d6a968eefbdd59e8c27fd844867c4c223bcc8d
MD5 81e2b446007d8cbd2332998b685ac3d9
BLAKE2b-256 588c7d22908157ff1c61224cd5430172019de8ad2cbb65036894fcd034e4cc89

See more details on using hashes here.

File details

Details for the file speexdsp_ns_vulcanlabs-0.1.3-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for speexdsp_ns_vulcanlabs-0.1.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2150859bb5876b0039098a72e66b1a8732d8fc529d14d95f05beddad6d26a26c
MD5 a435c7086c06a931e9343168dae0c885
BLAKE2b-256 e997003e55c0cf453b315f172c157e3af8ca4da1719b1de331bb6e592d74b1ef

See more details on using hashes here.

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