Metadata-Version: 2.4
Name: platypush-vosk
Version: 0.3.45.post1
Summary: Repackaged Vosk with JSON transcriber fix and other patches for Platypush
Home-page: https://github.com/alphacep/vosk-api
Author: Alpha Cephei Inc
Author-email: contact@alphacephei.com
Maintainer: Fabio Manganiello <fabio@manganiello.tech>
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3
Description-Content-Type: text/markdown
Requires-Dist: cffi>=1.0
Requires-Dist: requests
Requires-Dist: tqdm
Requires-Dist: srt
Requires-Dist: websockets
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: maintainer
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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

```bash
pip install platypush-vosk
```

Importing remains unchanged:

```python
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.

```bash
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:

```bash
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.
