alphacep / alphacep/vosk-api

Windows Go instructions do not work

Aperta
#1,322 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Jupyter Notebook
Stelle
15.1k
Fork
1.8k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

The Windows Go instructions do not work. They mostly reference linux commands, they download the wrong release file, and the linking flags has an issue. The steps below work for me. Perhaps you can just update that section with these steps.

1. Create a vosk subdirectory under your application directory.
2. Download a Windows release from:
https://github.com/alphacep/vosk-api/releases
3. Unzip the release file.
4. Move all *.dll files to your application directory.
5. Move all *.lib and *.h files to your vosk directory.
6. Download a language model from:
https://alphacephei.com/vosk/models
7. Unzip the model. It has an extra top level directory that you don't need.
Move the directory that contains a README file to your vosk directory.
8. Download the vosk.go file from:
https://github.com/alphacep/vosk-api/blob/master/go/vosk.go
9. Move this file to your vosk directory and rename it to vosk_api.go.
10. Edit this file to remove "-ldl" from the following line:
// #cgo LDFLAGS: -L ${SRCDIR}/../src -lvosk -ldl -lpthread
11. You are now ready to write Go code that uses the vosk package.
12. When calling vosk.NewModel in your code,
provide the path to the model folder.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.