vad filter

This commit is contained in:
Max Bain
2023-01-20 12:54:20 +00:00
parent 78c87d3bfd
commit ba102feb7f
3 changed files with 185 additions and 12 deletions

View File

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