Add Swift API for Kokoro TTS models (#1721)

This commit is contained in:
Fangjun Kuang
2025-01-16 16:47:37 +08:00
committed by GitHub
parent cc812e6237
commit ad61ad6ff5
8 changed files with 134 additions and 7 deletions

View File

@@ -21,7 +21,7 @@ if [ ! -f ./hifigan_v2.onnx ]; then
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/vocoder-models/hifigan_v2.onnx
fi
if [ ! -e ./tts ]; then
if [ ! -e ./tts-matcha-en ]; then
# Note: We use -lc++ to link against libc++ instead of libstdc++
swiftc \
-lc++ \