Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Ukrainian VITS models from coqui-ai/TTS #469

Merged
merged 4 commits into from
Dec 6, 2023

Conversation

csukuangfj
Copy link
Collaborator

CC @magicse

You can find the model at
https://github.com/k2-fsa/sherpa-onnx/releases/tag/tts-models

Screenshot 2023-12-06 at 14 11 45

Usage of the model

Method 1

git clone https://github.com/k2-fsa/sherpa-onnx
cd sherpa-onnx
mkdir build
cd build
cmake ..
make -j

wget https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-coqui-uk-mai.tar.bz2
tar xf vits-coqui-uk-mai.tar.bz2

./bin/sherpa-onnx-offline-tts-play
  --vits-model=./vits-coqui-uk-mai/model.onnx \
  --vits-tokens=./vits-coqui-uk-mai/tokens.txt \
  --num-threads=1 \
  --output-filename=./abc.wav \
  --debug=1 \
  "Сьогодні, як завжди, люди діляться на дві групи: раби і вільні люди. Той, хто не має двох третин свого дня для себе, є рабом, ким би він не був: державним діячем, бізнесменом, чиновником чи вченим. "

Method 2

You can visit the following huggingface space
https://huggingface.co/spaces/k2-fsa/text-to-speech

Screenshot 2023-12-06 at 14 14 04

Method 3

You can download the following exe for Windows

https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/sherpa-onnx-non-streaming-tts-x64-v1.8.11.exe

Screenshot 2023-12-06 at 14 14 04

@csukuangfj csukuangfj mentioned this pull request Dec 6, 2023
@csukuangfj
Copy link
Collaborator Author

A screenshot of the model directory is given below.

You can find how the model is exported to sherpa-onnx by looking at the two scripts in the model directory.

Screenshot 2023-12-06 at 14 20 41

@csukuangfj csukuangfj merged commit d341614 into k2-fsa:master Dec 6, 2023
157 of 166 checks passed
@csukuangfj csukuangfj deleted the coqui-ai-tts-ukrainian branch December 6, 2023 11:37
XiaYucca pushed a commit to XiaYucca/sherpa-onnx that referenced this pull request Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant