Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

multiple hotwords #1233

Closed
wants to merge 2 commits into from
Closed

multiple hotwords #1233

wants to merge 2 commits into from

Conversation

JarbasAI
Copy link
Contributor

remake of #997

Listening for common words could be useful

proposal:

  • add any number of hot words to config
  • hot word can be any engine (snowboy/pocketsphinx/precise)
  • hot word can trigger listening or not
  • hot word can play a sound or not
  • hot word can be treated as full utterance or not

@JarbasAI JarbasAI mentioned this pull request Nov 16, 2017
@penrods penrods added the CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) label Nov 17, 2017
@JarbasAI
Copy link
Contributor Author

not sure why this is failing, will investigate

should i make save wake words also save hot words? make a separate config for this? should these also be uploaded for precise? this can come in other PR, or i can make the changes

@pep8speaks
Copy link

pep8speaks commented Dec 12, 2017

Hello @JarbasAI! Thanks for updating the PR.

Comment last updated on October 03, 2018 at 13:12 Hours UTC

@renekliment
Copy link

Hey. Is there any progress on this? I would love for this to get merged. Thank you.

@methomas98
Copy link

Are there any updates on this? I was hoping to use multiple wake words

@JarbasAl
Copy link
Contributor

i will rebase this PR later, right now you can use multiple_wake words with Voice Satellite. It is basically a standalone version of the listener

@JarbasAI JarbasAI closed this Sep 11, 2020
@JarbasAl JarbasAl deleted the multiple_hotwords branch November 9, 2020 16:30
JarbasAl added a commit to OpenVoiceOS/ovos-core that referenced this pull request Oct 28, 2021
Multiple hotwords! Yes, its MycroftAI#1233 again for the 9087th time

hotwords can do any of the following:
- play a sound
- start listening
- trigger "wake up"
- emit a bus event
- emit an utterance
- select a STT lang

sample config
```json
  "hotwords": {
    "hey_mycroft": {
        "module": "ovos-precise-lite",
        "model": "/home/user/precise_stuff/training/hey_mycroft.tflite",
        "listen": true,
        "sound": "snd/start_listening.wav"
        },
    "wake up": {
        "module": "pocketsphinx",
        "phonemes": "W EY K . AH P",
        "threshold": 1e-20,
        "lang": "en-us",
        "wakeup": true
        },
     "thank you": {
        "module": "pocketsphinx",
        "phonemes": "TH AE NG K . Y UW",
        "threshold": 0.1,
        "event": "mycroft.stop",
        "utterance": "thank you",
        "lang": "en-us"
    }
  },
```
JarbasAl added a commit to OpenVoiceOS/ovos-core that referenced this pull request Oct 28, 2021
Multiple hotwords! Yes, its MycroftAI#1233 again for the 9087th time

hotwords can do any of the following:
- play a sound
- start listening
- trigger "wake up"
- emit a bus event
- emit an utterance
- select a STT lang

sample config
```json
  "hotwords": {
    "hey_mycroft": {
        "module": "ovos-precise-lite",
        "model": "/home/user/precise_stuff/training/hey_mycroft.tflite",
        "listen": true,
        "sound": "snd/start_listening.wav"
        },
    "wake up": {
        "module": "pocketsphinx",
        "phonemes": "W EY K . AH P",
        "threshold": 1e-20,
        "lang": "en-us",
        "wakeup": true
        },
     "thank you": {
        "module": "pocketsphinx",
        "phonemes": "TH AE NG K . Y UW",
        "threshold": 0.1,
        "event": "mycroft.stop",
        "utterance": "thank you",
        "lang": "en-us"
    }
  },
```
JarbasAl added a commit to OpenVoiceOS/ovos-core that referenced this pull request Nov 1, 2021
Multiple hotwords! Yes, its MycroftAI#1233 again for the 9087th time

hotwords can do any of the following:
- play a sound
    - fix/support multiple audio extensions instead of .wav only
- start listening
- trigger "wake up"
- emit a bus event
- emit an utterance
- select a STT lang

sample config
```json
  "hotwords": {
    "hey_mycroft": {
        "module": "ovos-precise-lite",
        "model": "/home/user/precise_stuff/training/hey_mycroft.tflite",
        "listen": true,
        "sound": "snd/start_listening.wav"
        },
    "wake up": {
        "module": "pocketsphinx",
        "phonemes": "W EY K . AH P",
        "threshold": 1e-20,
        "lang": "en-us",
        "wakeup": true
        },
     "thank you": {
        "module": "pocketsphinx",
        "phonemes": "TH AE NG K . Y UW",
        "threshold": 0.1,
        "event": "mycroft.stop",
        "utterance": "thank you",
        "lang": "en-us"
    }
  },
```
JarbasAl added a commit to OpenVoiceOS/ovos-core that referenced this pull request Nov 3, 2021
Multiple hotwords! Yes, its MycroftAI#1233 again for the 9087th time

hotwords can do any of the following:
- play a sound
    - fix/support multiple audio extensions instead of .wav only
- start listening
- trigger "wake up"
- emit a bus event
- emit an utterance
- select a STT lang

sample config
```json
  "hotwords": {
    "hey_mycroft": {
        "module": "ovos-precise-lite",
        "model": "/home/user/precise_stuff/training/hey_mycroft.tflite",
        "listen": true,
        "sound": "snd/start_listening.wav"
        },
    "wake up": {
        "module": "pocketsphinx",
        "phonemes": "W EY K . AH P",
        "threshold": 1e-20,
        "lang": "en-us",
        "wakeup": true
        },
     "thank you": {
        "module": "pocketsphinx",
        "phonemes": "TH AE NG K . Y UW",
        "threshold": 0.1,
        "event": "mycroft.stop",
        "utterance": "thank you",
        "lang": "en-us"
    }
  },
```

Co-authored-by: jarbasal <jarbasai@mailfence.com>
JarbasAl added a commit to OpenVoiceOS/ovos-core that referenced this pull request Nov 4, 2021
Multiple hotwords! Yes, its MycroftAI#1233 again for the 9087th time

hotwords can do any of the following:
- play a sound
    - fix/support multiple audio extensions instead of .wav only
- start listening
- trigger "wake up"
- emit a bus event
- emit an utterance
- select a STT lang

sample config
```json
  "hotwords": {
    "hey_mycroft": {
        "module": "ovos-precise-lite",
        "model": "/home/user/precise_stuff/training/hey_mycroft.tflite",
        "listen": true,
        "sound": "snd/start_listening.wav"
        },
    "wake up": {
        "module": "pocketsphinx",
        "phonemes": "W EY K . AH P",
        "threshold": 1e-20,
        "lang": "en-us",
        "wakeup": true
        },
     "thank you": {
        "module": "pocketsphinx",
        "phonemes": "TH AE NG K . Y UW",
        "threshold": 0.1,
        "event": "mycroft.stop",
        "utterance": "thank you",
        "lang": "en-us"
    }
  },
```

Co-authored-by: jarbasal <jarbasai@mailfence.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants