Skip to content
Snippets Groups Projects
Commit 72405f9d authored by Timo Birr's avatar Timo Birr :rage:
Browse files

Fixed interpunctuation error in stop listener

parent 7dfe6a66
No related branches found
No related tags found
No related merge requests found
Pipeline #21572 failed
......@@ -81,8 +81,9 @@ class MemoryStopListener:
for snapshot in snapshots_dict.values():
data = SpeechToText.from_aron_ice(snapshot.instances[0].data)
text = data.text.lower().replace("!"," ").replace("?"," ").replace("."," ")
for command in self.STOP_COMMANDS:
if data.text.lower() == command or command in data.text.lower().split(" "):
if text == command or command in text.split(" "):
self.say_stop()
self.send_stop()
break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment