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']
This commit is contained in:
parent
4788a55643
commit
aed9d21270
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user