Committed by
GitHub
Modify the rule attribute data type of OnlineRecognizer (#113)
正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -34,9 +34,9 @@ class OnlineRecognizer(object): | @@ -34,9 +34,9 @@ class OnlineRecognizer(object): | ||
| 34 | sample_rate: float = 16000, | 34 | sample_rate: float = 16000, |
| 35 | feature_dim: int = 80, | 35 | feature_dim: int = 80, |
| 36 | enable_endpoint_detection: bool = False, | 36 | enable_endpoint_detection: bool = False, |
| 37 | - rule1_min_trailing_silence: int = 2.4, | ||
| 38 | - rule2_min_trailing_silence: int = 1.2, | ||
| 39 | - rule3_min_utterance_length: int = 20, | 37 | + rule1_min_trailing_silence: float = 2.4, |
| 38 | + rule2_min_trailing_silence: float = 1.2, | ||
| 39 | + rule3_min_utterance_length: float = 20.0, | ||
| 40 | decoding_method: str = "greedy_search", | 40 | decoding_method: str = "greedy_search", |
| 41 | max_active_paths: int = 4, | 41 | max_active_paths: int = 4, |
| 42 | ): | 42 | ): |
-
请 注册 或 登录 后发表评论