Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix jni test #382

Merged
merged 3 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pkg-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ concurrency:
cancel-in-progress: true

jobs:
linux:
pkg_config:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} ${{ matrix.build_type }} ${{ matrix.lib_type }}
strategy:
Expand Down
7 changes: 6 additions & 1 deletion kotlin-api-examples/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cd ..
mkdir -p build
cd build

if [ ! -f ../build/lib/libsherpa-onnx-jni.dylib ]; then
if [[ ! -f ../build/lib/libsherpa-onnx-jni.dylib && ! -f ../build/lib/libsherpa-onnx-jni.so ]]; then
cmake \
-DSHERPA_ONNX_ENABLE_PYTHON=OFF \
-DSHERPA_ONNX_ENABLE_TESTS=OFF \
Expand All @@ -34,6 +34,11 @@ if [ ! -f ./sherpa-onnx-streaming-zipformer-en-2023-02-21/tokens.txt ]; then
git clone https://huggingface.co/csukuangfj/sherpa-onnx-streaming-zipformer-en-2023-02-21
fi

if [ ! -f ./vits-zh-aishell3/tokens.txt ]; then
git lfs install
git clone https://huggingface.co/csukuangfj/vits-zh-aishell3
fi

kotlinc-jvm -include-runtime -d main.jar Main.kt WaveReader.kt SherpaOnnx.kt faked-asset-manager.kt Tts.kt

ls -lh main.jar
Expand Down
Loading