k2-fsa / sherpa-onnx

Speech-to-text, text-to-speech, speaker diarization, and VAD using next-gen Kaldi with onnxruntime without Internet connection. Support embedded systems, Android, iOS, Raspberry Pi, RISC-V, x86_64 servers, websocket server/client, C/C++, Python, Kotlin, C#, Go, NodeJS, Java, Swift, Dart, JavaScript, Flutter, Object Pascal, Lazarus, Rust
https://k2-fsa.github.io/sherpa/onnx/index.html
Apache License 2.0
3.69k stars 428 forks source link

Export the English TTS model from MeloTTS #1509

Closed csukuangfj closed 3 weeks ago

csukuangfj commented 3 weeks ago

Usage:

build/bin/sherpa-onnx-offline-tts \
  --vits-model=./vits-melo-tts-en/model.onnx \
  --vits-lexicon=./vits-melo-tts-en/lexicon.txt \
  --vits-tokens=./vits-melo-tts-en/tokens.txt \
  --sid=3 --output-filename=./s3.wav \
'how are you doing'

You can download the model from https://github.com/k2-fsa/sherpa-onnx/releases/tag/tts-models E.g., https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-melo-tts-en.tar.bz2

csukuangfj commented 3 weeks ago

Fixes https://github.com/k2-fsa/sherpa/issues/670