Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Dec 30, 2024
1 parent 1207505 commit 2c7ad4d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/scripts/baker_zh/TTS/run-matcha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,14 @@ function export_onnx() {

ls -lh *.onnx

python3 ./matcha/generate_lexicon.py

for v in v1 v2 v3; do
python3 ./matcha/onnx_pretrained.py \
--acoustic-model ./model-steps-6.onnx \
--vocoder ./hifigan_$v.onnx \
--tokens ./data/tokens.txt \
--lexicon ./lexicon.txt \
--input-text "当夜幕降临,星光点点,伴随着微风拂面,我在静谧中感受着时光的流转,思念如涟漪荡漾,梦境如画卷展开,我与自然融为一体,沉静在这片宁静的美丽之中,感受着生命的奇迹与温柔。" \
--output-wav /icefall/generated-matcha-tts-steps-6-$v.wav
done
Expand All @@ -122,6 +125,7 @@ function export_onnx() {
d=matcha-icefall-zh-baker
mkdir $d
cp -v data/tokens.txt $d
cp -v lexicon.txt $d
cp model-steps-3.onnx $d
pushd $d
curl -SL -O https://github.com/csukuangfj/cppjieba/releases/download/sherpa-onnx-2024-04-19/dict.tar.bz2
Expand Down
4 changes: 4 additions & 0 deletions egs/baker_zh/TTS/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ The above command generates 3 files:
To use the generated onnx files to generate speech from text, please run:

```bash

# First, generate ./lexicon.txt
python3 ./matcha/generate_lexicon.py

python3 ./matcha/onnx_pretrained.py \
--acoustic-model ./model-steps-4.onnx \
--vocoder ./hifigan_v2.onnx \
Expand Down

0 comments on commit 2c7ad4d

Please sign in to comment.