Skip to main content

Module transcript

Module transcript 

Source
Expand description

Transcript and caption fetching from media platforms.

Provides a source-agnostic library for retrieving transcripts/captions from external media platforms (YouTube first; Vimeo, podcasts, generic VTT/SRT URLs to follow). The source::TranscriptSource trait is the extension point — concrete sources live under sources, format converters under format, and shared value types (cue::Cue, source::Transcript) are reused across all sources.

This module has no clap dependency and is reusable from other commands or external consumers.

Re-exports§

pub use cue::Cue;
pub use detect::detect;
pub use error::Result;
pub use error::TranscriptError;
pub use format::Format;
pub use source::FetchOpts;
pub use source::LanguageInfo;
pub use source::MediaInfo;
pub use source::TrackKind;
pub use source::Transcript;
pub use source::TranscriptSource;

Modules§

cue
The Cue value type — a single timed text segment.
detect
Source auto-detection: map a locator to the source that recognises it.
error
Error types for transcript operations.
format
Source-agnostic transcript output formats.
source
The TranscriptSource trait and its supporting value types.
sources
Concrete TranscriptSource implementations, one per media platform.