diff --git a/python-api-examples/speech-recognition-from-microphone-with-endpoint-detection.py b/python-api-examples/speech-recognition-from-microphone-with-endpoint-detection.py index 10ca8cdc78..2ef0aee7f6 100755 --- a/python-api-examples/speech-recognition-from-microphone-with-endpoint-detection.py +++ b/python-api-examples/speech-recognition-from-microphone-with-endpoint-detection.py @@ -128,7 +128,7 @@ def create_recognizer(args): rule3_min_utterance_length=300, # it essentially disables this rule decoding_method=args.decoding_method, provider=args.provider, - hotwords_file=agrs.hotwords_file, + hotwords_file=args.hotwords_file, hotwords_score=args.hotwords_score, ) return recognizer diff --git a/sherpa-onnx/csrc/online-recognizer.h b/sherpa-onnx/csrc/online-recognizer.h index 3be7a0466a..a8b173851d 100644 --- a/sherpa-onnx/csrc/online-recognizer.h +++ b/sherpa-onnx/csrc/online-recognizer.h @@ -95,6 +95,7 @@ struct OnlineRecognizerConfig { const std::string &hotwords_file, float hotwords_score) : feat_config(feat_config), model_config(model_config), + lm_config(lm_config), endpoint_config(endpoint_config), enable_endpoint(enable_endpoint), decoding_method(decoding_method),