Add custom faster-whisper service with anti-hallucination params

Off-the-shelf Whisper wrappers hardcode faster-whisper defaults that
cause cascading hallucinations on real dictations (2/13 runs against
ahmetoner v1.9.1). This thin FastAPI service mirrors the /asr interface
but fixes condition_on_previous_text=False, temperature=0.0, and
vad_filter=True so the Axum server can switch by changing WHISPER_URL.
This commit is contained in:
2026-04-13 19:45:52 +02:00
parent d3ef78796d
commit 6e6cfd77b7
5 changed files with 277 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
faster-whisper==1.0.3
requests==2.32.3
fastapi==0.115.0
uvicorn[standard]==0.30.6
python-multipart==0.0.9