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.
Usage
I have converted the model
en_US-lessac-medium
from piper to sherpa-onnxand you can find the converted model in the following repo:
https://huggingface.co/csukuangfj/vits-piper-en_US-lessac-medium
If you are interested in how the model is converted, please have a look at the following colab notebook:
https://colab.research.google.com/drive/1PScLJV3sbUUAOiptLO7Ixlzh9XnWWoYZ?usp=sharing
In the following, we describe how to use the converted model with sherpa-onnx
Download models
Build sherpa-onnx
Please use the code from this PR and build sherpa-onnx from source by following
https://k2-fsa.github.io/sherpa/onnx/install/index.html
After building sherpa-onnx, you can use
It will generate a wave file
./piper.wav
. I have converted it tomov
and attached it below so that you can listen to it.piper.mov
Your help is needed
Since
piper
provides a lot of pre-trained onnx models, it would be great if you can help convert them to sherpa-onnx.Unlike
piper
, we don't need to installpiper_phonemize
. We have converted all the words intolexicon.txt
.