Add C# API for Kokoro TTS 1.0 (#1805)

This commit is contained in:
Fangjun Kuang
2025-02-07 15:39:03 +08:00
committed by GitHub
parent e1a88a799f
commit ae32dfaa56
4 changed files with 74 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -ex
if [ ! -f ./kokoro-multi-lang-v1_0/model.onnx ]; then
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/kokoro-multi-lang-v1_0.tar.bz2
tar xf kokoro-multi-lang-v1_0.tar.bz2
rm kokoro-multi-lang-v1_0.tar.bz2
fi
if [ ! -f ./kokoro-en-v0_19/model.onnx ]; then
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/kokoro-en-v0_19.tar.bz2
tar xf kokoro-en-v0_19.tar.bz2
rm kokoro-en-v0_19.tar.bz2
fi
dotnet run