From 7f7e3680c3f3ea50f1781cfc07071f0e76d3c2e2 Mon Sep 17 00:00:00 2001 From: KajiMaCN <827272056@qq.com> Date: Tue, 4 Apr 2023 15:42:56 +0800 Subject: [PATCH] Modify the rule attribute data type of OnlineRecognizer (#113) --- sherpa-onnx/python/sherpa_onnx/online_recognizer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sherpa-onnx/python/sherpa_onnx/online_recognizer.py b/sherpa-onnx/python/sherpa_onnx/online_recognizer.py index bf8ca089..9ea09633 100644 --- a/sherpa-onnx/python/sherpa_onnx/online_recognizer.py +++ b/sherpa-onnx/python/sherpa_onnx/online_recognizer.py @@ -34,9 +34,9 @@ class OnlineRecognizer(object): sample_rate: float = 16000, feature_dim: int = 80, enable_endpoint_detection: bool = False, - rule1_min_trailing_silence: int = 2.4, - rule2_min_trailing_silence: int = 1.2, - rule3_min_utterance_length: int = 20, + rule1_min_trailing_silence: float = 2.4, + rule2_min_trailing_silence: float = 1.2, + rule3_min_utterance_length: float = 20.0, decoding_method: str = "greedy_search", max_active_paths: int = 4, ):