Skip to content

Python interface to the RNNoise VAD(Voice Activity Detection) component inside webrtc

License

Notifications You must be signed in to change notification settings

jzi040941/py-webrtcrnnvad

Repository files navigation

py-webrtcrnnvad

Python interface to the RNNoise VAD(Voice Activity Detection) component inside webrtc

Gitter

CI status
pip builds Pip Actions Status
cibuildwheel Wheels Actions Status

Prerequisites

  • A compiler with C++11 support
  • Pip 10+ or CMake >= 3.4 (or 3.8+ on Windows, which was the first version to support VS 2015)
  • Ninja or Pip 10+
  • Numpy

Installation

pip install py-webrtcrnnvad

License

RNNoise - BSD PyBind - BSD

Test call

import py_webrtcrnnvad
audio, fs = read_wave("audio.wav")
frames = frame_generator(10, audio, 48000)
frame = np.frombuffer(frames[0].bytes, dtype=np.short)
vad = py_webrtcrnnvad.RNNVAD()
vad.processFrame(frame.astype(np.float32))

About

Python interface to the RNNoise VAD(Voice Activity Detection) component inside webrtc

Resources

License

Stars

Watchers

Forks

Packages

No packages published