

Merge remote-tracking branch 'upstream/main'
@657464576bd51b6fc6bdb73667bd6592ed86288a
--- whisper_online.py
+++ whisper_online.py
... | ... | @@ -580,10 +580,15 @@ |
580 | 580 |
|
581 | 581 |
print(f"## last processed {end:.2f}s",file=logfile,flush=True) |
582 | 582 |
|
583 |
- beg = end |
|
584 |
- end += min_chunk |
|
585 | 583 |
if end >= duration: |
586 | 584 |
break |
585 |
+ |
|
586 |
+ beg = end |
|
587 |
+ |
|
588 |
+ if end + min_chunk > duration: |
|
589 |
+ end = duration |
|
590 |
+ else: |
|
591 |
+ end += min_chunk |
|
587 | 592 |
now = duration |
588 | 593 |
|
589 | 594 |
else: # online = simultaneous mode |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?