A FastAPI-based Whisper transcription service compatible with OpenAI's API.
pip install -r requirements.txtStart the server:
python app.pyOr with uvicorn:
uvicorn app:app --host 0.0.0.0 --port 5000Transcribe audio file to text.
Request:
file: Audio file (multipart/form-data)model: Model name (optional, default: "whisper-1")
Response:
{
"text": "Transcription text here..."
}Using curl:
curl -X POST "http://localhost:5000/v1/audio/transcriptions" \
-H "Content-Type: multipart/form-data" \
-F "file=@audio.wav" \
-F "model=whisper-1"