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/dart-api-examples/tts/run-coqui.sh
2024-06-15 14:30:36 +08:00

29 lines
711 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
dart pub get
# Please visit
# https://github.com/k2-fsa/sherpa-onnx/releases/tag/tts-models
# to download more models
if [[ ! -f ./vits-coqui-de-css10/tokens.txt ]]; then
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-coqui-de-css10.tar.bz2
tar xvf vits-coqui-de-css10.tar.bz2
rm vits-coqui-de-css10.tar.bz2
fi
# It is a character-based TTS model, so there is no need to use a lexicon
dart run \
./bin/coqui.dart \
--model ./vits-coqui-de-css10/model.onnx \
--tokens ./vits-coqui-de-css10/tokens.txt \
--sid 0 \
--speed 0.7 \
--text 'Alles hat ein Ende, nur die Wurst hat zwei.' \
--output-wav coqui-0.wav
ls -lh *.wav