This repository has been archived on 2025-08-26. You can view files and clone it, but cannot push or open issues or pull requests.
Files
enginex-mr_series-sherpa-onnx/go-api-examples/non-streaming-tts/run-vits-zh-aishell3.sh

44 lines
1.5 KiB
Bash
Raw Normal View History

2023-10-20 15:57:52 +08:00
#!/usr/bin/env bash
2024-05-21 11:50:13 +08:00
set -ex
2023-10-20 15:57:52 +08:00
2024-05-21 11:50:13 +08:00
if [ ! -d vits-icefall-zh-aishell3 ]; then
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-icefall-zh-aishell3.tar.bz2
tar xvf vits-icefall-zh-aishell3.tar.bz2
rm vits-icefall-zh-aishell3.tar.bz2
fi
go mod tidy
go build
2023-10-20 15:57:52 +08:00
for sid in 10 33 99; do
./non-streaming-tts \
--vits-model=./vits-icefall-zh-aishell3/model.onnx \
--vits-lexicon=./vits-icefall-zh-aishell3/lexicon.txt \
--vits-tokens=./vits-icefall-zh-aishell3/tokens.txt \
2023-12-09 00:07:52 +08:00
--sid=$sid \
2023-10-20 15:57:52 +08:00
--debug=1 \
--output-filename=./liliana-$sid.wav \
"林美丽最美丽、最漂亮、最可爱!"
2023-12-09 00:07:52 +08:00
./non-streaming-tts \
--vits-model=./vits-icefall-zh-aishell3/model.onnx \
--vits-lexicon=./vits-icefall-zh-aishell3/lexicon.txt \
--vits-tokens=./vits-icefall-zh-aishell3/tokens.txt \
--tts-rule-fsts=./vits-icefall-zh-aishell3/phone.fst,./vits-icefall-zh-aishell3/date.fst,./vits-icefall-zh-aishell3/number.fst \
2023-12-09 00:07:52 +08:00
--sid=$sid \
--debug=1 \
--output-filename=./numbers-$sid.wav \
"数字12345.6789怎么念"
./non-streaming-tts \
--vits-model=./vits-icefall-zh-aishell3/model.onnx \
--vits-lexicon=./vits-icefall-zh-aishell3/lexicon.txt \
--vits-tokens=./vits-icefall-zh-aishell3/tokens.txt \
--tts-rule-fsts=./vits-icefall-zh-aishell3/phone.fst,./vits-icefall-zh-aishell3/date.fst,./vits-icefall-zh-aishell3/number.fst \
--tts-rule-fars=./vits-icefall-zh-aishell3/rule.far \
--sid=$sid \
--debug=1 \
--output-filename=./heteronym-$sid.wav \
"万古长存长沙长大长白山长孙长安街"
2023-10-20 15:57:52 +08:00
done