Skip to content

Commit 21a4d4c

Browse files
authored
Update whisper command line help mentioning --word-timestamps (#1390)
1 parent 8e4391c commit 21a4d4c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

whisper/mlx_whisper/cli.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,42 +156,42 @@ def str2bool(string):
156156
"--prepend-punctuations",
157157
type=str,
158158
default="\"'“¿([{-",
159-
help="If word-timestamps is True, merge these punctuation symbols with the next word",
159+
help="If --word-timestamps is True, merge these punctuation symbols with the next word",
160160
)
161161
parser.add_argument(
162162
"--append-punctuations",
163163
type=str,
164164
default="\"'.。,,!!??::”)]}、",
165-
help="If word_timestamps is True, merge these punctuation symbols with the previous word",
165+
help="If --word-timestamps is True, merge these punctuation symbols with the previous word",
166166
)
167167
parser.add_argument(
168168
"--highlight-words",
169169
type=str2bool,
170170
default=False,
171-
help="(requires --word_timestamps True) underline each word as it is spoken in srt and vtt",
171+
help="(requires --word-timestamps True) underline each word as it is spoken in srt and vtt",
172172
)
173173
parser.add_argument(
174174
"--max-line-width",
175175
type=int,
176176
default=None,
177-
help="(requires --word_timestamps True) the maximum number of characters in a line before breaking the line",
177+
help="(requires --word-timestampss True) the maximum number of characters in a line before breaking the line",
178178
)
179179
parser.add_argument(
180180
"--max-line-count",
181181
type=int,
182182
default=None,
183-
help="(requires --word_timestamps True) the maximum number of lines in a segment",
183+
help="(requires --word-timestamps True) the maximum number of lines in a segment",
184184
)
185185
parser.add_argument(
186186
"--max-words-per-line",
187187
type=int,
188188
default=None,
189-
help="(requires --word_timestamps True, no effect with --max_line_width) the maximum number of words in a segment",
189+
help="(requires --word-timestamps True, no effect with --max-line-width) the maximum number of words in a segment",
190190
)
191191
parser.add_argument(
192192
"--hallucination-silence-threshold",
193193
type=optional_float,
194-
help="(requires --word_timestamps True) skip silent periods longer than this threshold (in seconds) when a possible hallucination is detected",
194+
help="(requires --word-timestamps True) skip silent periods longer than this threshold (in seconds) when a possible hallucination is detected",
195195
)
196196
parser.add_argument(
197197
"--clip-timestamps",

0 commit comments

Comments
 (0)