whisper-streaming
Providing easy-to-use and extensible STT (Speech-To-Text) implementation with Whisper-like ASR ( Automatic Speech Recognition) models.
Index
Appreciation
This project is the result of a rework of the ideas and prototype implementation created by Dominik Macháček, Raj Dabre, Ondřej Bojar (Original Repository). It is neither official nor fully API- and function-compatible with its original implementation.
Please have a look at their publication: ACL Anthology Bibtex citation
@inproceedings{machacek-etal-2023-turning,
title = "Turning Whisper into Real-Time Transcription System",
author = "Mach{\'a}{\v{c}}ek, Dominik and
Dabre, Raj and
Bojar, Ond{\v{r}}ej",
editor = "Saha, Sriparna and
Sujaini, Herry",
booktitle = "Proceedings of the 13th International Joint Conference on Natural Language Processing and the 3rd Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics: System Demonstrations",
month = nov,
year = "2023",
address = "Bali, Indonesia",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2023.ijcnlp-demo.3",
pages = "17--24",
}
With the usage of this project, you agree to the license terms, found in the License chapter. This project is not affiliated with the paper, original implementation or their authors. It is just reimplementing their ideas in a more modern und easier to use and adapt way, respecting the license agreement.
Components
Backend
Currently following backends are implemented:
Receiver
"Receiver" are mechanisms to input data into the ASR model. Out-of-the-box support for:
- ALSA (Advanced Linux Sound Architecture)
- File - Audio file
Sender
"Sender" are mechanisms to output data out of the ASR mode. Out-of-the-box support for:
- Print - Simple console output via "print"
- WebSocket (Client) - Output via network protocol
Installation
This library can be easily installed with pip:
pip install whisper-streaming
The integration of different backends are installed via following extras:
- [all] - installs all backends
- [faster-whisper] - Faster-Whisper
Development
Installation of Prerequisites
- Python 3 (latest) (https://www.python.org/downloads)
- Python venv (optional, recommended) GoTo Installation
- Installation of development requirements:
pip install -r requirements/dev/requirements.txt
- Installation of requirements:
pip install -r requirements/library/requirements.txt
- backend requirements:
pip install -r requirements/library/requirements_faster_whisper.txt
Build executables
python3 -m build
Documentation
Installation of Prerequisites
- Python 3 (latest) (https://www.python.org/downloads)
- Python venv (optional, recommended) GoTo Installation
- Installation of requirements:
pip install -r requirements/docs/requirements.txt
Build
rm -rf docs/_build
sphinx-build -M html docs/ docs/_build
If the developer documentation should be built, the following script can be used:
rm -rf docs/_build
sphinx-build -M html docs/ docs/_build -t Internal
License
This project is published under Apache License, Version 2.0 - please comply with it, if you use/modify/distribute it. The license can be found in "LICENSE". The original implementation is published under MIT and is mentioned at places in this project where it still applies. The license can be found in "LICENSE-MIT". You have to distribute at least these both licenses - in addition to your compliant license.
Appendix
Python venv
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip setuptools
Links
Metadata
Release files for whisper-streaming 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| whisper_streaming-0.1.0.tar.gz | 18.9 kB | Without provenance | Details for whisper_streaming-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| whisper_streaming-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for whisper_streaming-0.1.0-py3-none-any.whl |
Total release size: 43.0 kB
Release files / whisper_streaming-0.1.0.tar.gz
| Download URL | whisper_streaming-0.1.0.tar.gz |
|---|---|
| Size | 18.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60ff4413a2402833ac5f5bd9dbdd7e5dad8adee0846dc26430cc06913b10b572
|
|
BLAKE2b-256 checksum How to use checksums |
0bccf9ae3b024354e5f52dc32bf153a968e8350192c1a8091b45cd8ef5784b48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Release files / whisper_streaming-0.1.0-py3-none-any.whl
| Download URL | whisper_streaming-0.1.0-py3-none-any.whl |
|---|---|
| Size | 24.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c57735bbae0369bdd895265ec2b9bc841a81c0a1431adc0f93f0a758b1d1178
|
|
BLAKE2b-256 checksum How to use checksums |
e10c2bbca91b5039c6b407f4265665f0e8a0a74811c006d2d88778f5d8ae2861
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Security for whisper-streaming 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.