File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -46,16 +46,10 @@ if [[ -f ./chipper/chipper ]]; then
46
46
elif [[ ${STT_SERVICE} == " vosk" ]]; then
47
47
echo " wire-pod.service created, building chipper with VOSK STT service..."
48
48
export CGO_ENABLED=1
49
- export CGO_CFLAGS=" -I$HOME /.vosk/libvosk"
50
- export CGO_LDFLAGS=" -L $HOME /.vosk/libvosk -lvosk -ldl -lpthread"
51
- export LD_LIBRARY_PATH=" $HOME /.vosk/libvosk:$LD_LIBRARY_PATH "
52
- sudo /usr/local/go/bin/go build cmd/vosk/main.go
49
+ sudo LD_LIBRARY_PATH=" /root/.vosk/libvosk:$LD_LIBRARY_PATH " CGO_LDFLAGS=" -L /root/.vosk/libvosk -lvosk -ldl -lpthread" CGO_CFLAGS=" -I/root/.vosk/libvosk" CGO_ENABLED=1 /usr/local/go/bin/go build cmd/vosk/main.go
53
50
elif [[ ${STT_SERVICE} == " coqui" ]]; then
54
51
echo " wire-pod.service created, building chipper with Coqui STT service..."
55
- export CGO_LDFLAGS=" -L$HOME /.coqui/"
56
- export CGO_CXXFLAGS=" -I$HOME /.coqui/"
57
- export LD_LIBRARY_PATH=" $HOME /.coqui/:$LD_LIBRARY_PATH "
58
- sudo /usr/local/go/bin/go build cmd/coqui/main.go
52
+ sudo LD_LIBRARY_PATH=" /root/.coqui/:$LD_LIBRARY_PATH " CGO_CXXFLAGS=" -I/root/.coqui/" CGO_LDFLAGS=" -L/root/.coqui/" /usr/local/go/bin/go build cmd/coqui/main.go
59
53
else
60
54
echo " Unsupported STT ${STT_SERVICE} . You must build this manually. The code has been updated, though."
61
55
exit 1
You can’t perform that action at this time.
0 commit comments