csukuangfj
commited on
Commit
·
2940873
1
Parent(s):
a702d26
use 20s padding for whisper
Browse files
model.py
CHANGED
@@ -90,6 +90,7 @@ def _get_whisper_model(repo_id: str) -> sherpa_onnx.OfflineRecognizer:
|
|
90 |
decoder=decoder,
|
91 |
tokens=tokens,
|
92 |
num_threads=2,
|
|
|
93 |
)
|
94 |
|
95 |
return recognizer
|
|
|
90 |
decoder=decoder,
|
91 |
tokens=tokens,
|
92 |
num_threads=2,
|
93 |
+
tail_paddings=2000,
|
94 |
)
|
95 |
|
96 |
return recognizer
|