diff options
40 files changed, 157 insertions, 11 deletions
diff --git a/meta-offline-voice-agent/licenses/LICENSE b/meta-offline-voice-agent/licenses/LICENSE index d2555259..aee97e26 100644 --- a/meta-offline-voice-agent/licenses/LICENSE +++ b/meta-offline-voice-agent/licenses/LICENSE @@ -1,6 +1,7 @@ + MIT License -Copyright (c) 2022 OpenAI +Copyright (c) 2023-2024 The ggml authors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/meta-offline-voice-agent/recipes-assistant/voiceagent-app/flutter-voiceassistant_git.bb b/meta-offline-voice-agent/recipes-assistant/voiceagent-app/flutter-voiceassistant_git.bb index 67263790..cdb9d3d8 100644 --- a/meta-offline-voice-agent/recipes-assistant/voiceagent-app/flutter-voiceassistant_git.bb +++ b/meta-offline-voice-agent/recipes-assistant/voiceagent-app/flutter-voiceassistant_git.bb @@ -32,4 +32,5 @@ do_install:append() { install -D -m 0644 ${WORKDIR}/agl-app-flutter@flutter_voiceassistant.service ${D}${systemd_system_unitdir}/agl-app-flutter@flutter_voiceassistant.service } + FILES:${PN} += "${datadir} " diff --git a/meta-offline-voice-agent/recipes-assistant/voiceagent-service/agl-service-voiceagent_git.bb b/meta-offline-voice-agent/recipes-assistant/voiceagent-service/agl-service-voiceagent_git.bb index e1f1cc50..aedab006 100644 --- a/meta-offline-voice-agent/recipes-assistant/voiceagent-service/agl-service-voiceagent_git.bb +++ b/meta-offline-voice-agent/recipes-assistant/voiceagent-service/agl-service-voiceagent_git.bb @@ -1,11 +1,12 @@ SUMMARY = "A gRPC-based voice agent service designed for Automotive Grade Linux (AGL)." -HOMEPAGE = "https://github.com/malik727/agl-service-voiceagent" +.HOMEPAGE = "https://github.com/malik727/agl-service-voiceagent" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=4202492ed9afcab3aaecc4a9ec32adb2" SRC_URI = " \ - file://agl-service-voiceagent.service \ git://gerrit.automotivelinux.org/gerrit/apps/agl-service-voiceagent;protocol=https;branch=${AGL_BRANCH} \ + file://agl-service-voiceagent.service \ + file://voice-agent-config.ini \ " SRCREV = "${AUTOREV}" @@ -15,7 +16,7 @@ S = "${WORKDIR}/git" VOSK_STT_MODEL_NAME ?= "vosk-model-small-en-us-0.15" # Wake Word Detection Model Name VOSK_WWD_MODEL_NAME ?= "vosk-model-small-en-us-0.15" -WAKE_WORD ?= "hello auto" +WAKE_WORD ?= "hey automotive" DEPENDS += " \ python3 \ @@ -53,8 +54,12 @@ do_install:append() { # Initialize our service definition if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then install -d ${D}${systemd_system_unitdir} - install -m 0644 ${WORKDIR}/agl-service-voiceagent.service ${D}${systemd_system_unitdir} + install -m 0644 ${WORKDIR}/agl-service-voiceagent.service ${D}${systemd_system_unitdir}/agl-service-voiceagent.service fi + + # Copy config file to etc/default + install -d ${D}/etc/default/ + cp -R ${WORKDIR}/voice-agent-config.ini ${D}/etc/default/ } RDEPENDS:${PN} += " \ @@ -65,7 +70,8 @@ RDEPENDS:${PN} += " \ kuksa-client \ python3-snips-inference-agl \ vosk \ - whisper \ + whisper-cpp \ + python3-python-mpd2 \ " -FILES:${PN} += "/usr/share/nlu/" +FILES:${PN} += "/usr/share/nlu/ /etc/default/" diff --git a/meta-offline-voice-agent/recipes-assistant/voiceagent-service/files/agl-service-voiceagent.service b/meta-offline-voice-agent/recipes-assistant/voiceagent-service/files/agl-service-voiceagent.service index b4d738f8..af08b42e 100644 --- a/meta-offline-voice-agent/recipes-assistant/voiceagent-service/files/agl-service-voiceagent.service +++ b/meta-offline-voice-agent/recipes-assistant/voiceagent-service/files/agl-service-voiceagent.service @@ -3,7 +3,7 @@ Description=AGL Voice Agent Service After=network.target [Service] -ExecStart=/usr/bin/voiceagent-service run-server --default +ExecStart=/usr/bin/voiceagent-service run-server --config /etc/default/voice-agent-config.ini Restart=always [Install] diff --git a/meta-offline-voice-agent/recipes-assistant/voiceagent-service/files/voice-agent-config.ini b/meta-offline-voice-agent/recipes-assistant/voiceagent-service/files/voice-agent-config.ini new file mode 100644 index 00000000..e4f63130 --- /dev/null +++ b/meta-offline-voice-agent/recipes-assistant/voiceagent-service/files/voice-agent-config.ini @@ -0,0 +1,46 @@ +[General] +base_audio_dir = /usr/share/nlu/commands/ +vosk_model_path = /usr/share/vosk/vosk-model-small-en-us-0.15/ +whisper_model_path = /usr/share/whisper/tiny.pt +whisper_cpp_path = /usr/bin/whisper-cpp +whisper_cpp_model_path = /usr/share/whisper-cpp/models/tiny.en.bin +wake_word_model_path = /usr/share/vosk/vosk-model-small-en-us-0.15/ +snips_model_path = /usr/share/nlu/snips/model/ +channels = 1 +sample_rate = 16000 +bits_per_sample = 16 +wake_word = hey automotive +server_port = 51053 +server_address = 127.0.0.1 +rasa_model_path = /usr/share/nlu/rasa/models/ +rasa_server_port = 51054 +rasa_detached_mode = 1 +base_log_dir = /usr/share/nlu/logs/ +store_voice_commands = 0 +online_mode = 0 +online_mode_address = 65.108.107.216 +online_mode_port = 50051 +online_mode_timeout = 15 +mpd_ip = 127.0.0.1 +mpd_port = 6600 + +[Kuksa] +ip = 127.0.0.1 +port = 55555 +protocol = grpc +insecure = 0 +token = /usr/lib/python3.12/site-packages/kuksa_certificates/jwt/super-admin.json.token +tls_server_name = Server + +[VSS] +hostname = localhost +port = 55555 +protocol = grpc +insecure = 0 +token_filename = /etc/xdg/AGL/agl-vss-helper/agl-vss-helper.token +ca_cert_filename = /etc/kuksa-val/CA.pem +tls_server_name = Server + +[Mapper] +intents_vss_map = /usr/share/nlu/mappings/intents_vss_map.json +vss_signals_spec = /usr/share/nlu/mappings/vss_signals_spec.json diff --git a/meta-offline-voice-agent/recipes-python/python3-python-mpd2/python3-python-mpd2_3.1.1.bb b/meta-offline-voice-agent/recipes-python/python3-python-mpd2/python3-python-mpd2_3.1.1.bb new file mode 100644 index 00000000..bca98bb1 --- /dev/null +++ b/meta-offline-voice-agent/recipes-python/python3-python-mpd2/python3-python-mpd2_3.1.1.bb @@ -0,0 +1,15 @@ +SUMMARY = "A Python MPD client library" +HOMEPAGE = "https://github.com/Mic92/python-mpd2" +AUTHOR = "Joerg Thalheim <joerg@thalheim.io>" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e6a600fd5e1d9cbde2d983680233ad02" + +SRC_URI = "https://files.pythonhosted.org/packages/53/be/e77206eb35eb37ccd3506fba237e1431431d04c482707730ce2a6802e95c/python-mpd2-3.1.1.tar.gz" +SRC_URI[md5sum] = "b218d6f233c23da0bc82c372308bbf8d" +SRC_URI[sha256sum] = "4baec3584cc43ed9948d5559079fafc2679b06b2ade273e909b3582654b2b3f5" + +S = "${WORKDIR}/python-mpd2-3.1.1" + +RDEPENDS_${PN} = "" + +inherit setuptools3 diff --git a/meta-offline-voice-agent/recipes-whisper/whisper-cpp-model/whisper-cpp-base.bb b/meta-offline-voice-agent/recipes-whisper/whisper-cpp-model/whisper-cpp-base.bb new file mode 100644 index 00000000..621eb780 --- /dev/null +++ b/meta-offline-voice-agent/recipes-whisper/whisper-cpp-model/whisper-cpp-base.bb @@ -0,0 +1,15 @@ +SUMMARY = "Whisper-cpp base model" +HOMEPAGE = "https://github.com/ggerganov/whisper.cpp" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${THISDIR}/../../licenses/LICENSE;md5=7a3cb84505132167069a95fa683a011c" + +SRC_URI = "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.bin" +SRC_URI[sha256sum] = "60ed5bc3dd14eea856493d334349b405782ddcaf0028d4b5df4088345fba2efe" + +do_install() { + # Install the models + install -d ${D}${datadir}/whisper-cpp/models + install -m 0644 ${WORKDIR}/ggml-base.bin ${D}${datadir}/whisper-cpp/models/base.bin +} + +FILES:${PN} += " /usr /usr/share /usr/share/whisper-cpp/* " diff --git a/meta-offline-voice-agent/recipes-whisper/whisper-cpp-model/whisper-cpp-tiny.bb b/meta-offline-voice-agent/recipes-whisper/whisper-cpp-model/whisper-cpp-tiny.bb new file mode 100644 index 00000000..7e4b70fb --- /dev/null +++ b/meta-offline-voice-agent/recipes-whisper/whisper-cpp-model/whisper-cpp-tiny.bb @@ -0,0 +1,15 @@ +SUMMARY = "Whisper-cpp base model" +HOMEPAGE = "https://github.com/ggerganov/whisper.cpp" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${THISDIR}/../../licenses/LICENSE;md5=7a3cb84505132167069a95fa683a011c" + +SRC_URI = "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny.en.bin" +SRC_URI[sha256sum] = "921e4cf8686fdd993dcd081a5da5b6c365bfde1162e72b08d75ac75289920b1f" + +do_install() { + # Install the models + install -d ${D}${datadir}/whisper-cpp/models + install -m 0644 ${WORKDIR}/ggml-tiny.en.bin ${D}${datadir}/whisper-cpp/models/tiny.en.bin +} + +FILES:${PN} += " /usr /usr/share /usr/share/whisper-cpp/* " diff --git a/meta-offline-voice-agent/recipes-whisper/whisper-cpp/whisper-cpp_git.bb b/meta-offline-voice-agent/recipes-whisper/whisper-cpp/whisper-cpp_git.bb new file mode 100644 index 00000000..0e3e9a17 --- /dev/null +++ b/meta-offline-voice-agent/recipes-whisper/whisper-cpp/whisper-cpp_git.bb @@ -0,0 +1,39 @@ +DESCRIPTION = "Whisper.cpp - Port of OpenAI's Whisper model in C++ for faster and smaller inference" +HOMEPAGE = "https://github.com/ggerganov/whisper.cpp" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1539dadbedb60aa18519febfeab70632" + +SRC_URI = "git://github.com/ggerganov/whisper.cpp.git;protocol=https;branch=master" + +SRCREV = "81c999fe0a25c4ebbfef10ed8a1a96df9cfc10fd" + +DEPENDS = "ffmpeg openblas" + +S = "${WORKDIR}/git" + +inherit cmake + +do_configure:prepend() { + sed -i 's/-march=native//g' ${S}/Makefile + sed -i 's/-mtune=native//g' ${S}/Makefile +} + + +# Specify the model you want to download +WHISPER_MODEL ?= "base.en" + +do_compile() { + export CXXFLAGS="${CXXFLAGS} -I${STAGING_INCDIR}/openblas" + export LDFLAGS="${LDFLAGS} -lopenblas" + cd ${S} + oe_runmake GGML_OPENBLAS=1 +} + +do_install() { + # Install the main binary + install -d ${D}${bindir} + install -m 0755 ${S}/main ${D}${bindir}/whisper-cpp +} + +FILES_${PN} += "${datadir}/whisper-cpp/models/* ${datadir}/* ${bindir}/* /usr/share " +RDEPENDS:${PN} += "openblas ffmpeg" diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/files/0001-Add-new-DG2-device-IDs-194.patch b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/files/0001-Add-new-DG2-device-IDs-194.patch index 825c1f18..825c1f18 100644 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/files/0001-Add-new-DG2-device-IDs-194.patch +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/files/0001-Add-new-DG2-device-IDs-194.patch diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/files/0001-BiF-CMakeLists.txt-remove-opt-from-DEPENDS.patch b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/files/0001-BiF-CMakeLists.txt-remove-opt-from-DEPENDS.patch index 377081fd..377081fd 100644 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/files/0001-BiF-CMakeLists.txt-remove-opt-from-DEPENDS.patch +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/files/0001-BiF-CMakeLists.txt-remove-opt-from-DEPENDS.patch diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/files/0001-Introduce-ARL-H-support-172.patch b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/files/0001-Introduce-ARL-H-support-172.patch index ab4cb178..ab4cb178 100644 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/files/0001-Introduce-ARL-H-support-172.patch +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/files/0001-Introduce-ARL-H-support-172.patch diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/files/0001-external-SPIRV-Tools-change-path-to-tools-and-header.patch b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/files/0001-external-SPIRV-Tools-change-path-to-tools-and-header.patch index dca75e22..dca75e22 100644 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/files/0001-external-SPIRV-Tools-change-path-to-tools-and-header.patch +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/files/0001-external-SPIRV-Tools-change-path-to-tools-and-header.patch diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/files/0001-fix-tblgen.patch b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/files/0001-fix-tblgen.patch index 39443931..39443931 100644 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/files/0001-fix-tblgen.patch +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/files/0001-fix-tblgen.patch diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/files/0003-Improve-Reproducibility-for-src-package.patch b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/files/0003-Improve-Reproducibility-for-src-package.patch index 650130a8..650130a8 100644 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/files/0003-Improve-Reproducibility-for-src-package.patch +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/files/0003-Improve-Reproducibility-for-src-package.patch diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/files/intel-oneapi-runtime.conf b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/files/intel-oneapi-runtime.conf index 5faf9854..5faf9854 100644 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/files/intel-oneapi-runtime.conf +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/files/intel-oneapi-runtime.conf diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/gmmlib_22.3.15.bb b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/gmmlib_22.3.15.bb index 875fbaf5..875fbaf5 100644 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/gmmlib_22.3.15.bb +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/gmmlib_22.3.15.bb diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/intel-compute-runtime/allow-to-find-cpp-generation-tool.patch b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/intel-compute-runtime/allow-to-find-cpp-generation-tool.patch index 265fcfa2..265fcfa2 100644 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/intel-compute-runtime/allow-to-find-cpp-generation-tool.patch +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/intel-compute-runtime/allow-to-find-cpp-generation-tool.patch diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/intel-compute-runtime/disable-werror.patch b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/intel-compute-runtime/disable-werror.patch index 20d9b847..20d9b847 100644 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/intel-compute-runtime/disable-werror.patch +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/intel-compute-runtime/disable-werror.patch diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/intel-compute-runtime/external-ocloc.patch b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/intel-compute-runtime/external-ocloc.patch index 5f93b7b6..5f93b7b6 100644 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/intel-compute-runtime/external-ocloc.patch +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/intel-compute-runtime/external-ocloc.patch diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/intel-compute-runtime_24.13.29138.7.bb b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/intel-compute-runtime_24.13.29138.7.bb index 5214d5cf..5214d5cf 100644 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/intel-compute-runtime_24.13.29138.7.bb +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/intel-compute-runtime_24.13.29138.7.bb diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/intel-graphics-compiler_1.0.16510.2.bb b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/intel-graphics-compiler_1.0.16510.2.bb index 24eb97bd..24eb97bd 100644 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/intel-graphics-compiler_1.0.16510.2.bb +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/intel-graphics-compiler_1.0.16510.2.bb diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/intel-oneapi-dpcpp-cpp-runtime_2024.0.0-49819.bb b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/intel-oneapi-dpcpp-cpp-runtime_2024.0.0-49819.bb index c48fdca4..c48fdca4 100644 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/intel-oneapi-dpcpp-cpp-runtime_2024.0.0-49819.bb +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/intel-oneapi-dpcpp-cpp-runtime_2024.0.0-49819.bb diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/intel-oneapi-dpcpp-cpp_2024.0.0-49819.bb b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/intel-oneapi-dpcpp-cpp_2024.0.0-49819.bb index 71bffa4a..71bffa4a 100644 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/intel-oneapi-dpcpp-cpp_2024.0.0-49819.bb +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/intel-oneapi-dpcpp-cpp_2024.0.0-49819.bb diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/intel-oneapi-mkl_2024.0.0-49656.bb b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/intel-oneapi-mkl_2024.0.0-49656.bb index e3e93028..e3e93028 100644 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/intel-oneapi-mkl_2024.0.0-49656.bb +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/intel-oneapi-mkl_2024.0.0-49656.bb diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/level-zero_1.15.8.bb b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/level-zero_1.15.8.bb index 8bade9f4..8bade9f4 100644 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/level-zero_1.15.8.bb +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/level-zero_1.15.8.bb diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/onednn.bb b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/onednn.bb index 48d2e6b2..48d2e6b2 100644 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/onednn.bb +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/onednn.bb diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/onednn/run-ptest b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/onednn/run-ptest index 82d4df58..82d4df58 100755 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/onednn/run-ptest +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/onednn/run-ptest diff --git a/meta-offline-voice-agent/recipes-devtools/recipes-intel/setup-intel-oneapi-env_2023.0.0-25370.bb b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/setup-intel-oneapi-env_2023.0.0-25370.bb index e590b4ce..e590b4ce 100644 --- a/meta-offline-voice-agent/recipes-devtools/recipes-intel/setup-intel-oneapi-env_2023.0.0-25370.bb +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-devtools/recipes-intel/setup-intel-oneapi-env_2023.0.0-25370.bb diff --git a/meta-offline-voice-agent/recipes-python/llvmlite/files/LICENSE b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-python/llvmlite/files/LICENSE index 8e94a016..8e94a016 100644 --- a/meta-offline-voice-agent/recipes-python/llvmlite/files/LICENSE +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-python/llvmlite/files/LICENSE diff --git a/meta-offline-voice-agent/recipes-python/llvmlite/llvmlite_0.43.0.bb b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-python/llvmlite/llvmlite_0.43.0.bb index e34abd59..e34abd59 100644 --- a/meta-offline-voice-agent/recipes-python/llvmlite/llvmlite_0.43.0.bb +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-python/llvmlite/llvmlite_0.43.0.bb diff --git a/meta-offline-voice-agent/recipes-python/numba/python3-numba_%.bbappend b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-python/numba/python3-numba_%.bbappend index 4bc055b5..4bc055b5 100644 --- a/meta-offline-voice-agent/recipes-python/numba/python3-numba_%.bbappend +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-python/numba/python3-numba_%.bbappend diff --git a/meta-offline-voice-agent/recipes-python/pytorch/python3-pytorch_%.bbappend b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-python/pytorch/python3-pytorch_%.bbappend index 6a971f70..6a971f70 100644 --- a/meta-offline-voice-agent/recipes-python/pytorch/python3-pytorch_%.bbappend +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-python/pytorch/python3-pytorch_%.bbappend diff --git a/meta-offline-voice-agent/recipes-python/tiktoken/python3-tiktoken-crates.inc b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-python/tiktoken/python3-tiktoken-crates.inc index 1b4d3588..1b4d3588 100644 --- a/meta-offline-voice-agent/recipes-python/tiktoken/python3-tiktoken-crates.inc +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-python/tiktoken/python3-tiktoken-crates.inc diff --git a/meta-offline-voice-agent/recipes-python/tiktoken/python3-tiktoken_0.7.0.bb b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-python/tiktoken/python3-tiktoken_0.7.0.bb index 6e5a8f08..6e5a8f08 100644 --- a/meta-offline-voice-agent/recipes-python/tiktoken/python3-tiktoken_0.7.0.bb +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-python/tiktoken/python3-tiktoken_0.7.0.bb diff --git a/meta-offline-voice-agent/recipes-whisper/whisper-model/openai-whisper-base.bb b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-whisper/whisper-model/openai-whisper-base.bb index 42d75881..42d75881 100644 --- a/meta-offline-voice-agent/recipes-whisper/whisper-model/openai-whisper-base.bb +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-whisper/whisper-model/openai-whisper-base.bb diff --git a/meta-offline-voice-agent/recipes-whisper/whisper-model/openai-whisper-tiny.bb b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-whisper/whisper-model/openai-whisper-tiny.bb index 19acc727..19acc727 100644 --- a/meta-offline-voice-agent/recipes-whisper/whisper-model/openai-whisper-tiny.bb +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-whisper/whisper-model/openai-whisper-tiny.bb diff --git a/meta-offline-voice-agent/recipes-whisper/whisper/whisper_git.bb b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-whisper/whisper/whisper_git.bb index 983999b5..983999b5 100644 --- a/meta-offline-voice-agent/recipes-whisper/whisper/whisper_git.bb +++ b/meta-offline-voice-agent/unused-whisper-ai-recipes/recipes-whisper/whisper/whisper_git.bb 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 5c235ac0..959b6038 100644 --- a/templates/feature/agl-offline-voice-agent/50_bblayers.conf.inc +++ b/templates/feature/agl-offline-voice-agent/50_bblayers.conf.inc @@ -10,3 +10,6 @@ BBLAYERS =+ " \ # package in meta-oe is newer BBMASK += "meta-tensorflow/recipes-devtools/python/python3-gast_0.4.0.bb" +# needed for rasa +# ${METADIR}/external/meta-tensorflow \ +# 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 632f14be..f0c6221c 100644 --- a/templates/feature/agl-offline-voice-agent/50_local.conf.inc +++ b/templates/feature/agl-offline-voice-agent/50_local.conf.inc @@ -21,17 +21,22 @@ FEATURE_PACKAGES_agl-offline-voice-agent:append = " \ python3-sounddevice \ flutter-voiceassistant \ agl-service-voiceagent \ - whisper \ - openai-whisper-base \ + whisper-cpp \ + whisper-cpp-tiny \ " EXTRA_IMAGE_FEATURES += "agl-offline-voice-agent" PREFERRED_RPROVIDER_vosk-model ?= "vosk-model-small-en-us" -PREFERRED_RPROVIDER_whisper-model ?= "openai-whisper-base" +PREFERRED_RPROVIDER_whisper-model ?= "whisper-cpp-tiny" # bump bazel limits BAZEL_JOBS = "HOST_CPUS*.4" BAZEL_MEM = "HOST_RAM*.4" LICENSE_FLAGS_ACCEPTED += "commercial_ffmpeg" + +# no rasa support currently +# python3-rasa \ +# rasa-model-agl \ +#
\ No newline at end of file |