Golang bindings for Mozilla's/Coqui's STT speech-to-text library.
astideepspeech
is compatible with version v1.0.0
of STT
.
Run the following command:
$ pip3 install --extra-index-url https://google-coral.github.io/py-repo/ tflite_runtime
- fetch an up-to-date
native_client.<your system>.tar.xz
matching your system from "releases" - extract its content to /tmp/stt/lib
- set environment variables to point to client export CGO_LDFLAGS="-L/tmp/native_client.tflite.Linux/" export CGO_CXXFLAGS="-I/tmp/native_client.tflite.Linux/" export LD_LIBRARY_PATH=/tmp/native_client.tflite.Linux//:$LD_LIBRARY_PATH
Run the following command:
$ go get -u github.com/asticode/go-astideepspeech/...
Sign up with your email and download the scorer and tflite files from eg https://coqui.ai/english/coqui/v1.0.0-large-vocab
Run the following commands:
$ cd /tmp/deepspeech
$ wget https://github.com/coqui-ai/STT/releases/download/v1.0.0/audio-1.0.0.tar.gz
$ tar xvfz audio-1.0.0.tar.gz
Run the following commands:
$ go run deepspeech/main.go -model stt-1.0.0-model.tflite -scorer stt-1.0.0-model.scorer -audio audio/2830-3980-0043.wav
Text: experience proves this
$ go run deepspeech/main.go -model stt-1.0.0-model.tflite -scorer stt-1.0.0-model.scorer -audio audio/4507-16021-0012.wav
Text: why should one hall on the way
$ go run deepspeech/main.go -model stt-1.0.0-model.tflite -scorer stt-1.0.0-model.scorer -audio audio/8455-210777-0068.wav
Text: your power is sufficient i said