Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Commits
a0d364e0
Commit
a0d364e0
authored
1 year ago
by
Bart Ribbers
Browse files
Options
Downloads
Patches
Plain Diff
testing/vosk-api: enable Python bindings
parent
8828cdc9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!48241
testing/vosk-api: enable Python bindings
Pipeline
#168490
failed
1 year ago
Stage: verify
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testing/vosk-api/APKBUILD
+30
-2
30 additions, 2 deletions
testing/vosk-api/APKBUILD
with
30 additions
and
2 deletions
testing/vosk-api/APKBUILD
+
30
−
2
View file @
a0d364e0
...
...
@@ -2,7 +2,7 @@
# Maintainer: John Gebbie <me@johngebbie.com>
pkgname
=
vosk-api
pkgver
=
0.3.45
pkgrel
=
2
pkgrel
=
3
_kaldi
=
93ef0019b847272a239fbb485ef97f29feb1d587
pkgdesc
=
"Offline speech recognition toolkit"
url
=
"https://alphacephei.com/vosk"
...
...
@@ -14,9 +14,13 @@ makedepends="
libgfortran
openblas-dev
openfst-dev
py3-cffi
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends
=
"vosk-model-small-en-us"
subpackages
=
"
$pkgname
-dev"
subpackages
=
"
$pkgname
-dev
py3-
$pkgname
:_py3:noarch
"
source
=
"https://github.com/alphacep/vosk-api/archive/v
$pkgver
/vosk-api-
$pkgver
.tar.gz
kaldi-
$_kaldi
.tar.gz::https://github.com/alphacep/kaldi/archive/
$_kaldi
.tar.gz
kaldi-to-openblas-0.3.21.patch.noauto
...
...
@@ -59,11 +63,21 @@ build() {
USE_SHARED_MATH
=
1
\
HAVE_OPENBLAS
=
1
\
HAVE_OPENBLAS_CLAPACK
=
0
cd
"
$builddir
/python"
gpep517 build-wheel
\
--wheel-dir
.dist
\
--output-fd
3 3>&1
>
&2
python3 vosk_builder.py
}
package
()
{
install
-Dm644
src/vosk_api.h
-t
"
$pkgdir
"
/usr/include
install
-Dm644
src/libvosk.so
-t
"
$pkgdir
"
/usr/lib
cd
"
$builddir
/python"
python3
-m
installer
-d
"
$pkgdir
"
\
.dist/
*
.whl
}
check
()
{
...
...
@@ -74,6 +88,20 @@ check() {
./test_vosk |
grep
-q
'"text" : "zero one eight zero three"'
}
_py3
()
{
depends
=
"
$pkgname
py3-requests
py3-srt
py3-tqdm
py3-webvtt
"
amove usr/lib/python3.11
mv
"
$builddir
"
/python/vosk/vosk_cffi.py
"
$subpkgdir
"
/usr/lib/python3.11/site-packages/vosk/
rm
"
$subpkgdir
"
/usr/lib/python3.11/site-packages/vosk/libvosk.so
ln
-s
/usr/lib/libvosk.so
"
$subpkgdir
"
/usr/lib/python3.11/site-packages/vosk/libvosk.so
}
sha512sums
=
"
cf55ddb4abf078c1a16a5ae149d3ac141da9fd88ccd9bed018df5f5c0fd489517ffe0a1dc9b20b4f5b07738cfac771f9c08637c9e92e8d494727124b76772eb1 vosk-api-0.3.45.tar.gz
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment