Skip to content

Commit

Permalink
chore: update install script
Browse files Browse the repository at this point in the history
  • Loading branch information
aiwantaozi committed Nov 21, 2024
1 parent 2770b8d commit acbae57
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hack/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions hack/windows/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit acbae57

Please sign in to comment.