From aed9d21270bfc3f6c59dd9d23c1b38ceb6a25e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastjan=20Arti=C4=8D?= Date: Wed, 29 Apr 2026 18:53:47 +0000 Subject: [PATCH] Add hybrid+gemini to whisper-provider argparse choices Bug: PA PA reel showed argparse error: invalid choice: 'hybrid' (choose from 'auto', 'elevenlabs', 'local') When user/system passes whisper_provider='hybrid' via API, the analyze.py CLI rejected it because argparse choices were not updated when the new hybrid mode was added to transcribe_full(). Fix: extend choices to ['auto', 'elevenlabs', 'local', 'hybrid', 'gemini'] --- scripts/analyze.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/analyze.py b/scripts/analyze.py index 8b080a0..40c3b1c 100644 --- a/scripts/analyze.py +++ b/scripts/analyze.py @@ -1588,9 +1588,13 @@ def main(): ap.add_argument("--filename-hint", default=None, help="Originalno ime datoteke (Claude lahko prepozna pesem)") ap.add_argument("--whisper-provider", default="auto", - choices=["auto", "elevenlabs", "local"], - help="STT provider: elevenlabs=ElevenLabs Scribe (najboljša kvaliteta, $0.40/h), " - "local=faster-whisper CPU (brezplačno, halucinacije), auto=Scribe če key, sicer local") + choices=["auto", "elevenlabs", "local", "hybrid", "gemini"], + help="STT provider: " + "elevenlabs=Scribe ($0.013/song, hitro, halucinacije pri NZ), " + "gemini=Gemini 3 Pro ($0.20/song, počasno, brez halucinacij), " + "hybrid=Scribe + Gemini fallback (priporočeno), " + "local=faster-whisper CPU, " + "auto=hybrid če oba ključa, sicer elevenlabs") ap.add_argument("--json", action="store_true", help="Output JSON") ap.add_argument("--output", help="Path za JSON output") args = ap.parse_args()