Files
sherpa-onnx/java-api-examples/run-non-streaming-decode-file-cohere-transcribe.sh
T

18 lines
652 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
source ./setup.sh
if [ ! -f ./sherpa-onnx-cohere-transcribe-14-lang-int8-2026-04-01/encoder.int8.onnx ]; then
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-cohere-transcribe-14-lang-int8-2026-04-01.tar.bz2
tar xvf sherpa-onnx-cohere-transcribe-14-lang-int8-2026-04-01.tar.bz2
rm sherpa-onnx-cohere-transcribe-14-lang-int8-2026-04-01.tar.bz2
ls -lh sherpa-onnx-cohere-transcribe-14-lang-int8-2026-04-01
fi
java \
-Dsherpa_onnx.native.path=$PWD/../build/lib \
-cp ../sherpa-onnx/java-api/target/sherpa-onnx-jvm-*.jar \
NonStreamingDecodeFileCohereTranscribe.java