Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix mycroft's name #14

Merged
merged 1 commit into from
Jan 7, 2024
Merged

fix mycroft's name #14

merged 1 commit into from
Jan 7, 2024

Conversation

JarbasAl
Copy link
Member

@JarbasAl JarbasAl commented Jan 7, 2024

dont say "I am hey mycroft" , remove the "hey"

dont say "I am hey mycroft" , remove the "hey"
@JarbasAl JarbasAl added the bug Something isn't working label Jan 7, 2024
@JarbasAl JarbasAl requested a review from mikejgray January 7, 2024 18:12
@@ -36,7 +36,7 @@ def handle_who_made_you_intent(self, message):
def handle_who_are_you_intent(self, message):
name = self.config_core.get("listener", {}).get("wake_word",
"mycroft")
name = name.lower().replace("_", "").replace("-", "").replace("hey ", "")
name = name.lower().replace("_", " ").replace("-", " ").replace("hey ", "")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also lstrip and rstrip at the end? Don't think TTS cares though

Copy link

@mikejgray mikejgray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get this out into a helper function and unit test it with common wakeword names?

@JarbasAl JarbasAl merged commit ac09557 into dev Jan 7, 2024
6 of 11 checks passed
@JarbasAl JarbasAl deleted the fix-mycroft's-name branch January 7, 2024 19:02
@JarbasAl JarbasAl mentioned this pull request Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants