Menu

Are YouTube's auto-generated captions accurate enough to quote?
📰

Are YouTube's auto-generated captions accurate enough to quote?

DEV Community: rust·Hanako H.·14 days ago
#kZeF3eFV
#devtorust#devto#dev#tracks#track
Reading 0:00
15s threshold

Most YouTube videos have a transcript, and for most of them it was written by speech recognition. That's fine for following along. For a quote in a paper, a news story or a legal note, the question is how far the automatic text is from what was said, and whether its timestamps point at the right second. One video with both kinds of captions gives a direct answer.

The video is NASA's upload of President Kennedy's 1962 speech at Rice University ( WZyRbnpGyzQ , 18 minutes). It carries two English tracks: one written by a person and one generated by YouTube. Both can be listed and downloaded with the youtube-transcript-api Python package:

from youtube_transcript_api import YouTubeTranscriptApi

tracks = YouTubeTranscriptApi (). list ( " WZyRbnpGyzQ " ) for t in tracks : print ( t . language_code , t . is_generated , t . language ) # en False English - Caption # en True English (auto-generated) manual = tracks . find_manually_created_transcript ([ " en " ]). fetch (). to_raw_data () auto = tracks .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.