streamer45 / silero-vad-go

A Golang (CGO) implementation of a Silero VAD powered speech detector
MIT License
23 stars 10 forks source link


silero-vad-go

A simple Golang (CGO + ONNX Runtime) speech detector powered by Silero VAD

Go Reference License: MIT


Requirements

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

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)

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 for full text