Skip to content

Commit 9993d15

Browse files
committed
Add missing include and add rockspec
1 parent 523bb6f commit 9993d15

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

rockspecs/lua-vosk-1.3-6.rockspec

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
package = 'lua-vosk'
2+
version = '1.3-6'
3+
4+
source = {
5+
url = 'git+https://github.com/igor725/lua-vosk',
6+
tag = 'v1.3-6'
7+
}
8+
9+
description = {
10+
summary = 'Vosk binding for Lua.',
11+
detailed = [[
12+
Vosk is an offline open source speech recognition toolkit.
13+
It enables speech recognition for 20+ languages and dialects -
14+
English, Indian English, German, French, Spanish, Portuguese,
15+
Chinese, Russian, Turkish, Vietnamese, Italian, Dutch, Catalan,
16+
Arabic, Greek, Farsi, Filipino, Ukrainian, Kazakh, Swedish,
17+
Japanese, Esperanto, Hindi, Czech, Polish.
18+
19+
This library implements easy to use interface for Vosk API.
20+
]],
21+
homepage = 'https://github.com/igor725/lua-vosk',
22+
license = 'MIT'
23+
}
24+
25+
dependencies = {
26+
'lua >= 5.1'
27+
}
28+
29+
build = {
30+
type = 'builtin',
31+
modules = {
32+
luavosk = {
33+
sources = {
34+
'src/luamodel.c', 'src/luarecognizer.c',
35+
'src/luaspkmodel.c', 'src/main.c',
36+
'src/voskbridge.c'
37+
},
38+
defines = {
39+
'VOSK_ENABLE_JSON'
40+
}
41+
}
42+
}
43+
}

src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <lauxlib.h>
99
#include <lua.h>
10+
#include <stdint.h>
1011

1112
int _experimental = 0;
1213

0 commit comments

Comments
 (0)