asr-models-qnn-binary
Context binary files in this page are generated using qnn sdk 2.40.0.251030
You can download the requires .so lib files from qnn sdk 2.40.0.251030 from
https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models-qnn/qnn-libs-2.40.0.251030.tar.bz2
Please refer to
- https://k2-fsa.github.io/sherpa/onnx/qnn/run-executables-on-your-phone-binary.html
- https://k2-fsa.github.io/sherpa/onnx/qnn/models.html for usages.
See https://github.com/k2-fsa/sherpa-onnx/blob/master/sherpa-onnx/kotlin-api/OfflineRecognizer.kt#L1119 for how to use within Android.
9022 -> {
// for my Xiaomi 17 Pro
val modelDir = "sherpa-onnx-qnn-SM8850-binary-10-seconds-sense-voice-zh-en-ja-ko-yue-2024-07-17-int8"
return OfflineModelConfig(
provider = "qnn",
senseVoice = OfflineSenseVoiceModelConfig(
qnnConfig = QnnConfig(
// Please copy libQnnHtp.so and libQnnSystem.so to jniLibs/arm64-v8a by yourself
backendLib = "libQnnHtp.so",
systemLib = "libQnnSystem.so",
contextBinary = "$modelDir/model.bin",
),
),
tokens = "$modelDir/tokens.txt",
debug = true,
)
}