20 lines
516 B
Markdown
20 lines
516 B
Markdown
Python bindings for whisper.cpp
|
|
===============================
|
|
|
|
<a href="https://www.buymeacoffee.com/lukeFxC" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>
|
|
|
|
---
|
|
`pip install git+https://github.com/stlukey/whispercpp.py`
|
|
|
|
```python
|
|
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.
|