Add Go API for TTS (#377)

This commit is contained in:
Fangjun Kuang
2023-10-20 15:57:52 +08:00
committed by GitHub
parent 3ba9a4932f
commit a69d0a950e
23 changed files with 400 additions and 108 deletions

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# please refer to
# https://k2-fsa.github.io/sherpa/onnx/tts/pretrained_models/vits.html#ljspeech-english-single-speaker
# to download the model before you run this script
./non-streaming-tts \
--vits-model=./vits-ljs/vits-ljs.onnx \
--vits-lexicon=./vits-ljs/lexicon.txt \
--vits-tokens=./vits-ljs/tokens.txt \
--sid=0 \
--debug=1 \
--output-filename=./vits-ljs.wav \
"Liliana, the most beautiful and lovely assistant of our team!"