Add C# and JavaScript (wasm) API for MatchaTTS models (#1682)
This commit is contained in:
@@ -42,9 +42,45 @@ node ./test-offline-speaker-diarization.js
|
||||
|
||||
In the following, we demonstrate how to run text-to-speech.
|
||||
|
||||
## ./test-offline-tts-en.js
|
||||
## ./test-offline-tts-matcha-zh.js
|
||||
|
||||
[./test-offline-tts-en.js](./test-offline-tts-en.js) shows how to use
|
||||
[./test-offline-tts-matcha-zh.js](./test-offline-tts-matcha-zh.js) shows how to use
|
||||
[matcha-icefall-zh-baker](https://k2-fsa.github.io/sherpa/onnx/tts/pretrained_models/matcha.html#matcha-icefall-zh-baker-chinese-1-female-speaker)
|
||||
for text-to-speech.
|
||||
|
||||
You can use the following command to run it:
|
||||
|
||||
```bash
|
||||
wget https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/matcha-icefall-zh-baker.tar.bz2
|
||||
tar xvf matcha-icefall-zh-baker.tar.bz2
|
||||
rm matcha-icefall-zh-baker.tar.bz2
|
||||
|
||||
wget https://github.com/k2-fsa/sherpa-onnx/releases/download/vocoder-models/hifigan_v2.onnx
|
||||
|
||||
node ./test-offline-tts-matcha-zh.js
|
||||
```
|
||||
|
||||
## ./test-offline-tts-matcha-en.js
|
||||
|
||||
[./test-offline-tts-matcha-en.js](./test-offline-tts-matcha-en.js) shows how to use
|
||||
[matcha-icefall-en_US-ljspeech](https://k2-fsa.github.io/sherpa/onnx/tts/pretrained_models/matcha.html#matcha-icefall-en-us-ljspeech-american-english-1-female-speaker)
|
||||
for text-to-speech.
|
||||
|
||||
You can use the following command to run it:
|
||||
|
||||
```bash
|
||||
wget https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/matcha-icefall-en_US-ljspeech.tar.bz2
|
||||
tar xvf matcha-icefall-en_US-ljspeech.tar.bz2
|
||||
rm matcha-icefall-en_US-ljspeech.tar.bz2
|
||||
|
||||
wget https://github.com/k2-fsa/sherpa-onnx/releases/download/vocoder-models/hifigan_v2.onnx
|
||||
|
||||
node ./test-offline-tts-matcha-en.js
|
||||
```
|
||||
|
||||
## ./test-offline-tts-vits-en.js
|
||||
|
||||
[./test-offline-tts-vits-en.js](./test-offline-tts-vits-en.js) shows how to use
|
||||
[vits-piper-en_US-amy-low.tar.bz2](https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-piper-en_US-amy-low.tar.bz2)
|
||||
for text-to-speech.
|
||||
|
||||
@@ -53,12 +89,12 @@ You can use the following command to run it:
|
||||
```bash
|
||||
wget -q https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-piper-en_US-amy-low.tar.bz2
|
||||
tar xvf vits-piper-en_US-amy-low.tar.bz2
|
||||
node ./test-offline-tts-en.js
|
||||
node ./test-offline-tts-vits-en.js
|
||||
```
|
||||
|
||||
## ./test-offline-tts-zh.js
|
||||
## ./test-offline-tts-vits-zh.js
|
||||
|
||||
[./test-offline-tts-zh.js](./test-offline-tts-zh.js) shows how to use
|
||||
[./test-offline-tts-vits-zh.js](./test-offline-tts-vits-zh.js) shows how to use
|
||||
a VITS pretrained model
|
||||
[aishell3](https://k2-fsa.github.io/sherpa/onnx/tts/pretrained_models/vits.html#vits-model-aishell3)
|
||||
for text-to-speech.
|
||||
@@ -68,7 +104,7 @@ You can use the following command to run it:
|
||||
```bash
|
||||
wget -q https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-icefall-zh-aishell3.tar.bz2
|
||||
tar xvf vits-icefall-zh-aishell3.tar.bz2
|
||||
node ./test-offline-tts-zh.js
|
||||
node ./test-offline-tts-vits-zh.js
|
||||
```
|
||||
|
||||
# Speech-to-text
|
||||
|
||||
Reference in New Issue
Block a user