Added a limit to the number of characters per subtitle line
This commit is contained in:
parent
f455f95ce0
commit
365a66bdfa
@ -64,7 +64,7 @@ def _whisper_processor(inqueue,
|
||||
vttWriter = whisper.utils.WriteVTT(str(outpath.parent))
|
||||
vttWriter.always_include_hours = True
|
||||
with open(outpath, 'w') as f:
|
||||
vttWriter.write_result(result, f, {'max_line_width': None,
|
||||
vttWriter.write_result(result, f, {'max_line_width': 42,
|
||||
'max_line_count': 3,
|
||||
'max_words_per_line': 15,
|
||||
'highlight_words': False})
|
||||
|
Loading…
x
Reference in New Issue
Block a user