Skip to main content

Python bindings of webrtc audio processing

Project description

WebRTC Audio Processing for Python

Build Status Pypi

Python binding of WebRTC Audio Processing.


  • swig
  • compile toolchain
  • python


There are two way to build the package.

  1. using

    git clone
    cd python-webrtc-audio-processing
    git submodule init && git submodule update
    python build
    sudo python install
  2. using Makefile

    git clone
    cd python-webrtc-audio-processing
    git submodule init && git submodule update
    cd webrtc-audio-processing
    ./configure --with-pic
    cd ../src


from webrtc_audio_processing import AudioProcessingModule as AP

ap = AP(enable_vad=True, enable_ns=True)
ap.set_stream_format(16000, 1)      # set sample rate and channels
ap.set_ns_level(1)                  # NS level from 0 to 3
ap.set_vad_level(1)                 # VAD level from 0 to 3

audio_10ms = '\0' * 160 * 2         # 10ms, 16000 sample rate, 16 bits, 1 channel

# only support processing 10ms audio data each time
audio_out = ap.process_stream(audio_10ms)
print('voice: {}'.format(ap.has_voice()))

Project details

Download files

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

Files for webrtc-audio-processing, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size webrtc_audio_processing-0.1.2.tar.gz (610.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page