You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: whisper/transcribe.py
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -256,7 +256,9 @@ def cli():
256
256
parser.add_argument("--device", default="cuda"iftorch.cuda.is_available() else"cpu", help="device to use for PyTorch inference")
257
257
parser.add_argument("--output_dir", "-o", type=str, default=".", help="directory to save the outputs")
258
258
parser.add_argument("--verbose", type=str2bool, default=True, help="whether to print out the progress and debug messages")
259
-
259
+
260
+
parser.add_argument("--max_line_length", type=optional_int, default=42, help="max amount of characters for a line in the subtitle files")
261
+
260
262
parser.add_argument("--task", type=str, default="transcribe", choices=["transcribe", "translate"], help="whether to perform X->X speech recognition ('transcribe') or X->English translation ('translate')")
261
263
parser.add_argument("--language", type=str, default=None, choices=sorted(LANGUAGES.keys()) +sorted([k.title() forkinTO_LANGUAGE_CODE.keys()]), help="language spoken in the audio, specify None to perform language detection")
0 commit comments