Vaibhavs10 / insanely-fast-whisper

Apache License 2.0
6.94k stars 505 forks source link

Add Script to Convert output.json to .srt Format #176

Closed Orion-Zheng closed 4 months ago

Orion-Zheng commented 5 months ago

.srt is a very common subtitle format. With an .srt file, we can use the generated subtitles in most video editing software. I wrote a simple script to convert the 'chunks' attribute in the output.json format into an .srt file. It has been tested and works.😃 A simple example is python convert_srt.py output.json -o my_caption.srt