mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
Merge pull request #275 from sailordiary/patch-1
Fix timestamp prediction on empty ASR outputs
This commit is contained in:
commit
04ffa362b7
@ -17,7 +17,7 @@ def ts_prediction_lfr6_standard(us_alphas,
|
||||
sil_in_str=True
|
||||
):
|
||||
if not len(char_list):
|
||||
return []
|
||||
return "", []
|
||||
START_END_THRESHOLD = 5
|
||||
MAX_TOKEN_DURATION = 12
|
||||
TIME_RATE = 10.0 * 6 / 1000 / 3 # 3 times upsampled
|
||||
|
||||
Loading…
Reference in New Issue
Block a user