• Stars
    star
    153
  • Rank 241,840 (Top 5 %)
  • Language
    C++
  • Created over 7 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python bindings of WebRTC Audio Processing

WebRTC Audio Processing for Python

Build Status Pypi

Python binding of WebRTC Audio Processing.

Requirements

  • swig
  • compile toolchain
  • python

Build

There are two way to build the package.

  1. using setup.py

    git clone https://github.com/xiongyihui/python-webrtc-audio-processing.git
    cd python-webrtc-audio-processing
    git submodule init && git submodule update
    python setup.py build
    sudo python setup.py install
  2. using Makefile

    git clone https://github.com/xiongyihui/python-webrtc-audio-processing.git
    cd python-webrtc-audio-processing
    git submodule init && git submodule update
    cd webrtc-audio-processing
    ./autogen.sh
    ./configure --with-pic
    make
    cd ../src
    make

Usage

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()))

More Repositories

1

tdoa

TDOA based on GCC-PHAT
Python
130
star
2

speexdsp-python

Speex Echo Canceller Python Library
Python
94
star
3

pqcom

A simple and handy serial tool for Linux/Windows/Mac - 简单的跨平台串口工具
Python
37
star
4

Webcam

Make an android phone a WiFi webcam
Java
34
star
5

wifi-car

build a Wi-Fi car with open source technologies
Java
26
star
6

nrf51_dfu_tool

A DFU tool for nRF51822 OTA. https://developer.mbed.org/teams/Bluetooth-Low-Energy/wiki/Firmware-Over-the-Air-FOTA-Updates
Python
15
star
7

keyboard

解开键盘封印,释放生产力
AutoHotkey
10
star
8

PN532

NFC library for Arduino
C++
10
star
9

LinkIt_Smart_7688

Makefile
7
star
10

NFCDemo

Use NFC technology to bring you a surprise
Java
6
star
11

ezdib

Automatically exported from code.google.com/p/ezdib
C
6
star
12

nrf51_flashtool

use pyocd to flash nrf51822
Python
4
star
13

lsdcomm

use pqcom instead
C++
4
star
14

alexa

Hands-free voice interaction web app using pocketsphinx.js and Alexa Voice Service
JavaScript
4
star
15

mbed-CMSIS-DAP

Turn a mbed enabled development board (with USB) into a CMSIS-DAP debug probe
C++
4
star
16

notes

Notes
3
star
17

audio_measurement

Python
2
star
18

archcookbook

Ruby
1
star
19

soundcard-latency

A tool to measure soundcard latency
Python
1
star
20

pocketsphinx-python-light

use https://github.com/respeaker/respeaker-feed/tree/master/pocketsphinx instead
C
1
star
21

pi_desktop_robot

Python
1
star
22

LPC11Uxx_CMSIS_DAP

C
1
star
23

lpc11u35_on_respeaker

C
1
star
24

webrtc-audio-processing

git://anongit.freedesktop.org/pulseaudio/webrtc-audio-processing
C
1
star
25

Arch

Arch is an mbed enabled development board which combines some features of mbed and Arduino
Shell
1
star
26

mbed_ble

CMake
1
star