mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 10:02:22 +00:00
update readme
This commit is contained in:
parent
1207505de1
commit
2c7ad4d1b0
4
.github/scripts/baker_zh/TTS/run-matcha.sh
vendored
4
.github/scripts/baker_zh/TTS/run-matcha.sh
vendored
@ -106,11 +106,14 @@ function export_onnx() {
|
|||||||
|
|
||||||
ls -lh *.onnx
|
ls -lh *.onnx
|
||||||
|
|
||||||
|
python3 ./matcha/generate_lexicon.py
|
||||||
|
|
||||||
for v in v1 v2 v3; do
|
for v in v1 v2 v3; do
|
||||||
python3 ./matcha/onnx_pretrained.py \
|
python3 ./matcha/onnx_pretrained.py \
|
||||||
--acoustic-model ./model-steps-6.onnx \
|
--acoustic-model ./model-steps-6.onnx \
|
||||||
--vocoder ./hifigan_$v.onnx \
|
--vocoder ./hifigan_$v.onnx \
|
||||||
--tokens ./data/tokens.txt \
|
--tokens ./data/tokens.txt \
|
||||||
|
--lexicon ./lexicon.txt \
|
||||||
--input-text "当夜幕降临,星光点点,伴随着微风拂面,我在静谧中感受着时光的流转,思念如涟漪荡漾,梦境如画卷展开,我与自然融为一体,沉静在这片宁静的美丽之中,感受着生命的奇迹与温柔。" \
|
--input-text "当夜幕降临,星光点点,伴随着微风拂面,我在静谧中感受着时光的流转,思念如涟漪荡漾,梦境如画卷展开,我与自然融为一体,沉静在这片宁静的美丽之中,感受着生命的奇迹与温柔。" \
|
||||||
--output-wav /icefall/generated-matcha-tts-steps-6-$v.wav
|
--output-wav /icefall/generated-matcha-tts-steps-6-$v.wav
|
||||||
done
|
done
|
||||||
@ -122,6 +125,7 @@ function export_onnx() {
|
|||||||
d=matcha-icefall-zh-baker
|
d=matcha-icefall-zh-baker
|
||||||
mkdir $d
|
mkdir $d
|
||||||
cp -v data/tokens.txt $d
|
cp -v data/tokens.txt $d
|
||||||
|
cp -v lexicon.txt $d
|
||||||
cp model-steps-3.onnx $d
|
cp model-steps-3.onnx $d
|
||||||
pushd $d
|
pushd $d
|
||||||
curl -SL -O https://github.com/csukuangfj/cppjieba/releases/download/sherpa-onnx-2024-04-19/dict.tar.bz2
|
curl -SL -O https://github.com/csukuangfj/cppjieba/releases/download/sherpa-onnx-2024-04-19/dict.tar.bz2
|
||||||
|
@ -103,6 +103,10 @@ The above command generates 3 files:
|
|||||||
To use the generated onnx files to generate speech from text, please run:
|
To use the generated onnx files to generate speech from text, please run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
||||||
|
# First, generate ./lexicon.txt
|
||||||
|
python3 ./matcha/generate_lexicon.py
|
||||||
|
|
||||||
python3 ./matcha/onnx_pretrained.py \
|
python3 ./matcha/onnx_pretrained.py \
|
||||||
--acoustic-model ./model-steps-4.onnx \
|
--acoustic-model ./model-steps-4.onnx \
|
||||||
--vocoder ./hifigan_v2.onnx \
|
--vocoder ./hifigan_v2.onnx \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user