

only print translated text not timestamps
@b97db4bc1be5508d62e3c4f478f4b5120f2d3b6e
--- whisper_online.py
+++ whisper_online.py
... | ... | @@ -534,9 +534,9 @@ |
534 | 534 |
o = self.transcript_buffer.flush() |
535 | 535 |
self.commited.extend(o) |
536 | 536 |
completed = self.to_flush(o) |
537 |
- logger.debug(f">>>>COMPLETE NOW: {completed}") |
|
537 |
+ logger.debug(f">>>>COMPLETE NOW: {completed[2]}") |
|
538 | 538 |
the_rest = self.to_flush(self.transcript_buffer.complete()) |
539 |
- logger.debug(f"INCOMPLETE: {the_rest}") |
|
539 |
+ logger.debug(f"INCOMPLETE: {the_rest[2]}") |
|
540 | 540 |
|
541 | 541 |
# there is a newly confirmed text |
542 | 542 |
|
... | ... | @@ -572,7 +572,7 @@ |
572 | 572 |
def chunk_completed_sentence(self): |
573 | 573 |
if self.commited == []: |
574 | 574 |
return |
575 |
- logger.debug(self.commited) |
|
575 |
+ logger.debug("COMPLETED SENTENCE: ", [s[2] for s in self.commited]) |
|
576 | 576 |
sents = self.words_to_sentences(self.commited) |
577 | 577 |
for s in sents: |
578 | 578 |
logger.debug(f"\t\tSENT: {s}") |
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?