Skip to content

Commit

Permalink
Small fix of time format for docx.
Browse files Browse the repository at this point in the history
  • Loading branch information
bond005 committed Sep 21, 2024
1 parent f4f7ffb commit d097f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speech_to_docx.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def main():

doc = Document()
for start_time, end_time, sentence_text in texts_with_timestamps:
line = f'{start_time:.2f} - {end_time:.2f} - {sentence_text}'
line = f'{time_to_str(start_time)} - {time_to_str(end_time)} - {sentence_text}'
doc.add_paragraph(line)
doc.add_paragraph('')
doc.save(output_docx_fname)
Expand Down

0 comments on commit d097f15

Please sign in to comment.