Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .github/workflows/sherpaonnx-live.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ jobs:
uses: actions/cache@v4
with:
path: |
~/.rust-tts-wrapper/sherpaonnx/piper-nl-rdh-low
~/.rust-tts-wrapper/sherpaonnx/icefall-fs-ljspeech
~/.rust-tts-wrapper/sherpaonnx/piper-nl_BE-rdh-low
~/.rust-tts-wrapper/sherpaonnx/icefall-en-ljspeech
~/.rust-tts-wrapper/sherpaonnx/kokoro-zh_en-int8
~/.rust-tts-wrapper/sherpaonnx/supertonic-3-multilingual
~/.rust-tts-wrapper/sherpaonnx/hifigan_v2.onnx
Expand All @@ -65,38 +65,38 @@ jobs:
echo "MODEL_DIR=$HOME/.rust-tts-wrapper/sherpaonnx" >> $GITHUB_ENV
echo "$GITHUB_WORKSPACE/scripts" >> $GITHUB_PATH

- name: Download VITS test model (piper-nl-rdh-low)
- name: Download VITS test model (piper-nl_BE-rdh-low)
shell: bash
run: |
set -e
mkdir -p "$MODEL_DIR"
cd "$MODEL_DIR"
if [ -d "piper-nl-rdh-low" ] && [ -n "$(ls -A piper-nl-rdh-low 2>/dev/null)" ]; then
echo "piper-nl-rdh-low already present, skipping download"
if [ -d "piper-nl_BE-rdh-low" ] && [ -n "$(ls -A piper-nl_BE-rdh-low 2>/dev/null)" ]; then
echo "piper-nl_BE-rdh-low already present, skipping download"
exit 0
fi
URL=$(get-model-url.py piper-nl-rdh-low)
URL=$(get-model-url.py piper-nl_BE-rdh-low)
echo "Downloading $URL"
curl -fsSL -o piper.tar.bz2 "$URL"
mkdir -p piper-nl-rdh-low
tar -xjf piper.tar.bz2 -C piper-nl-rdh-low --strip-components=1
mkdir -p piper-nl_BE-rdh-low
tar -xjf piper.tar.bz2 -C piper-nl_BE-rdh-low --strip-components=1
rm piper.tar.bz2
ls -la piper-nl-rdh-low/
ls -la piper-nl_BE-rdh-low/

- name: Download Matcha test model (icefall-fs-ljspeech)
- name: Download Matcha test model (icefall-en-ljspeech)
shell: bash
run: |
set -e
cd "$MODEL_DIR"
if [ -d "icefall-fs-ljspeech" ] && [ -n "$(ls -A icefall-fs-ljspeech 2>/dev/null)" ]; then
echo "icefall-fs-ljspeech already present"
if [ -d "icefall-en-ljspeech" ] && [ -n "$(ls -A icefall-en-ljspeech 2>/dev/null)" ]; then
echo "icefall-en-ljspeech already present"
exit 0
fi
URL=$(get-model-url.py icefall-fs-ljspeech)
URL=$(get-model-url.py icefall-en-ljspeech)
echo "Downloading $URL"
curl -fsSL -o matcha.tar.bz2 "$URL"
mkdir -p icefall-fs-ljspeech
tar -xjf matcha.tar.bz2 -C icefall-fs-ljspeech --strip-components=1
mkdir -p icefall-en-ljspeech
tar -xjf matcha.tar.bz2 -C icefall-en-ljspeech --strip-components=1
rm matcha.tar.bz2

- name: Download shared Matcha vocoder (hifigan_v2.onnx)
Expand Down
Loading
Loading