mirror of
https://github.com/k2-fsa/sherpa-onnx.git
synced 2026-11-10 21:11:03 +08:00
21 lines
645 B
Bash
Executable File
21 lines
645 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
source ./setup.sh
|
|
|
|
# please visit
|
|
# https://github.com/k2-fsa/sherpa-onnx/releases/tag/tts-models
|
|
# to download more models
|
|
|
|
if [ ! -f ./sherpa-onnx-supertonic-3-tts-int8-2026-05-11/duration_predictor.int8.onnx ]; then
|
|
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/sherpa-onnx-supertonic-3-tts-int8-2026-05-11.tar.bz2
|
|
tar xvf sherpa-onnx-supertonic-3-tts-int8-2026-05-11.tar.bz2
|
|
rm sherpa-onnx-supertonic-3-tts-int8-2026-05-11.tar.bz2
|
|
fi
|
|
|
|
java \
|
|
-Dsherpa_onnx.native.path=$PWD/../build/lib \
|
|
-cp ../sherpa-onnx/java-api/target/sherpa-onnx-jvm-*.jar \
|
|
SupertonicTts.java
|