Fix Go tests (#897)

This commit is contained in:
Fangjun Kuang
2024-05-21 11:50:13 +08:00
committed by GitHub
parent b012b78ceb
commit fdcae56a14
27 changed files with 161 additions and 175 deletions

View File

@@ -1,8 +1,15 @@
#!/usr/bin/env bash
# please refer to
# https://k2-fsa.github.io/sherpa/onnx/tts/pretrained_models/vits.html#vctk-english-multi-speaker-109-speakers
# to download the model before you run this script
set -ex
if [ ! -d vits-vctk ]; then
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-vctk.tar.bz2
tar xvf vits-vctk.tar.bz2
rm vits-vctk.tar.bz2
fi
go mod tidy
go build
for sid in 0 10 108; do
./non-streaming-tts \