Skip to content

Commit

Permalink
download vocoder
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Jan 5, 2025
1 parent 5c892ed commit b5758d7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/apk-tts-engine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
# total: ["40"]
# index: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39"]
total: ["1"]
index: ["0"]
total: ["40"]
index: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39"]


steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/apk-tts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
# total: ["40"]
# index: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39"]
total: ["1"]
index: ["0"]
total: ["40"]
index: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39"]

steps:
- uses: actions/checkout@v4
Expand Down
5 changes: 5 additions & 0 deletions scripts/apk/build-apk-tts-engine.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ wget -qq https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/$mod
tar xf $model_dir.tar.bz2
rm $model_dir.tar.bz2

{% if tts_model.vocoder %}
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/vocoder-models/$vocoder
{% endif %}

popd
# Now we are at the project root directory

Expand Down Expand Up @@ -122,6 +126,7 @@ for arch in arm64-v8a armeabi-v7a x86_64 x86; do
done

rm -rf ./android/SherpaOnnxTtsEngine/app/src/main/assets/$model_dir
rm -fv ./android/SherpaOnnxTtsEngine/app/src/main/assets/*.onnx
{% endfor %}

git checkout .
Expand Down
6 changes: 6 additions & 0 deletions scripts/apk/build-apk-tts.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ wget -qq https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/$mod
tar xf $model_dir.tar.bz2
rm $model_dir.tar.bz2

{% if tts_model.vocoder %}
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/vocoder-models/$vocoder
{% endif %}

popd
# Now we are at the project root directory

Expand Down Expand Up @@ -122,6 +126,8 @@ for arch in arm64-v8a armeabi-v7a x86_64 x86; do
done

rm -rf ./android/SherpaOnnxTts/app/src/main/assets/$model_dir
rm -fv ./android/SherpaOnnxTts/app/src/main/assets/*.onnx

{% endfor %}

git checkout .
Expand Down
3 changes: 1 addition & 2 deletions scripts/apk/generate-tts-apk-script.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,7 @@ def main():
all_model_list += get_piper_models()
all_model_list += get_mimic3_models()
all_model_list += get_coqui_models()

all_model_list = get_matcha_models()
all_model_list += get_matcha_models()

convert_lang_to_iso_639_3(all_model_list)
print(all_model_list)
Expand Down

0 comments on commit b5758d7

Please sign in to comment.