Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 746 Bytes

File metadata and controls

16 lines (11 loc) · 746 Bytes

go-whisper-cpp-server-example

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.

Dependencies (for mac)

  • Install whisper.cpp
  • Download the whisper model converted to ggml format: ggerganov/whisper.cpp
  • Install onnxruntime: brew install onnxruntime

How to run

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