Add C++ support for MatchaTTS models not from icefall. #1834
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #1779
See pre-built APKs at
https://k2-fsa.github.io/sherpa/onnx/tts/apk-engine.html
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."