From 9ce776edfaf579fc04b02445cafa33f0cbdd13b4 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 3 Jun 2024 15:22:43 +0200 Subject: [PATCH] Fixed code typo --- .../The-state-of-voice-assistant-integrations-in-2024.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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") ```