task to direct-english-translation

This commit is contained in:
Quentin Fuxa
2025-11-10 13:20:26 +01:00
parent 5491dbd824
commit 16461052ed
6 changed files with 13 additions and 30 deletions

View File

@@ -114,11 +114,10 @@ def parse_args():
help="Source language code, e.g. en,de,cs, or 'auto' for language detection.",
)
parser.add_argument(
"--task",
type=str,
default="transcribe",
choices=["transcribe", "translate"],
help="Transcribe or translate.",
"--direct-english-translation",
action="store_true",
default=False,
help="Use Whisper to directly translate to english.",
)
parser.add_argument(