forked from platypush/platypush
s/partial_transcript/transcript/g
This commit is contained in:
parent
8378bee7c6
commit
8193c5702c
1 changed files with 4 additions and 4 deletions
|
@ -275,10 +275,10 @@ class Assistant:
|
||||||
partial_transcript, self._ctx.is_final = self.cheetah.process(frame)
|
partial_transcript, self._ctx.is_final = self.cheetah.process(frame)
|
||||||
|
|
||||||
if partial_transcript:
|
if partial_transcript:
|
||||||
self._ctx.partial_transcript += partial_transcript
|
self._ctx.transcript += partial_transcript
|
||||||
self.logger.info(
|
self.logger.info(
|
||||||
'Partial transcript: %s, is_final: %s',
|
'Partial transcript: %s, is_final: %s',
|
||||||
self._ctx.partial_transcript,
|
self._ctx.transcript,
|
||||||
self._ctx.is_final,
|
self._ctx.is_final,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -287,8 +287,8 @@ class Assistant:
|
||||||
if self.cheetah:
|
if self.cheetah:
|
||||||
phrase = self.cheetah.flush()
|
phrase = self.cheetah.flush()
|
||||||
|
|
||||||
self._ctx.partial_transcript += phrase
|
self._ctx.transcript += phrase
|
||||||
phrase = self._ctx.partial_transcript
|
phrase = self._ctx.transcript
|
||||||
phrase = phrase[:1].lower() + phrase[1:]
|
phrase = phrase[:1].lower() + phrase[1:]
|
||||||
|
|
||||||
if self._ctx.is_final or phrase:
|
if self._ctx.is_final or phrase:
|
||||||
|
|
Loading…
Reference in a new issue