bunsen-tool 0.43.0

bunsen's models on the command line: speech to text (Parakeet, Qwen3-ASR, Voxtral Realtime, Whisper) and who spoke when (Sortformer), text to speech (ZONOS3, Qwen3-TTS), chat (Qwen3, Qwen3.5, Gemma, nanochat) and typed decisions (Laya). The chat driver is also a library, `bunsen_tool::chat`.
Documentation
//! `bunsen-tool text`: the command group.

mod text_normalize;
mod text_normalizers;

use bunsen::errors::BunsenResult;
pub use text_normalize::*;
pub use text_normalizers::*;

/// `bunsen-tool text`'s commands: text normalization on its own. `text
/// normalize` runs normalizers over a text; `text normalizers` lists them.
#[derive(clap::Args, Debug)]
pub struct TextCommandGroup {
    #[clap(subcommand)]
    command: TextSubCommand,
}

#[derive(clap::Subcommand, Debug)]
pub enum TextSubCommand {
    /// Normalizes a text: numbers spoken, Unicode folded, punctuation dropped.
    ///
    /// The text, from the arguments, a file or stdin, through each
    /// `--normalize` in order, to stdout; `--explain` shows each stage's
    /// output.
    Normalize(TextNormalizeCommand),

    /// The normalizers `--normalize` names, and whether this build has each.
    Normalizers(TextNormalizersCommand),
}

impl TextCommandGroup {
    /// Runs the command.
    pub fn run(&self) -> BunsenResult<()> {
        match &self.command {
            TextSubCommand::Normalize(cmd) => cmd.run(),
            TextSubCommand::Normalizers(cmd) => cmd.run(),
        }
    }
}