class

Yt::Models::Transcript

Inherits JSON::Serializable < Reference < Object

Represents the full transcript of a video.

Constructors

new(video_id : String, language : String, segments : Array(TranscriptSegment) = [] of TranscriptSegment)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

language
Source
language=(language : String)
Source
segments
Source
segments=(segments : Array(TranscriptSegment))
Source
to_srt

Format as SubRip (SRT) subtitle file

Source
to_text

Plain text without timestamps

Source
to_timestamped_text

Text with timestamp markers, e.g. [00:04] Hello world

Source
to_vtt

Format as WebVTT subtitle file

Source
video_id
Source
video_id=(video_id : String)
Source