Python bindings for whisper.cpp
Go to file
Jan Beckmann 6b93f9aa85
Fix wrong model key in __init__
7be71f8fe7 changed the MODELS dict to download the models from HuggingFace. It also changed the keys used for the dict, but didn't change the way the keys are derived from the model name.
2022-12-26 14:04:58 +01:00
.github/workflows Update build_wheels.yml 2022-12-14 16:21:17 +00:00
whisper.cpp@1d716d6e34 updated submodule 2022-12-18 22:28:08 +00:00
.gitignore Added git ignore. 2022-12-11 00:09:45 +00:00
.gitmodules Added whisper.cpp submodule 2022-12-10 23:29:58 +00:00
pyproject.toml Create pyproject.toml 2022-12-12 18:22:49 +00:00
README.md Update README.md 2022-12-11 09:18:36 +00:00
setup.py Explicit C11 2022-12-25 06:48:56 +00:00
whispercpp.pxd update 2022-12-11 06:02:45 +00:00
whispercpp.pyx Fix wrong model key in __init__ 2022-12-26 14:04:58 +01:00

Python bindings for whisper.cpp

pip install git+https://github.com/o4dev/whispercpp.py

from whispercpp import Whisper

w = Whisper('tiny')

result = w.transcribe("myfile.mp3")
text = w.extract_text(result)

Note: default parameters might need to be tweaked. See Whispercpp.pyx.