correct silences handling when language not auto
This commit is contained in:
parent
94c34efd90
commit
b22478c0b4
2 changed files with 1 additions and 1 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 2.2 MiB After Width: | Height: | Size: 5.8 MiB |
|
|
@ -111,7 +111,7 @@ class SimulStreamingOnlineProcessor:
|
|||
"""
|
||||
try:
|
||||
timestamped_words = self.model.infer(is_last=is_last)
|
||||
if timestamped_words and timestamped_words[0].detected_language == None:
|
||||
if self.model.cfg.language == "auto" and timestamped_words and timestamped_words[0].detected_language == None:
|
||||
self.buffer.extend(timestamped_words)
|
||||
return [], self.end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue