- Python 100%
- Vendor vosk 0.3.45 package contents and bundled libvosk - Add wheel repackaging script and update dist metadata to platypush-vosk - Add JSON output regression test and minimal build/config files |
||
|---|---|---|
| scripts | ||
| tests | ||
| vosk | ||
| .gitignore | ||
| pyproject.toml | ||
| README.md | ||
| setup.py | ||
platypush-vosk
platypush-vosk is a repackaged build of the upstream vosk==0.3.45
Python package. It keeps the upstream import package name, console entry point,
dependencies, and bundled native libvosk library, but publishes the
distribution under a different PyPI name.
This package includes the JSON transcriber fix described in
https://github.com/alphacep/vosk-api/issues/2025. The patched code changes
the JSON formatter from appending to an undefined monologue["text"] variable
to appending each transcript chunk to monologues["text"].
Install
pip install platypush-vosk
Importing remains unchanged:
from vosk import Model, KaldiRecognizer
Build the local wheel
The checked-in vosk/ package was extracted from the current upstream PyPI
wheel for Linux x86_64.
python -m pip install build
python -m build --wheel
Repackage upstream wheels
To publish wheels for all platforms supported by upstream vosk==0.3.45
without rebuilding the native library:
python scripts/repackage_wheels.py
The generated wheels are written to dist/ and are renamed to the
platypush-vosk distribution while preserving the original platform tags.