From b7ed6fc8dad4dde55993f979bb977b6a0d268f57 Mon Sep 17 00:00:00 2001
From: j1nx
Date: Sun, 7 May 2023 12:15:08 +0200
Subject: [PATCH] Add ovos-listener package
---
buildroot-external/Config.in | 2 ++
.../package/python-ovos-listener/Config.in | 9 +++++++++
.../python-ovos-listener/python-ovos-listener.hash | 1 +
.../python-ovos-listener/python-ovos-listener.mk | 13 +++++++++++++
4 files changed, 25 insertions(+)
create mode 100644 buildroot-external/package/python-ovos-listener/Config.in
create mode 100644 buildroot-external/package/python-ovos-listener/python-ovos-listener.hash
create mode 100644 buildroot-external/package/python-ovos-listener/python-ovos-listener.mk
diff --git a/buildroot-external/Config.in b/buildroot-external/Config.in
index e4ace7b5..89600111 100644
--- a/buildroot-external/Config.in
+++ b/buildroot-external/Config.in
@@ -283,6 +283,8 @@ menu "Core"
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-ovos-config/Config.in"
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-ovos-core/Config.in"
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-ovos-gui/Config.in"
+ source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-ovos-listener/Config.in"
+ source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-ovos-messagebus/Config.in"
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/mycroft-service/Config.in"
endmenu
menu "Plugins"
diff --git a/buildroot-external/package/python-ovos-listener/Config.in b/buildroot-external/package/python-ovos-listener/Config.in
new file mode 100644
index 00000000..293967c0
--- /dev/null
+++ b/buildroot-external/package/python-ovos-listener/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PYTHON_OVOS_LISTENER
+ bool "python-ovos-listener"
+ help
+ The "ears" of the OVOS assistant!
+
+ Listens for wakewords, performs VAD and STT, the
+ final transcribed speech is then sent to ovos-core
+
+ https://github.com/OpenVoiceOS/ovos-listener
diff --git a/buildroot-external/package/python-ovos-listener/python-ovos-listener.hash b/buildroot-external/package/python-ovos-listener/python-ovos-listener.hash
new file mode 100644
index 00000000..4064d43a
--- /dev/null
+++ b/buildroot-external/package/python-ovos-listener/python-ovos-listener.hash
@@ -0,0 +1 @@
+sha256 ae7041f65321dd3c0583610ce21f5952cfa474652592372b301c9d1c21e20bec python-ovos-listener-768cd42d50ff7439c359d07a2dbba085a1e8b657.tar.gz
diff --git a/buildroot-external/package/python-ovos-listener/python-ovos-listener.mk b/buildroot-external/package/python-ovos-listener/python-ovos-listener.mk
new file mode 100644
index 00000000..33580b8f
--- /dev/null
+++ b/buildroot-external/package/python-ovos-listener/python-ovos-listener.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-ovos-listener
+#
+################################################################################
+
+PYTHON_OVOS_LISTENER_VERSION = 768cd42d50ff7439c359d07a2dbba085a1e8b657
+PYTHON_OVOS_LISTENER_SITE = $(call github,OpenVoiceOS,ovos-listener,$(PYTHON_OVOS_LISTENER_VERSION))
+PYTHON_OVOS_LISTENER_SETUP_TYPE = setuptools
+PYTHON_OVOS_LISTENER_LICENSE_FILES = LICENSE
+PYTHON_OVOS_LISTENER_ENV = MYCROFT_LOOSE_REQUIREMENTS=true
+
+$(eval $(python-package))