s/partial_transcript/transcript/g

This commit is contained in:
Fabio Manganiello 2024-04-09 00:19:51 +02:00
parent 8378bee7c6
commit 8193c5702c

View file

@ -275,10 +275,10 @@ class Assistant:
partial_transcript, self._ctx.is_final = self.cheetah.process(frame)
if partial_transcript:
self._ctx.partial_transcript += partial_transcript
self._ctx.transcript += partial_transcript
self.logger.info(
'Partial transcript: %s, is_final: %s',
self._ctx.partial_transcript,
self._ctx.transcript,
self._ctx.is_final,
)
@ -287,8 +287,8 @@ class Assistant:
if self.cheetah:
phrase = self.cheetah.flush()
self._ctx.partial_transcript += phrase
phrase = self._ctx.partial_transcript
self._ctx.transcript += phrase
phrase = self._ctx.transcript
phrase = phrase[:1].lower() + phrase[1:]
if self._ctx.is_final or phrase: