mirror of
https://github.com/QuentinFuxa/WhisperLiveKit.git
synced 2026-04-28 17:40:00 +00:00
only print translated text not timestamps
This commit is contained in:
@@ -534,9 +534,9 @@ class OnlineASRProcessor:
|
|||||||
o = self.transcript_buffer.flush()
|
o = self.transcript_buffer.flush()
|
||||||
self.commited.extend(o)
|
self.commited.extend(o)
|
||||||
completed = self.to_flush(o)
|
completed = self.to_flush(o)
|
||||||
logger.debug(f">>>>COMPLETE NOW: {completed}")
|
logger.debug(f">>>>COMPLETE NOW: {completed[2]}")
|
||||||
the_rest = self.to_flush(self.transcript_buffer.complete())
|
the_rest = self.to_flush(self.transcript_buffer.complete())
|
||||||
logger.debug(f"INCOMPLETE: {the_rest}")
|
logger.debug(f"INCOMPLETE: {the_rest[2]}")
|
||||||
|
|
||||||
# there is a newly confirmed text
|
# there is a newly confirmed text
|
||||||
|
|
||||||
@@ -572,7 +572,7 @@ class OnlineASRProcessor:
|
|||||||
def chunk_completed_sentence(self):
|
def chunk_completed_sentence(self):
|
||||||
if self.commited == []:
|
if self.commited == []:
|
||||||
return
|
return
|
||||||
logger.debug(self.commited)
|
logger.debug("COMPLETED SENTENCE: ", [s[2] for s in self.commited])
|
||||||
sents = self.words_to_sentences(self.commited)
|
sents = self.words_to_sentences(self.commited)
|
||||||
for s in sents:
|
for s in sents:
|
||||||
logger.debug(f"\t\tSENT: {s}")
|
logger.debug(f"\t\tSENT: {s}")
|
||||||
|
|||||||
Reference in New Issue
Block a user