Add Go implementation of the TTS generation callback (#2213)
This commit is contained in:
20
go-api-examples/offline-tts-play/run-vits-ljs.sh
Normal file
20
go-api-examples/offline-tts-play/run-vits-ljs.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
if [ ! -d vits-ljs ]; then
|
||||
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-ljs.tar.bz2
|
||||
tar xvf vits-ljs.tar.bz2
|
||||
rm vits-ljs.tar.bz2
|
||||
fi
|
||||
|
||||
go mod tidy
|
||||
go build
|
||||
|
||||
./offline-tts-play \
|
||||
--vits-model=./vits-ljs/vits-ljs.onnx \
|
||||
--vits-lexicon=./vits-ljs/lexicon.txt \
|
||||
--vits-tokens=./vits-ljs/tokens.txt \
|
||||
--sid=0 \
|
||||
--debug=1 \
|
||||
"Liliana, the most beautiful and lovely assistant of our team!"
|
||||
Reference in New Issue
Block a user