From 988e2b6736e6d4d779ac1f637fb294bacec167f3 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Sun, 8 Oct 2023 11:35:43 +0800 Subject: [PATCH] Fix typos/bugs --- ...peech-recognition-from-microphone-with-endpoint-detection.py | 2 +- sherpa-onnx/csrc/online-recognizer.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 10ca8cdc7..2ef0aee7f 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 3be7a0466..a8b173851 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),