From 8193c5702cc245806014d137133210258d10b84e Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 9 Apr 2024 00:19:51 +0200 Subject: [PATCH] s/partial_transcript/transcript/g --- platypush/plugins/assistant/picovoice/_assistant.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platypush/plugins/assistant/picovoice/_assistant.py b/platypush/plugins/assistant/picovoice/_assistant.py index 25142f336..761fe981a 100644 --- a/platypush/plugins/assistant/picovoice/_assistant.py +++ b/platypush/plugins/assistant/picovoice/_assistant.py @@ -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: