/plushcap/analysis/assemblyai/create-vtt-files-for-videos-python

How to Create VTT Files for Videos in Python

What's this blog post about?

This guide teaches how to create VTT (.vtt) files for videos using Python. A VTT file is a text format containing supplementary information such as subtitles or captions, commonly used for video subtitles. The syntax closely resembles that of SRT files but with some differences. To generate VTT files in Python, the AssemblyAI Python SDK and an AssemblyAI API key are required. The code demonstrates how to transcribe a YouTube video and convert the transcription into a VTT file. The captions can be limited to a specified maximum number of characters per caption by using the chars_per_caption parameter.

Company
AssemblyAI

Date published
Dec. 15, 2023

Author(s)
Patrick Loeber

Word count
832

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.