diff --git a/hack/install.sh b/hack/install.sh index 9ea7cd7..757e65d 100755 --- a/hack/install.sh +++ b/hack/install.sh @@ -12,6 +12,8 @@ ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)" source "${ROOT_DIR}/hack/lib/init.sh" function download_deps() { + git submodule update --init --recursive + rm -rf "${ROOT_DIR}/speech_box/third_party/CosyVoice/third_party/Matcha-TTS/data" pip install poetry==1.8.3 pre-commit==4.0.1 pip install pynini==2.1.5 WeTextProcessing==1.0.3 poetry install diff --git a/hack/windows/install.ps1 b/hack/windows/install.ps1 index 19fe57e..2a8260e 100644 --- a/hack/windows/install.ps1 +++ b/hack/windows/install.ps1 @@ -8,11 +8,19 @@ $ROOT_DIR = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent | Split- . "$ROOT_DIR/hack/lib/windows/init.ps1" function Install-Dependency { + git submodule update --init --recursive + Remove-Item -Recurse -Force "$ROOT_DIR/speech_box/third_party/CosyVoice/third_party/Matcha-TTS/data" + pip install poetry==1.8.3 pre-commit==4.0.1 if ($LASTEXITCODE -ne 0) { SpeechBox.Log.Fatal "failed to install poetry." } + pip install pynini==2.1.5 WeTextProcessing==1.0.3 + if ($LASTEXITCODE -ne 0) { + SpeechBox.Log.Fatal "failed to install pynini WeTextProcessing." + } + poetry install if ($LASTEXITCODE -ne 0) { SpeechBox.Log.Fatal "failed run poetry install."