Add whisper remote backend and CLI

This commit is contained in:
2026-05-24 12:36:24 +02:00
parent ad10a62ae6
commit aa89590555
12 changed files with 445 additions and 0 deletions

23
backend/README.md Normal file
View File

@@ -0,0 +1,23 @@
# 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.