From 565ff18acf4ad1fdee49472a2930e839a28fba1f Mon Sep 17 00:00:00 2001 From: Shiven Mian Date: Sun, 11 Feb 2024 23:29:53 -0800 Subject: [PATCH] fix: download piper voice for non-macos OSes --- OS/01/start.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/OS/01/start.sh b/OS/01/start.sh index 945ea25..17ad332 100755 --- a/OS/01/start.sh +++ b/OS/01/start.sh @@ -33,17 +33,16 @@ if [[ "$ALL_LOCAL" == "True" ]]; then curl -OL "${PIPER_URL}${PIPER_ASSETNAME}" tar -xvzf $PIPER_ASSETNAME cd piper + curl -OL "${PIPER_VOICE_URL}${PIPER_VOICE_NAME}" + curl -OL "${PIPER_VOICE_URL}${PIPER_VOICE_NAME}.json" if [ "$OS" = "macos" ]; then if [ "$ARCH" = "x64" ]; then softwareupdate --install-rosetta --agree-to-license fi PIPER_PHONEMIZE_ASSETNAME="piper-phonemize_${OS}_${ARCH}.tar.gz" PIPER_PHONEMIZE_URL="https://github.com/rhasspy/piper-phonemize/releases/latest/download/" - curl -OL "${PIPER_PHONEMIZE_URL}${PIPER_PHONEMIZE_ASSETNAME}" tar -xvzf $PIPER_PHONEMIZE_ASSETNAME - curl -OL "${PIPER_VOICE_URL}${PIPER_VOICE_NAME}" - curl -OL "${PIPER_VOICE_URL}${PIPER_VOICE_NAME}.json" PIPER_DIR=`pwd` install_name_tool -change @rpath/libespeak-ng.1.dylib "${PIPER_DIR}/piper-phonemize/lib/libespeak-ng.1.dylib" "${PIPER_DIR}/piper" install_name_tool -change @rpath/libonnxruntime.1.14.1.dylib "${PIPER_DIR}/piper-phonemize/lib/libonnxruntime.1.14.1.dylib" "${PIPER_DIR}/piper"