- STTBackend Protocol + STTResult/STTSegment frozen dataclasses (base.py)
- MockSTTBackend for CI/tests (no GPU needed, CF_STT_MOCK=1)
- FasterWhisperBackend: loads model once, thread-safe, VRAM estimate by model size
- app.py: FastAPI service runnable as managed process by cf-orch
POST /transcribe (multipart audio) → STTTranscribeResponse-compatible JSON
GET /health → {status, model, vram_mb}
- __init__.py: process-level singleton + transcribe() convenience fn
- pyproject.toml: stt-faster-whisper + stt-service optional dep groups
|
||
|---|---|---|
| .. | ||
| affiliates | ||
| api | ||
| config | ||
| db | ||
| documents | ||
| hardware | ||
| llm | ||
| manage | ||
| pipeline | ||
| preferences | ||
| stt | ||
| tasks | ||
| tiers | ||
| vision | ||
| wizard | ||
| __init__.py | ||