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/ww fallback #99

Merged
merged 3 commits into from
Jan 20, 2023
Merged

feat/ww fallback #99

merged 3 commits into from
Jan 20, 2023

Conversation

JarbasAl
Copy link
Member

@JarbasAl JarbasAl commented Dec 24, 2022

allow hotword config to specify alternative ww to load on failure, this allows to recursively specify plugins in config and load the best one available

    "hey_mycroft": {
        "module": "ovos-ww-plugin-precise-lite",
        "model": "https://github.com/OpenVoiceOS/precise-lite-models/raw/master/wakewords/en/hey_mycroft.tflite",
        "expected_duration": 3,
        "trigger_level": 3,
        "sensitivity": 0.5,
        "listen": true,
        "fallback_ww": "hey_mycroft_precise"
    },
    "hey_mycroft_precise": {
        "module": "ovos-ww-plugin-precise",
        "version": "0.3",
        "model": "https://github.com/MycroftAI/precise-data/raw/models-dev/hey-mycroft.tar.gz",
        "expected_duration": 3,
        "trigger_level": 3,
        "sensitivity": 0.5,
        "listen": true,
        "fallback_ww": "hey_mycroft_vosk"
    },
    "hey_mycroft_vosk": {
        "module": "ovos-ww-plugin-vosk",
        "samples": ["hey mycroft", "hey microsoft", "hey mike roft", "hey minecraft"],
        "rule": "fuzzy",
        "listen": true,
        "fallback_ww": "hey_mycroft_pocketsphinx"
    },
    "hey_mycroft_pocketsphinx": {
        "module": "ovos-ww-plugin-pocketsphinx",
        "phonemes": "HH EY . M AY K R AO F T",
        "threshold": 1e-90,
        "lang": "en-us",
        "listen": true
    }

allow hotword config to specify alternative ww to load on failure, this allows to recursively specify plugins in config and load the best one available

```javascript
    "hey_mycroft": {
        "module": "ovos-ww-plugin-precise-lite",
        "model": "https://github.com/MycroftAI/precise-data/raw/models-dev/hey-mycroft.tar.gz",
        "listen": true,
        "fallback_ww": "hey_mycroft_precise"
    },
    "hey_mycroft_precise": {
        "module": "ovos-ww-plugin-precise",
        "version": "0.3",
        "model": "https://github.com/MycroftAI/precise-data/raw/models-dev/hey-mycroft.tar.gz",
        "listen": true,
        "fallback_ww": "hey_mycroft_vosk"
    },
    "hey_mycroft_vosk": {
        "module": "ovos-ww-plugin-vosk",
        "samples": ["hey mycroft", "hey microsoft", "hey mike roft", "hey minecraft"],
        "rule": "fuzzy",
        "listen": true,
        "fallback_ww": "hey_mycroft_pocketsphinx"
    },
    "hey_mycroft_pocketsphinx": {
        "module": "ovos-ww-plugin-pocketsphinx",
        "phonemes": "HH EY . M AY K R AO F T",
        "threshold": 1e-90,
        "lang": "en-us",
        "listen": true
    }
```
@JarbasAl JarbasAl added the enhancement New feature or request label Dec 24, 2022
@JarbasAl JarbasAl requested a review from NeonDaniel December 24, 2022 11:02
@codecov
Copy link

codecov bot commented Dec 24, 2022

Codecov Report

❗ No coverage uploaded for pull request base (dev@d628bca). Click here to learn what that means.
The diff coverage is n/a.

@@          Coverage Diff          @@
##             dev     #99   +/-   ##
=====================================
  Coverage       ?   0.00%           
=====================================
  Files          ?      47           
  Lines          ?    3184           
  Branches       ?       0           
=====================================
  Hits           ?       0           
  Misses         ?    3184           
  Partials       ?       0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

ovos_plugin_manager/wakewords.py Outdated Show resolved Hide resolved
ovos_plugin_manager/wakewords.py Show resolved Hide resolved
@JarbasAl JarbasAl mentioned this pull request Jan 10, 2023
23 tasks
@NeonDaniel NeonDaniel merged commit cd1fbe4 into dev Jan 20, 2023
@NeonDaniel NeonDaniel deleted the feat/hotword_fallback branch January 20, 2023 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants