https://github.com/streamer45/silero-vad-go
A Golang (CGO) implementation of a Silero VAD powered speech detector
https://github.com/streamer45/silero-vad-go
Last synced: 6 months ago
JSON representation
A Golang (CGO) implementation of a Silero VAD powered speech detector
- Host: GitHub
- URL: https://github.com/streamer45/silero-vad-go
- Owner: streamer45
- License: mit
- Created: 2023-11-08T21:06:29.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-02-25T20:41:46.000Z (over 1 year ago)
- Last Synced: 2025-02-25T21:33:15.555Z (over 1 year ago)
- Language: Go
- Size: 3.63 MB
- Stars: 32
- Watchers: 4
- Forks: 19
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
silero-vad-go
A simple Golang (CGO + ONNX Runtime) speech detector powered by Silero VAD
### Requirements
- [Golang](https://go.dev/doc/install) >= v1.21
- A C compiler (e.g. GCC)
- ONNX Runtime (v1.18.1)
- A [Silero VAD](https://github.com/snakers4/silero-vad) model (v5)
### Development
In order to build and/or run this library, you need to export (or pass) some env variables to point to the ONNX runtime files.
#### Linux
```sh
LD_RUN_PATH="/usr/local/lib/onnxruntime-linux-x64-1.18.1/lib"
LIBRARY_PATH="/usr/local/lib/onnxruntime-linux-x64-1.18.1/lib"
C_INCLUDE_PATH="/usr/local/include/onnxruntime-linux-x64-1.18.1/include"
```
#### Darwin (MacOS)
```sh
LIBRARY_PATH="/usr/local/lib/onnxruntime-linux-x64-1.18.1/lib"
C_INCLUDE_PATH="/usr/local/include/onnxruntime-linux-x64-1.18.1/include"
sudo update_dyld_shared_cache
```
### License
MIT License - see [LICENSE](LICENSE) for full text