blob: b0efcae00d5213f12e782491a4d145a47104225e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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"
|