Add whisper remote backend and CLI
This commit is contained in:
23
backend/README.md
Normal file
23
backend/README.md
Normal 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.
|
||||
Reference in New Issue
Block a user