Example using Silero VAD and whisper.cpp for speech recognition using go. For the article Local, all-in-one Go speech-to-text solution with Silero VAD and whisper.cpp server.
- Install whisper.cpp
- Download the whisper model converted to ggml format: ggerganov/whisper.cpp
- Install onnxruntime:
brew install onnxruntime
export LIBRARY_PATH=/opt/homebrew/Cellar/onnxruntime/1.17.1/lib
C_INCLUDE_PATH=/opt/homebrew/Cellar/onnxruntime/1.17.1/include/onnxruntime go run main.go