Skip to content

Commit

Permalink
Fix a typo in jni
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed May 16, 2024
1 parent a421f8c commit fe69b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sherpa-onnx/jni/offline-recognizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fe69b57

Please sign in to comment.