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

feat/multiple_wakewords #2

Merged
merged 1 commit into from
Nov 3, 2021
Merged

feat/multiple_wakewords #2

merged 1 commit into from
Nov 3, 2021

Conversation

JarbasAl
Copy link
Member

@JarbasAl JarbasAl commented Oct 22, 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

  "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"
    }
  },

related issues:

@JarbasAl JarbasAl added the enhancement New feature or request label Oct 22, 2021
mycroft/client/speech/listener.py Show resolved Hide resolved
mycroft/client/speech/listener.py Show resolved Hide resolved
mycroft/client/speech/mic.py Show resolved Hide resolved
@JarbasAl JarbasAl force-pushed the dev branch 3 times, most recently from 1b15829 to 47d8a1f Compare October 26, 2021 02:47
@JarbasAl JarbasAl force-pushed the feat/multiple_wakewords branch from b2a51b7 to d3a1f91 Compare October 26, 2021 14:03
@JarbasAl
Copy link
Member Author

rebased, will address code review now

@JarbasAl JarbasAl force-pushed the feat/multiple_wakewords branch 2 times, most recently from a1acf43 to 7b7d825 Compare October 28, 2021 18:58
@JarbasAl JarbasAl requested a review from NeonDaniel October 28, 2021 19:03
Copy link

@ChanceNCounter ChanceNCounter left a comment

Choose a reason for hiding this comment

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

I defer to Daniel, as I am backlogged relative to my keyboard time today.

Copy link
Member

@NeonDaniel NeonDaniel left a comment

Choose a reason for hiding this comment

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

No time to test, but looks good

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 JarbasAl force-pushed the feat/multiple_wakewords branch from f06c5b5 to adedd85 Compare November 1, 2021 22:11
@JarbasAl JarbasAl merged commit 824eae3 into dev Nov 3, 2021
JarbasAl added a commit 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>
@JarbasAl JarbasAl mentioned this pull request Nov 14, 2021
44 tasks
@JarbasAl JarbasAl deleted the feat/multiple_wakewords branch November 18, 2021 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants