Skip to content

Commit

Permalink
further confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejgray committed Jun 6, 2024
1 parent 54bb642 commit 095637b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ def handle_classic_mycroft_intent(self, message):
"descriptor": "a deep retro male voice with a British accent"
})
if confirmation:
self.speak_dialog("confirm_change")
self._set_user_tts_settings("mycroft")
self._enable_wake_word("hey_mycroft", message)
self._disable_all_other_wake_words(message, "hey_mycroft")
Expand All @@ -279,6 +280,7 @@ def handle_become_neon(self, message):
"descriptor": "a professional female voice with an American accent"
})
if confirmation:
self.speak_dialog("confirm_change")
self._set_user_tts_settings("neon")
self._enable_wake_word("hey_neon", message)
self._disable_all_other_wake_words(message, "hey_neon")
Expand Down Expand Up @@ -308,6 +310,7 @@ def handle_ironman_intent(self, message):
"descriptor": "a deep male voice with a British accent, like a butler"
})
if confirmation:
self.speak_dialog("confirm_change")
self._set_user_tts_settings("jarvis")
self._enable_wake_word("hey_jarvis", message)
self._disable_all_other_wake_words(message, "hey_jarvis")
Expand Down
2 changes: 2 additions & 0 deletions locale/en-us/dialog/confirm_change.dialog
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Okay, I'll be back shortly.
I'll be right back, but a little different.
1 change: 1 addition & 0 deletions test/test_resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ dialog:
- neon_confirmation
- wakeword_failed_to_disable
- ask_enable
- confirm_change

# regex entities, not necessarily filenames
regex:
Expand Down

0 comments on commit 095637b

Please sign in to comment.