Fetching YouTube transcripts from the cloud: matching the spoken language
The developer of Linkee, a link-summarizing app, found that YouTube caption scraping worked locally but failed on cloud servers because YouTube blocks datacenter IP addresses. They switched to the Supadata transcript API, using mode=native to avoid per-minute billing for generated transcripts. A second problem appeared when a transcript came back in a translated caption language instead of the spoken one. The fix uses YouTube's Data API to determine the video's spoken language, either from the declared audio language or from the auto-generated caption track. This keeps transcripts in the language the speaker actually uses, at negligible cost within the free quota.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in