Find a file
Fabio Manganiello 1d432f3a43
feat: Add platypush-vosk repackaging with JSON transcriber fix
- 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
2026-06-07 23:12:06 +02:00
scripts feat: Add platypush-vosk repackaging with JSON transcriber fix 2026-06-07 23:12:06 +02:00
tests feat: Add platypush-vosk repackaging with JSON transcriber fix 2026-06-07 23:12:06 +02:00
vosk feat: Add platypush-vosk repackaging with JSON transcriber fix 2026-06-07 23:12:06 +02:00
.gitignore feat: Add platypush-vosk repackaging with JSON transcriber fix 2026-06-07 23:12:06 +02:00
pyproject.toml feat: Add platypush-vosk repackaging with JSON transcriber fix 2026-06-07 23:12:06 +02:00
README.md feat: Add platypush-vosk repackaging with JSON transcriber fix 2026-06-07 23:12:06 +02:00
setup.py feat: Add platypush-vosk repackaging with JSON transcriber fix 2026-06-07 23:12:06 +02:00

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.