Skip to content

Add C++ support for MatchaTTS models not from icefall. #1834

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

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

csukuangfj
Copy link
Collaborator

Fixes #1779

See pre-built APKs at
https://k2-fsa.github.io/sherpa/onnx/tts/apk-engine.html

Screenshot 2025-02-10 at 15 35 44

CC @mah92


Usage

curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/matcha-tts-fa_en-male.tar.bz2
tar xvf matcha-tts-fa_en-male.tar.bz2
rm matcha-tts-fa_en-male.tar.bz2

curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/vocoder-models/hifigan_v2.onnx

build/bin/sherpa-onnx-offline-tts \
  --matcha-acoustic-model=./matcha-tts-fa_en-male/model.onnx \
  --matcha-vocoder=./hifigan_v2.onnx \
  --matcha-tokens=./matcha-tts-fa_en-male/tokens.txt \
  --matcha-data-dir=./matcha-tts-fa_en-male/espeak-ng-data \
  --output-filename=./tts/test-matcha-fa-en-male.wav \
  --num-threads=2 \
  "How are you doing today? این یک نمونه ی تست فارسی است. This is a test."

@csukuangfj
Copy link
Collaborator Author

You can also try it at
https://huggingface.co/spaces/k2-fsa/text-to-speech

Screenshot 2025-02-10 at 16 21 13

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.

Adding fa/en matcha-tts model for android
1 participant