summaryrefslogtreecommitdiffstats
path: root/meta-offline-voice-agent/recipes-vosk
diff options
context:
space:
mode:
authorMalik Talha <talhamalik727x@gmail.com>2023-11-02 03:29:04 +0500
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2023-11-03 19:03:36 +0000
commit64889c4c525c4c66fb74dd703a1cbc0375bc405d (patch)
treed95eaebe015ffb1695ec39f5524832cd1a7f761a /meta-offline-voice-agent/recipes-vosk
parent832fb66cc1dad280410e828547e97315741f085d (diff)
Update voice agent related recipes
Change the SRCURI to use gerrit repos. Update agl-service-voicegent recipe to correctly package all the required content. Add recipe for another en-us vosk model. Add service files for RASA and Voice Agent server. Bug-AGL: SPEC-4906 Change-Id: Ic9f77386ff5c545c2a80433dd538c94bd8763e9e Signed-off-by: Malik Talha <talhamalik727x@gmail.com>
Diffstat (limited to 'meta-offline-voice-agent/recipes-vosk')
-rw-r--r--meta-offline-voice-agent/recipes-vosk/vosk-model/vosk-model-en-us_0.22.bb22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta-offline-voice-agent/recipes-vosk/vosk-model/vosk-model-en-us_0.22.bb b/meta-offline-voice-agent/recipes-vosk/vosk-model/vosk-model-en-us_0.22.bb
new file mode 100644
index 00000000..16f6ab3d
--- /dev/null
+++ b/meta-offline-voice-agent/recipes-vosk/vosk-model/vosk-model-en-us_0.22.bb
@@ -0,0 +1,22 @@
+SUMMARY = "Lightweight wideband model 'en-us' 0.22"
+HOMEPAGE = "https://alphacephei.com/vosk/"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${WORKDIR}/models.md;beginline=32;endline=32;md5=bb5cd71a409da2b13fa3bcb67a3573d1"
+
+SRC_URI = " \
+ https://alphacephei.com/vosk/models/vosk-model-en-us-0.22.zip;name=model \
+ https://raw.githubusercontent.com/alphacep/vosk-space/master/models.md;name=license \
+ "
+# License listed on https://alphacephei.com/vosk/models
+
+SRC_URI[model.sha256sum] = "30f26242c4eb449f948e42cb302dd7a686cb29a3423a8367f99ff41780942498"
+SRC_URI[license.sha256sum] = "1ff7bf86a1243a98be7964040a7c569ade4e70f8b5e815b1edb5f3a74ca5f567"
+
+do_install() {
+ install -d ${D}/usr/share/vosk
+ cp -R ${WORKDIR}/vosk-model-en-us-0.22/ ${D}/usr/share/vosk/
+}
+
+FILES:${PN} += " /usr/share/vosk /usr/share/vosk/vosk-model-en-us-0.22 "
+
+RPROVIDES:${PN} += "virtual/vosk-model"