Files
whisper-remote/backend/README.md

24 lines
541 B
Markdown

# whisper-remote-backend
FastAPI wrapper around the upstream `whisper` CLI from `openai/whisper`.
## Run
```bash
pip install -e .
uvicorn whisper_remote_backend.server:app --host 0.0.0.0 --port 8000
```
## API
`POST /transcriptions`
Multipart form fields:
- `file`: media file
- `model`: Whisper model name
- `language`: optional language code
- `output_format`: `txt`, `vtt`, `srt`, `tsv`, or `json`
The response body is the transcript artifact itself. The backend deletes the uploaded file and generated output after each request.