From 033eebedd1c3cab211e86afab7f6a80970785910 Mon Sep 17 00:00:00 2001 From: j1nx Date: Tue, 15 Nov 2022 10:22:55 +0100 Subject: [PATCH] AAdd ovos-ww-plugin-vosk and use it for "wake up" --- buildroot-external/Config.in | 1 + buildroot-external/configs/rpi4_64-gui_defconfig | 1 + .../package/python-ovos-ww-plugin-vosk/Config.in | 6 ++++++ .../python-ovos-ww-plugin-vosk.hash | 1 + .../python-ovos-ww-plugin-vosk.mk | 12 ++++++++++++ .../rootfs-overlay/etc/mycroft/mycroft.conf | 9 +++++++++ 6 files changed, 30 insertions(+) create mode 100644 buildroot-external/package/python-ovos-ww-plugin-vosk/Config.in create mode 100644 buildroot-external/package/python-ovos-ww-plugin-vosk/python-ovos-ww-plugin-vosk.hash create mode 100644 buildroot-external/package/python-ovos-ww-plugin-vosk/python-ovos-ww-plugin-vosk.mk diff --git a/buildroot-external/Config.in b/buildroot-external/Config.in index 249b8227..c5c04c1e 100644 --- a/buildroot-external/Config.in +++ b/buildroot-external/Config.in @@ -311,6 +311,7 @@ menu "Plugins" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-ovos-ww-plugin-pocketsphinx/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-ovos-ww-plugin-precise/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-ovos-ww-plugin-precise-lite/Config.in" + source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-ovos-ww-plugin-vosk/Config.in" endmenu menu "Skills" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/skill-camera/Config.in" diff --git a/buildroot-external/configs/rpi4_64-gui_defconfig b/buildroot-external/configs/rpi4_64-gui_defconfig index 127efc4d..f59cd76b 100644 --- a/buildroot-external/configs/rpi4_64-gui_defconfig +++ b/buildroot-external/configs/rpi4_64-gui_defconfig @@ -740,6 +740,7 @@ BR2_PACKAGE_PYTHON_OVOS_VLC_PLUGIN=y BR2_PACKAGE_PYTHON_OVOS_WORKSHOP=y BR2_PACKAGE_PYTHON_OVOS_WW_PLUGIN_POCKETSPHINX=y BR2_PACKAGE_PYTHON_OVOS_WW_PLUGIN_PRECISE_LITE=y +BR2_PACKAGE_PYTHON_OVOS_WW_PLUGIN_VOSK=y BR2_PACKAGE_SKILL_OVOS_ALARM=y BR2_PACKAGE_SKILL_OVOS_DATE_TIME=y BR2_PACKAGE_SKILL_OVOS_DDG=y diff --git a/buildroot-external/package/python-ovos-ww-plugin-vosk/Config.in b/buildroot-external/package/python-ovos-ww-plugin-vosk/Config.in new file mode 100644 index 00000000..7723baef --- /dev/null +++ b/buildroot-external/package/python-ovos-ww-plugin-vosk/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_PYTHON_OVOS_WW_PLUGIN_VOSK + bool "python-ovos-ww-plugin-vosk" + help + wake word plugin for Vosk + + https://github.com/OpenVoiceOS/ovos-ww-plugin-vosk diff --git a/buildroot-external/package/python-ovos-ww-plugin-vosk/python-ovos-ww-plugin-vosk.hash b/buildroot-external/package/python-ovos-ww-plugin-vosk/python-ovos-ww-plugin-vosk.hash new file mode 100644 index 00000000..c573d40f --- /dev/null +++ b/buildroot-external/package/python-ovos-ww-plugin-vosk/python-ovos-ww-plugin-vosk.hash @@ -0,0 +1 @@ +sha256 7fc0cb2dd81683dcdd72725b6afb5b060e46334b7ec3d3ea4e03c3910c8554f6 python-ovos-ww-plugin-vosk-1ee4917e19d8f39f9944c11f3f596a5e0cf2ff58.tar.gz diff --git a/buildroot-external/package/python-ovos-ww-plugin-vosk/python-ovos-ww-plugin-vosk.mk b/buildroot-external/package/python-ovos-ww-plugin-vosk/python-ovos-ww-plugin-vosk.mk new file mode 100644 index 00000000..fba0f88f --- /dev/null +++ b/buildroot-external/package/python-ovos-ww-plugin-vosk/python-ovos-ww-plugin-vosk.mk @@ -0,0 +1,12 @@ +################################################################################ +# +# python-ovos-ww-plugin-vosk +# +################################################################################ + +PYTHON_OVOS_WW_PLUGIN_VOSK_VERSION = 1ee4917e19d8f39f9944c11f3f596a5e0cf2ff58 +PYTHON_OVOS_WW_PLUGIN_VOSK_SITE = $(call github,OpenVoiceOS,ovos-ww-plugin-vosk,$(PYTHON_OVOS_WW_PLUGIN_VOSK_VERSION)) +PYTHON_OVOS_WW_PLUGIN_VOSK_SETUP_TYPE = setuptools +PYTHON_OVOS_WW_PLUGIN_VOSK_LICENSE_FILES = LICENSE + +$(eval $(python-package)) diff --git a/buildroot-external/rootfs-overlay/etc/mycroft/mycroft.conf b/buildroot-external/rootfs-overlay/etc/mycroft/mycroft.conf index 41c4e5d0..915a5455 100644 --- a/buildroot-external/rootfs-overlay/etc/mycroft/mycroft.conf +++ b/buildroot-external/rootfs-overlay/etc/mycroft/mycroft.conf @@ -26,6 +26,15 @@ "sensitivity": 0.5, "trigger_level": 3, "expected_duration": 3 + }, + "wake_up": { + "module": "ovos-ww-plugin-vosk", + "rule": "equals", + "samples": [ + "wake up" + ], + // wakeupwords are only used in SLEEPING mode + "wakeup": true } }, "tts": {