From be84932f8627906ba24d74d3cc5cb94ad734a852 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Mon, 29 Jan 2024 10:46:34 +0800 Subject: [PATCH] Use curl to replace wget for Windows. (#558) wget is not available on Windows in GitHub actions --- dotnet-examples/offline-tts/run-aishell3.sh | 3 ++- dotnet-examples/offline-tts/run-piper.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dotnet-examples/offline-tts/run-aishell3.sh b/dotnet-examples/offline-tts/run-aishell3.sh index 2c3429ca1..7e5cc6397 100755 --- a/dotnet-examples/offline-tts/run-aishell3.sh +++ b/dotnet-examples/offline-tts/run-aishell3.sh @@ -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 diff --git a/dotnet-examples/offline-tts/run-piper.sh b/dotnet-examples/offline-tts/run-piper.sh index c9979beb2..a26740913 100755 --- a/dotnet-examples/offline-tts/run-piper.sh +++ b/dotnet-examples/offline-tts/run-piper.sh @@ -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