From 8949e1b030da7067da206a580c5124ca85ec9fbc Mon Sep 17 00:00:00 2001 From: Anuj Solanki Date: Mon, 30 Sep 2024 23:39:02 +0200 Subject: Remove OpenAI's Whisper AI and its dependencies - Remove OpenAI's Whisper AI recipes and all its dependencies. - Add recipes for whisper-cpp, whisper-cpp-base and whisper-cpp-tiny model. - Add recipe for python-mpd. - Add voice-agent-config to /etc/default and update config path in agl-service-voiceagent.service Bug-AGL: SPEC-5200 Change-Id: Iaebd9c46930144b41659710202e9b737dbe9f60b Signed-off-by: Anuj Solanki --- .../recipes-whisper/whisper-cpp-model/whisper-cpp-tiny.bb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta-offline-voice-agent/recipes-whisper/whisper-cpp-model/whisper-cpp-tiny.bb (limited to 'meta-offline-voice-agent/recipes-whisper/whisper-cpp-model/whisper-cpp-tiny.bb') 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/* " -- cgit 1.2.3-korg