mirror of
https://github.com/QuentinFuxa/WhisperLiveKit.git
synced 2026-03-07 22:33:36 +00:00
Fix: Omitting the last chunk problem in comp_unaware mode
This commit is contained in:
@@ -573,10 +573,15 @@ if __name__ == "__main__":
|
||||
|
||||
print(f"## last processed {end:.2f}s",file=logfile,flush=True)
|
||||
|
||||
beg = end
|
||||
end += min_chunk
|
||||
if end >= duration:
|
||||
break
|
||||
|
||||
beg = end
|
||||
|
||||
if end + min_chunk > duration:
|
||||
end = duration
|
||||
else:
|
||||
end += min_chunk
|
||||
now = duration
|
||||
|
||||
else: # online = simultaneous mode
|
||||
|
||||
Reference in New Issue
Block a user