Skip to content

Support running sherpa-onnx with RK NPU on Android #2124

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

Merged
merged 2 commits into from
Apr 15, 2025

Conversation

csukuangfj
Copy link
Collaborator

Usage

  1. Build sherpa-onnx for RKNN Android
export SHERPA_ONNX_ENABLE_RKNN=ON
./build-android-arm64-v8a.sh
  1. Copy the generated libs to your jniLibs/arm64-v8a in your Android studio project
  2. Select an ASR model. We have listed two models with type 1000 and 1001 for rk3588. You can download more from
    https://github.com/k2-fsa/sherpa-onnx/releases/tag/asr-models

The remaining steps are the same for running sherpa-onnx on Android CPU.

Screenshots of running sherpa-onnx with RK RNPU on RK3588 Android (Orangepi 5 max)

logcat npu usage
Screenshot 2025-04-15 at 16 31 55 Screenshot 2025-04-15 at 16 31 23

Fixes #2025
CC @onCreate2018 @dlisagod

@csukuangfj csukuangfj merged commit e3bce84 into k2-fsa:master Apr 15, 2025
24 of 216 checks passed
@csukuangfj csukuangfj deleted the rknn-android branch April 15, 2025 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

是否有计划适配rknn-android呢
1 participant