Skip to content

Commit 5ddb727

Browse files
committed
insert, rest endpoint, comparmentid from env, repeated queries, ai/eye/etc trigger for commands
1 parent 60ebf62 commit 5ddb727

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python-realtimespeech-selectai/src/RealtimeSpeechSelectAI.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ def on_result(self, result):
9494
print(f"Received final results: {transcription}")
9595
print(f"Current cummulative result: {cummulativeResult}")
9696
if cummulativeResult.lower().startswith("select ai"):
97+
cummulativeResult = cummulativeResult[len("select ai"):].strip()
9798
isSelect = True
98-
elif cummulativeResult.lower().startswith("Select the eye"):
99+
elif cummulativeResult.lower().startswith("select the eye"):
100+
cummulativeResult = cummulativeResult[len("select the eye"):].strip()
99101
isSelect = True
100102
else:
101103
cummulativeResult = ""

0 commit comments

Comments
 (0)