-
Notifications
You must be signed in to change notification settings - Fork 16
Examples for configuring hotwords #76
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
base: master
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,53 @@ | ||
| # OVOS Listener - WakeWords / HotWords | ||
| OVOS uses "wakewords" to activate the system. This is what "hey Google" or "Alexa" is on proprietary devices. By default, OVOS uses the WakeWord "hey Mycroft". | ||
| OVOS uses "wakewords" to activate the system. This is what "hey Google" or "Alexa" is on proprietary devices. By default, OVOS uses the WakeWord "hey Mycroft". | ||
|
|
||
| OVOS "hotwords" is the configuration section in `mycroft.conf` config to specify what the WakeWord do. Multiple "hotwords" can be used to do a variety of things from putting OVOS into active listening mode, a WakeWord like "hey Mycroft", to issuing a command such as "stop" or "wake up" | ||
|
|
||
| Each hotword can do one or more of the following (with example configs): | ||
| * trigger listening, also called a wake_word (default option) | ||
| * `“Listen” : “True”` | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't quite right. The quotes are the wrong Unicode characters and will cause the config file to fail to load. Also, you need a boolean value instead of a string. Finally, the key is case-sensitive.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oof, that wat very sloppy of me... I've rechecked all the unicode characters and boolean values. |
||
|
|
||
| * play a sound (only or with other action), you can set a specific sound per hotword. | ||
| * `"sound": "snd/start_listening.wav"` | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider mentioning that taking another action would require a plugin or skill to act on the bus message that is triggered by the WakeWord.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think leaving out the part about other actions (instead of only playing a sound) completely is maybe more clear, because the other lines that follow the "sound" config make that more clear (imho).
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @JarbasAl When I add the "utterance" config to the HotWord section AND "sound" to the hotword, the custom sound is not played. Is that a possible issue or by design? |
||
|
|
||
| * emit a utterance to open a skill directly (instead of listen), useful to open skills from others. | ||
| * `“utterance” : “What’s the time”` | ||
| * `“listen” : “false”` | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See previous note about quotes and booleans |
||
|
|
||
| This example will start the date & time skill with the given utterance and not listen for a command. | ||
|
|
||
| * emit a bus event directly to the messagebus, to for instance open a skill you developed yourself (instead of listen / utterance), emit a message directly (microphone mute/unmute" | ||
| * `“bus_event” : “custom message that you use in your own skill”` | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Incorrect quote characters. Also, consider |
||
|
|
||
| or | ||
|
|
||
| * `“bus_event” : “mycroft.mic.mute"` | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Quotes |
||
|
|
||
| * Use a hotkey; allows you to assign a keyboard shortcut (e.g., "ctrl+alt+h") for triggering the hotword manually. The ovos_ww_hotkeys module is required forusing a hotkey. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any time you mention a plugin,
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've checked the urls and typo. |
||
| * `“Hotkey”: “Control+shift+h”` | ||
|
|
||
| * assign a language for STT per wake word | ||
| * `Example?` | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should have an example but I'm not sure what this syntax would be. Maybe @JarbasAl can chime in?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added. |
||
|
|
||
| * be a wakeup word (out of sleep mode); take ovos-core out of sleep mode, also called a wakeup_word or standup_word | ||
| * Example: | ||
| ``` | ||
| "listener": { | ||
| // Default wake_word and stand_up_word will be automatically set to active | ||
| // unless explicitly disabled under "hotwords" section with "active": false. This is usually not | ||
| desired unless you are looking to completely disable wake word usage | ||
| "wake_word": "hey mycroft", | ||
| "stand_up_word": "wake up" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looking for @JarbasAl confirmation that this syntax works as a wake word
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree, Jarbas should review this one because of what it is.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. under the "listener" section you specify the default wake_word and stand_up_word these will be automatically set active: true (unless you override it in the individual config of each word) in single wake word mode you never set active flag in each definition, you only change this value. when using a backend for example this is the only thing that changes
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a part I don't understand tbh, the difference between wake(up?)word and stand_up word as a hotword config.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wake_word -> start listening, "hey mycroft"
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @JarbasAl So If I understand correctly: Hey Mycroft is standard wake word (configured in listener). But if I would like to have 'Hey Ziggy', as an extra wake word, that triggers a certain action, then I define 'Hey Ziggy' as a hotword and set it to active. I think a complete example config (of listener + hotword sections) with a standard WW and extra hotwords would help a lot! Then we can explain the config and what every hotword do... Like your snowboy/ "self destruct video", that was for me an eyeopener that this configs were possible at all! I know the video is old, but it would help 'simple' users as me a lot :) |
||
| } | ||
| ``` | ||
| See: [skill-ovos-naptime](https://github.com/OpenVoiceOS/skill-ovos-naptime) | ||
|
|
||
|
|
||
| * Take ovos-core out of recording mode, also called a `stop_word` | ||
| * A stop word is used when using a record skill like | ||
| [skill-audio-recordinge](https://github.com/NeonGeckoCom/skill-audio-recording) | ||
|
|
||
| OVOS "hotwords" is the configuration section to specify what the WakeWord do. Multiple "hotwords" can be used to do a variety of things from putting OVOS into active listening mode, a WakeWord like "hey Mycroft", to issuing a command such as "stop" or "wake up" | ||
|
|
||
| As with everything else, this too can be changed, and several plugins are available. Some work better than others. | ||
|
|
||
| ## List of OVOS WakeWord Plugins | ||
| | Plugin | Type | Description | | ||
|
|
@@ -58,4 +102,23 @@ If enabling a wakeword, be sure to also set `"listen": true`. | |
|
|
||
| Multiple hotwords can be configured at the same time, even the same word with different plugins. This allows for more accurate ones to be used before the less accurate, but only if the plugin is installed. | ||
|
|
||
|
|
||
| ### Example hotword config (keyboard wakeword) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be ## instead of ###, as this is not a sub-heading of "List of OVOS WakeWord Plugins" |
||
| In the following example an extra hotword is added, that uses the `ovos_ww_hotkeys` [wake word plugin](https://github.com/OpenVoiceOS/ovos-ww-plugin-hotkeys) to listen for keyboard press and start a skill based on an utterance (in this example to tell the time by just pressing space bar). | ||
| Install the `ovos_ww_hotkeys` plug-in and add the following to your `~/.config/mycroft/mycroft.conf` file | ||
|
|
||
| ``` | ||
| "hotwords": { | ||
| "hotkey": { | ||
| "module": "ovos_ww_hotkeys", | ||
| "listen": false, | ||
| "active": true, | ||
| "hotkey": "space", | ||
| "utterance": "what time is it?" | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
|
|
||
|
|
||
| [Advanced WakeWords/HotWords](https://openvoiceos.github.io/ovos-technical-manual/ww_plugins/) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grammar is not quite correct here, and in several other places.
I will refer @mikejgray to that though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion:
In OVOS, a WakeWord is configured in the
hotwordssection of the user'smycroft.confconfiguration (defaults to~/.config/mycroft/mycroft.conf). Multiple "hotwords" can be configured at one time. They can trigger a variety of tasks, ranging from putting OVOS into active listening mode (the default for "hey Mycroft") to issuing a command such as "stop" or "wake up."There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks both! I tried to stay close to the original text and only add some extra info. I've followed your suggestion @mikejgray.