Skip to content

Commit

Permalink
Update update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kercre123 committed Jan 30, 2024
1 parent 3e912db commit 37b5b57
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,10 @@ if [[ -f ./chipper/chipper ]]; then
elif [[ ${STT_SERVICE} == "vosk" ]]; then
echo "wire-pod.service created, building chipper with VOSK STT service..."
export CGO_ENABLED=1
export CGO_CFLAGS="-I$HOME/.vosk/libvosk"
export CGO_LDFLAGS="-L $HOME/.vosk/libvosk -lvosk -ldl -lpthread"
export LD_LIBRARY_PATH="$HOME/.vosk/libvosk:$LD_LIBRARY_PATH"
sudo /usr/local/go/bin/go build cmd/vosk/main.go
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
elif [[ ${STT_SERVICE} == "coqui" ]]; then
echo "wire-pod.service created, building chipper with Coqui STT service..."
export CGO_LDFLAGS="-L$HOME/.coqui/"
export CGO_CXXFLAGS="-I$HOME/.coqui/"
export LD_LIBRARY_PATH="$HOME/.coqui/:$LD_LIBRARY_PATH"
sudo /usr/local/go/bin/go build cmd/coqui/main.go
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
else
echo "Unsupported STT ${STT_SERVICE}. You must build this manually. The code has been updated, though."
exit 1
Expand Down

0 comments on commit 37b5b57

Please sign in to comment.