Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vadimkantorov/webrtcvadctypes
https://github.com/vadimkantorov/webrtcvadctypes
ctypes python vad webrtc webrtc-vad
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/vadimkantorov/webrtcvadctypes
- Owner: vadimkantorov
- Created: 2024-07-27T13:39:16.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-08-26T12:51:07.000Z (3 months ago)
- Last Synced: 2024-10-04T22:14:56.509Z (about 1 month ago)
- Topics: ctypes, python, vad, webrtc, webrtc-vad
- Language: Python
- Homepage:
- Size: 135 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Variant of https://github.com/wiseman/py-webrtcvad but based on pure ctypes wrapper of https://webrtc.googlesource.com/src/+/refs/heads/main/modules/audio_processing/vad/, so might be slightly slower but does not require compiling and installing a Python module (instead a providing an absolute path to a native `.so` shared library is sufficient).
Also includes a similar-interfaced variant of https://webrtc.googlesource.com/src/+/refs/heads/main/modules/audio_processing/agc2/rnn_vad/ but it is not tested.
Not production ready, for working with long audios you will want to add a function that performs the frame loop in C++ and binds that.
```shell
git clone https://github.com/vadimkantorov/webrtcvadctypes --recursive
make libwebrtcvadctypesgmm.so
make libwebrtcvadctypesrnn.so
python test_webrtcvadctypes.py# git submodule add --branch lts_2024_07_22 [email protected]:abseil/abseil-cpp.git
# git submodule add https://webrtc.googlesource.com/src/
```# Notes
- `webrtcvadctypes.py` interface and `test_webrtcvadctypes.py` are taken from https://github.com/wiseman/py-webrtcvad
- `third_party` contents is taken from https://chromium.googlesource.com/chromium/src/third_party/# References
- https://github.com/wiseman/py-webrtcvad
- https://github.com/wiseman/py-webrtcvad/issues/69
- https://github.com/jzi040941/webrtc_rnnvad
- https://github.com/ladenedge/WebRtcVadSharp/blob/main/WebRtcVadSharp/WebRtc/WebRtcDll.cs
- https://webrtc.googlesource.com/src/
- https://webrtc.googlesource.com/src/+/refs/heads/main/modules/audio_processing/agc2/rnn_vad/
- https://webrtc.googlesource.com/src/+/refs/heads/master/modules/audio_processing/agc2/rnn_vad/
- https://chromium.googlesource.com/external/webrtc/+log/master/modules/audio_processing/agc2/rnn_vad
- https://chromium.googlesource.com/external/webrtc/+log/main/modules/audio_processing/agc2/rnn_vad
- https://github.com/wiseman/py-webrtcvad/blob/master/example.py