[#304] Rewrite Picovoice integrations #385

Merged
blacklight merged 36 commits from 304-new-picovoice-integration into master 2024-05-02 02:50:51 +02:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit 8702eaa25b - Show all commits

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: