Skip to main content

omni_dev/
transcript.rs

1//! Transcript and caption fetching from media platforms.
2//!
3//! Provides a source-agnostic library for retrieving transcripts/captions from
4//! external media platforms (YouTube first; Vimeo, podcasts, generic VTT/SRT
5//! URLs to follow). The [`source::TranscriptSource`] trait is the extension
6//! point — concrete sources live under [`sources`], format converters under
7//! [`mod@format`], and shared value types ([`cue::Cue`], [`source::Transcript`])
8//! are reused across all sources.
9//!
10//! This module has no `clap` dependency and is reusable from other commands or
11//! external consumers.
12
13pub mod cue;
14pub mod error;
15pub mod format;
16pub mod source;
17pub mod sources;
18
19pub use cue::Cue;
20pub use error::{Result, TranscriptError};
21pub use format::Format;
22pub use source::{FetchOpts, LanguageInfo, MediaInfo, TrackKind, Transcript, TranscriptSource};