Add Go API for TTS (#377)
This commit is contained in:
16
go-api-examples/non-streaming-tts/run-vits-zh-aishell3.sh
Executable file
16
go-api-examples/non-streaming-tts/run-vits-zh-aishell3.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# please refer to
|
||||
# https://k2-fsa.github.io/sherpa/onnx/tts/pretrained_models/vits.html#aishell3-chinese-multi-speaker-174-speakers
|
||||
# to download the model before you run this script
|
||||
|
||||
for sid in 10 33 99; do
|
||||
./non-streaming-tts \
|
||||
--vits-model=./vits-zh-aishell3/vits-aishell3.onnx \
|
||||
--vits-lexicon=./vits-zh-aishell3/lexicon.txt \
|
||||
--vits-tokens=./vits-zh-aishell3/tokens.txt \
|
||||
--sid=10 \
|
||||
--debug=1 \
|
||||
--output-filename=./liliana-$sid.wav \
|
||||
"林美丽最美丽、最漂亮、最可爱!"
|
||||
done
|
||||
Reference in New Issue
Block a user