-
Download Python 3.10, FFmpeg and Whisper
pip install git+https://github.com/openai/whisper.git
-
Clone the repo
git clone https://github.com/Theyka/python-whisper-api.git
-
Install python libraries
pip install -r requirements.txt
-
Start python code
python main.py
import requests
with open('audio.mp3', 'rb') as f:
r = requests.post('http://localhost/whisper', files={'audio': f})
print(r.text)