Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions client/mic.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,9 @@ def passiveListen(self, PERSONA):
# check if PERSONA was said
transcribed = self.passive_stt_engine.transcribe(f)

if any(PERSONA in phrase for phrase in transcribed):
return (THRESHOLD, PERSONA)
for p in PERSONA:
if any(p in phrase for phrase in transcribed):
return (THRESHOLD, PERSONA)

return (False, transcribed)

Expand Down
2 changes: 1 addition & 1 deletion jasper.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def run(self):
salutation = "How can I be of service?"
self.mic.say(salutation)

conversation = Conversation("JASPER", self.mic, self.config)
conversation = Conversation(["JASPER"], self.mic, self.config)
conversation.handleForever()

if __name__ == "__main__":
Expand Down