Add Go implementation of the TTS generation callback (#2213)
This commit is contained in:
22
go-api-examples/offline-tts-play/run-vits-vctk.sh
Normal file
22
go-api-examples/offline-tts-play/run-vits-vctk.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
if [ ! -d vits-vctk ]; then
|
||||
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-vctk.tar.bz2
|
||||
tar xvf vits-vctk.tar.bz2
|
||||
rm vits-vctk.tar.bz2
|
||||
fi
|
||||
|
||||
go mod tidy
|
||||
go build
|
||||
|
||||
for sid in 0 10 108; do
|
||||
./offline-tts-play \
|
||||
--vits-model=./vits-vctk/vits-vctk.onnx \
|
||||
--vits-lexicon=./vits-vctk/lexicon.txt \
|
||||
--vits-tokens=./vits-vctk/tokens.txt \
|
||||
--sid=0 \
|
||||
--debug=1 \
|
||||
'Ask not what your country can do for you; ask what you can do for your country.'
|
||||
done
|
||||
Reference in New Issue
Block a user