diff --git a/markdown/The-state-of-voice-assistant-integrations-in-2024.md b/markdown/The-state-of-voice-assistant-integrations-in-2024.md index dc6b2da..d1a4c40 100644 --- a/markdown/The-state-of-voice-assistant-integrations-in-2024.md +++ b/markdown/The-state-of-voice-assistant-integrations-in-2024.md @@ -411,21 +411,21 @@ def pause_music_when_conversation_starts(): # Note: (limited) support for regular expressions on `phrase` # This hook will match any phrase containing either "turn on the lights" # or "turn off the lights" -@when(SpeechRecognizedEvent, phrase="turn on (the?) lights") +@when(SpeechRecognizedEvent, phrase="turn on (the)? lights") def lights_on_command(): run(f"{light_plugin}.on") # Or, with arguments: # run(f"{light_plugin}.on", groups=["Bedroom"]) -@when(SpeechRecognizedEvent, phrase="turn off (the?) lights") +@when(SpeechRecognizedEvent, phrase="turn off (the)? lights") def lights_off_command(): run(f"{light_plugin}.off") -@when(SpeechRecognizedEvent, phrase="play (the?) music") +@when(SpeechRecognizedEvent, phrase="play (the)? music") def play_music_command(): run(f"{music_plugin}.play") -@when(SpeechRecognizedEvent, phrase="stop (the?) music") +@when(SpeechRecognizedEvent, phrase="stop (the)? music") def stop_music_command(): run(f"{music_plugin}.stop") ```