wiseman/py-webrtcvad has 2,503 GitHub stars and 433 forks. GitHot measured 0 stars in 24 hours and -1 in 7 days. Last checked 2026-11-12 15:03 UTC. Last push 2024-07-04.
Python interface to the WebRTC Voice Activity Detector
計測したスター増加
- 24時間
- 0
- 7日間
- -1
- 15日間
- 更新が遅れています
- 1か月
- 更新が遅れています
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル.. image:: https://travis-ci.org/wiseman/py-webrtcvad.svg?branch=master :target: https://travis-ci.org/wiseman/py-webrtcvad
py-webrtcvad
This is a python interface to the WebRTC Voice Activity Detector (VAD). It is compatible with Python 2 and Python 3.
A VAD <https://en.wikipedia.org/wiki/Voice_activity_detection>_
classifies a piece of audio data as being voiced or unvoiced. It can
be useful for telephony and speech recognition.
The VAD that Google developed for the WebRTC <https://webrtc.org/>_
project is reportedly one of the best available, being fast, modern
and free.
How to use it
Install the webrtcvad module::
pip install webrtcvad
Create a
Vadobject::import webrtcvad vad = webrtcvad.Vad()
Optionally, set its aggressiveness mode, which is an integer between 0 and 3. 0 is the least aggressive about filtering out non-speech, 3 is the most aggressive. (You can also set the mode when you create the VAD, e.g.
vad = webrtcvad.Vad(3))::vad.set_mode(1)
Give it a short segment ("frame") of audio. The WebRTC VAD only accepts 16-bit mono PCM audio, sampled at 8000, 16000, 32000 or 48000 Hz. A frame must be either 10, 20, or 30 ms in duration::
Run the VAD on 10 ms of silence. The result should be False.
sample_rate = 16000 frame_duration = 10 # ms frame = b'\x00\x00' * int(sample_rate * frame_duration / 1000) print 'Contains speech: %s' % (vad.is_speech(frame, sample_rate)
See example.py <https://github.com/wiseman/py-webrtcvad/blob/master/example.py>_ for
a more detailed example that will process a .wav file, find the voiced
segments, and write each one as a separate .wav.
How to run unit tests
To run unit tests::
pip install -e ".[dev]"
python setup.py test
History
2.0.10
Fixed memory leak. Thank you, `bond005
<https://github.com/bond005>`_!
2.0.9
Improved example code. Added WebRTC license.
2.0.8
Fixed Windows compilation errors. Thank you, `xiongyihui
<https://github.com/xiongyihui>`_!
関連プロジェクトを探す
freeCodeCamp/freeCodeCamp
freeCodeCamp.org のオープンソースのコードベースとカリキュラムです。数学、プログラミング、コンピュータサイエンスを無料で学べます。
459,068 スターdonnemartin/system-design-primer
大規模システムの設計を学び、システム設計面接の対策ができます。Anki のフラッシュカードが含まれています。
377,734 スターreact/react
Web とネイティブのユーザーインターフェース向けライブラリ。
252,565 スターvuejs/vue
Vue 2 のリポジトリです。Vue 3 については https://github.com/vuejs/core をご覧ください。
212,527 スター