summaryrefslogtreecommitdiffstats
path: root/templates/feature
diff options
context:
space:
mode:
Diffstat (limited to 'templates/feature')
-rw-r--r--templates/feature/agl-offline-voice-agent/50_bblayers.conf.inc6
-rw-r--r--templates/feature/agl-offline-voice-agent/50_local.conf.inc14
2 files changed, 15 insertions, 5 deletions
diff --git a/templates/feature/agl-offline-voice-agent/50_bblayers.conf.inc b/templates/feature/agl-offline-voice-agent/50_bblayers.conf.inc
index ef9d57df..5c235ac0 100644
--- a/templates/feature/agl-offline-voice-agent/50_bblayers.conf.inc
+++ b/templates/feature/agl-offline-voice-agent/50_bblayers.conf.inc
@@ -4,5 +4,9 @@ AGL_META_PYTHON = "${METADIR}/external/meta-openembedded/meta-python"
BBLAYERS =+ " \
${METADIR}/meta-agl-devel/meta-offline-voice-agent \
- ${METADIR}/external/meta-tensorflow \
+ ${METADIR}/external/meta-python-ai \
"
+
+# package in meta-oe is newer
+BBMASK += "meta-tensorflow/recipes-devtools/python/python3-gast_0.4.0.bb"
+
diff --git a/templates/feature/agl-offline-voice-agent/50_local.conf.inc b/templates/feature/agl-offline-voice-agent/50_local.conf.inc
index f8ca1d82..632f14be 100644
--- a/templates/feature/agl-offline-voice-agent/50_local.conf.inc
+++ b/templates/feature/agl-offline-voice-agent/50_local.conf.inc
@@ -8,11 +8,11 @@ HOSTTOOLS += "gfortran"
# FIXME check if needed and/or submit upstream
BBCLASSEXTEND:pn-python3-charset-normalizer = "native nativesdk"
-IMAGE_INSTALL:append = " \
+PACKAGECONFIG:pn-openblas := "cblas lapack lapack-deprecated"
+
+FEATURE_PACKAGES_agl-offline-voice-agent:append = " \
python3-snips-inference-agl \
snips-model-agl \
- python3-rasa \
- rasa-model-agl \
vosk \
vosk-kaldi \
vosk-server \
@@ -21,11 +21,17 @@ IMAGE_INSTALL:append = " \
python3-sounddevice \
flutter-voiceassistant \
agl-service-voiceagent \
+ whisper \
+ openai-whisper-base \
"
-PREFERRED_RPROVIDER_vosk-model ?= "vosk-model-small-en-us"
+EXTRA_IMAGE_FEATURES += "agl-offline-voice-agent"
+PREFERRED_RPROVIDER_vosk-model ?= "vosk-model-small-en-us"
+PREFERRED_RPROVIDER_whisper-model ?= "openai-whisper-base"
# bump bazel limits
BAZEL_JOBS = "HOST_CPUS*.4"
BAZEL_MEM = "HOST_RAM*.4"
+
+LICENSE_FLAGS_ACCEPTED += "commercial_ffmpeg"