scribble 0.5.4

High-level Rust API for audio transcription using Whisper
Documentation
/// The supported output formats for encoded transcription segments.
///
/// Why this exists:
/// - A single, strongly-typed representation of output formats across the CLI and library code.
/// - Using an enum avoids stringly-typed conditionals and keeps format
///   selection explicit and discoverable.
///
/// Integration notes:
/// - When the `cli` feature is enabled, derives `clap::ValueEnum` so the enum can be used
///   directly as a CLI flag.
/// - Each variant maps to a concrete `SegmentEncoder` implementation.
#[derive(Debug, Clone)]
#[cfg_attr(feature = "cli", derive(clap::ValueEnum))]
pub enum OutputType {
    /// Output segments as a JSON array.
    Json,

    /// Output segments in WebVTT subtitle format.
    Vtt,
}