Is there a command line switch to disable the generation of timestamps? #1320
Answered
by
jongwook
Robert-K-S
asked this question in
Q&A
-
Or, if not, can I mention this as a feature request? |
Beta Was this translation helpful? Give feedback.
Answered by
jongwook
May 5, 2023
Replies: 1 comment
-
If you're referring to the If you're only interested in short audio segments (shorter than 30s), you can use Lines 107 to 108 in 248b6cb |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jongwook
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you're referring to the
<|notimestamps|>
token, the command line interface (and thetranscribe()
function) does not have an option to do so because it uses the timestamps to determine the next 30-second window to run transcription.If you're only interested in short audio segments (shorter than 30s), you can use
decode()
withwithout_timestamps=True
:whisper/whisper/decoding.py
Lines 107 to 108 in 248b6cb