-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
Voight Kampff Integration Test Succeeded (Results) |
Hey I haven't dug into this yet but just gave it a quick test on a Mark II OTA (w respeaker), keeps failing and falling back to pocketsphinx:
I wonder if running Ubuntu 20.04 on a Pi is confusing it - but I've tried both the linux and raspberry pi variants of the ppn. Did you hit this at all? |
Drafted an addition to docs for when we merge this too: |
Did you run it on an aarch64 build or an armhf build of the Mark-2? It could be as you say or some change in the way cpu info is presented on python 3.8 |
shouldnt this be moved for the new plugin system? |
It really should I'm actually doing a plugin for this. But it shouldn't be broken in core either... Will there be a release before 21.02 if not we might just as well drop this one entirely. |
Ok dug into this a bit. Likely something has changed between kernel versions or userspace versions in how the cpu info is reported the "model info" string that porcupine is looking for is not found in the output string |
- Update the creation of Porcupine object - Update the detection to accept >= 0 (index of detected hot word)
This is the same set of bindings as previously but packaged and published on pypi Picovoce library finder functions are used to determine the location of libraries.
e04fe83
to
23cf197
Compare
at least throw a deprecation warning saying this will move to a plugin? maybe even link to it if it already exists that way its begins being phased out, users are already being pointed to the needed changes. Also if this is currently broken doesnt that mean noone is using it so its safe to deprecate? |
Voight Kampff Integration Test Succeeded (Results) |
That's a good idea @JarbasAI, I'll add that |
Voight Kampff Integration Test Succeeded (Results) |
FWIW: I use Porcupine, and it was broken after the Porcupine 1.9.0 release, and this PR fixes it for me. I look forward to this being merged. Thank you. |
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 for confirming this is functionally working @chrisl8
The code all looks good, so going to merge this now.
As mentioned above, it will get pulled out to a standalone plugin shortly.
Description
This switches the module to use the pvporcupine library instead of the git clone. It updates the code to match the new signature of the Porcupine class initialization. It also switches to use the builtin module finding code which will make the hotword engine usable on Raspberry Pi units.
Should resolve #2720
This also does some minor cleanup of the Porcupine hotword module.
How to test
mycroft-pip install pvporcupine
Create a hotword entry in your mycroft.conf and set the listener to use it.
Contributor license agreement signed?
CLA [ Yes ]