Skip to content

Commit

Permalink
Use curl to replace wget for Windows. (#558)
Browse files Browse the repository at this point in the history
wget is not available on Windows in GitHub actions
  • Loading branch information
csukuangfj authored Jan 29, 2024
1 parent fa2af5d commit be84932
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dotnet-examples/offline-tts/run-aishell3.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env bash

if [ ! -f ./vits-zh-aishell3/vits-aishell3.onnx ]; then
wget -qq https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-zh-aishell3.tar.bz2
# wget -qq https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-zh-aishell3.tar.bz2
curl -OL https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-zh-aishell3.tar.bz2
tar xf vits-zh-aishell3.tar.bz2
rm vits-zh-aishell3.tar.bz2
fi
Expand Down
3 changes: 2 additions & 1 deletion dotnet-examples/offline-tts/run-piper.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env bash

if [ ! -f ./vits-piper-en_US-amy-low/en_US-amy-low.onnx ]; then
wget -qq https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-piper-en_US-amy-low.tar.bz2
# wget -qq https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-piper-en_US-amy-low.tar.bz2
curl -OL https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-piper-en_US-amy-low.tar.bz2
tar xf vits-piper-en_US-amy-low.tar.bz2
rm vits-piper-en_US-amy-low.tar.bz2
fi
Expand Down

0 comments on commit be84932

Please sign in to comment.