Merge pull request #275 from sailordiary/patch-1

Fix timestamp prediction on empty ASR outputs
This commit is contained in:
Xian Shi 2023-03-21 17:49:49 +08:00 committed by GitHub
commit 04ffa362b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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