multilingual init

This commit is contained in:
Max Bain
2022-12-18 12:21:24 +00:00
parent 59a390d868
commit 45e9509227
16 changed files with 973 additions and 17 deletions

View File

@ -192,9 +192,10 @@ def write_ass(transcript: Iterator[dict], file: TextIO,
for segment in transcript:
curr_words = [wrd['text'] for wrd in segment['word-level']]
prev = segment['word-level'][0]['start']
if prev is None:
prev = 0
for wdx, word in enumerate(segment['word-level']):
if word['start'] is not None:
# fill gap between previous word
if word['start'] > prev:
filler_ts = {