From fe69b57a3df7db708ff350defeeacd98b83ca3ed Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Thu, 16 May 2024 14:21:36 +0800 Subject: [PATCH] Fix a typo in jni --- sherpa-onnx/jni/offline-recognizer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sherpa-onnx/jni/offline-recognizer.cc b/sherpa-onnx/jni/offline-recognizer.cc index 0bbcefd49..16ab51670 100644 --- a/sherpa-onnx/jni/offline-recognizer.cc +++ b/sherpa-onnx/jni/offline-recognizer.cc @@ -153,7 +153,7 @@ static OfflineRecognizerConfig GetOfflineConfig(JNIEnv *env, jobject config) { jobject nemo_config = env->GetObjectField(model_config, fid); jclass nemo_config_cls = env->GetObjectClass(nemo_config); - fid = env->GetFieldID(paraformer_config_cls, "model", "Ljava/lang/String;"); + fid = env->GetFieldID(nemo_config_cls, "model", "Ljava/lang/String;"); s = (jstring)env->GetObjectField(nemo_config, fid); p = env->GetStringUTFChars(s, nullptr);