Skip to content

HazelnutParadise/whisper-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whisper-api

A FastAPI-based Whisper transcription service compatible with OpenAI's API.

Installation

pip install -r requirements.txt

Usage

Start the server:

python app.py

Or with uvicorn:

uvicorn app:app --host 0.0.0.0 --port 5000

API

POST /v1/audio/transcriptions

Transcribe audio file to text.

Request:

  • file: Audio file (multipart/form-data)
  • model: Model name (optional, default: "whisper-1")

Response:

{
  "text": "Transcription text here..."
}

Example

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"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published