diff options
author | amanarora_09 <aman.arora9848@gmail.com> | 2022-07-22 15:58:23 +0200 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2022-07-28 13:58:18 +0000 |
commit | eda84d25d819824d641cf89af1e4d61a5e946744 (patch) | |
tree | 38f4b7c34a5b91257518bcbcdc6b96d24f0641b2 /meta-offline-voice-agent/recipes-vosk/vosk-server | |
parent | f206eab5753bd9ee2d5b1126c6ec5a18e75cac89 (diff) |
meta-offline-voice-agent: Enable layer for offline voice recognition
- This enables offline voice recognition in AGL
- Can successfully run vosk API and vosk websocket server
Changes:
- Create a new layer: meta-offline-voice-recognition
- Create recipes for the the Vosk library, API, websocket server and model
- Create feature template for the layer (agl-offline-voice-agent)
- Add all required packages to IMAGE_INSTALL
- ptest enable recipe python3-vosk-api
- Few fixes
Bug-AGL: SPEC-4497
Change-Id: Icb290ceee22e2c3a51cbd67f7431701795f1201b
Signed-off-by: amanarora_09 <aman.arora9848@gmail.com>
Diffstat (limited to 'meta-offline-voice-agent/recipes-vosk/vosk-server')
-rw-r--r-- | meta-offline-voice-agent/recipes-vosk/vosk-server/vosk-server_git.bb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-offline-voice-agent/recipes-vosk/vosk-server/vosk-server_git.bb b/meta-offline-voice-agent/recipes-vosk/vosk-server/vosk-server_git.bb new file mode 100644 index 00000000..337cee46 --- /dev/null +++ b/meta-offline-voice-agent/recipes-vosk/vosk-server/vosk-server_git.bb @@ -0,0 +1,32 @@ +DESCRIPTION = "WebSocket, gRPC and WebRTC speech recognition server based on Vosk and Kaldi libraries" +SUMMARY = "This is a server for highly accurate offline speech recognition using Kaldi and Vosk-API." +HOMEPAGE = "https://github.com/alphacep/vosk-server" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://COPYING;md5=d09bbd7a3746b6052fbd78b26a87396b" + +SRC_URI = "git://github.com/alphacep/vosk-server;protocol=https;branch=master" + +PV = "1.0+git${SRCPV}" +SRCREV = "70f3d5321a40f2f5dffe9c833bc1fac4b3b451e7" + +S = "${WORKDIR}/git" + +DEPENDS = "python3-vosk-api openblas vosk boost" + +do_configure () { + : +} + +do_compile () { + # websocket-cpp + cd websocket-cpp + ${CXX} -I${STAGING_INCDIR}/vosk -lvosk ${LDFLAGS} -o vosk-websocket-cpp asr_server.cpp +} + +do_install () { + # websocket-cpp + install -d ${D}${bindir} + cp websocket-cpp/vosk-websocket-cpp ${D}${bindir} +} + +RDEPENDS:${PN} += "virtual/vosk-model"
\ No newline at end of file |