I’m trying to initialize Sherpa NCNN’s OfflineRecognizer on Android using OfflineRecognizer.newFromAsset, but I encounter the following error at runtime:
No implementation found for long com.k2fsa.sherpa.ncnn.OfflineRecognizer.newFromAsset(
android.content.res.AssetManager,
com.k2fsa.sherpa.ncnn.OfflineRecognizerConfig
)
(tried Java_com_k2fsa_sherpa_ncnn_OfflineRecognizer_newFromAsset and
Java_com_k2fsa_sherpa_ncnn_OfflineRecognizer_newFromAsset__Landroid_content_res_AssetManager_2Lcom_k2fsa_sherpa_ncnn_OfflineRecognizerConfig_2)
Steps to Reproduce:
Added lib/*.so files from Sherpa NCNN to jniLibs folder.
Added models to assets folder.
Called the following code in Kotlin/Java: