获取视频字幕/Get video subtitles

YouTubeapi

About

获取视频字幕/Get video subtitles

Documentation

获取视频字幕/Get video subtitles

[中文]

用途:

  • 获取视频字幕内容

使用流程:

  1. 先调用获取视频详情接口,从字幕数据中获取subtitleUrl
  2. 使用该URL作为本接口参数

参数说明:

  • fix_overlap: 特别适用于自动生成的字幕,会自动分割重叠的时间段

[English]

Purpose:

  • Get video subtitle content

Workflow:

  1. First call get_video_info to obtain subtitleUrl
  2. Use that URL as parameter here

Parameter Notes:

  • fix_overlap: Especially useful for auto-generated subtitles, will split overlapping time ranges

[示例/Example]

subtitle_url = "https://www.youtube.com/api/timedtext?v=G33j5Qi4rE8..." target_lang = "zh-CN"

Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.

Try 获取视频字幕/Get video subtitles

Test this model in the Sandbase Playground with your own prompts.

Open in Playground

Related Models