Add Go API for TTS (#377)

This commit is contained in:
Fangjun Kuang
2023-10-20 15:57:52 +08:00
committed by GitHub
parent 3ba9a4932f
commit a69d0a950e
23 changed files with 400 additions and 108 deletions

View File

@@ -60,6 +60,42 @@ jobs:
go mod tidy
go build
- name: Test non-streaming TTS (macOS)
shell: bash
run: |
mkdir tts-waves
cd scripts/go/_internal/non-streaming-tts/
ls -lh
go mod tidy
cat go.mod
go build
ls -lh
git lfs install
echo "Test vits-ljs"
git clone https://huggingface.co/csukuangfj/vits-ljs
./run-vits-ljs.sh
rm -rf vits-ljs
echo "Test vits-vctk"
git clone https://huggingface.co/csukuangfj/vits-vctk
./run-vits-vctk.sh
rm -rf vits-vctk
echo "Test vits-zh-aishell3"
git clone https://huggingface.co/csukuangfj/vits-zh-aishell3
./run-vits-zh-aishell3.sh
rm -rf vits-zh-aishell3
cp *.wav ../../../../tts-waves/
- uses: actions/upload-artifact@v3
with:
name: tts-waves
path: tts-waves
- name: Test non-streaming decoding files (macOS)
shell: bash
run: |