Python bindings for whisper.cpp
Go to file
2022-12-25 06:52:48 +00:00
.github/workflows
whisper.cpp@1d716d6e34 updated submodule 2022-12-18 22:28:08 +00:00
.gitignore
.gitmodules
pyproject.toml
README.md
setup.py Explicit C11 2022-12-25 06:48:56 +00:00
whispercpp.pxd
whispercpp.pyx Fix model_exists 2022-12-25 06:52:48 +00: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.