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
//! `asr family`: the command group.

mod asr_kit_command_group;
mod asr_whisper_command_group;

pub use asr_kit_command_group::*;
pub use asr_whisper_command_group::*;
use bunsen::errors::BunsenResult;

use crate::asr::{
    AsrFamily,
    parakeet::ParakeetFlags,
    qwen3_asr::Qwen3AsrFlags,
    voxtral::VoxtralFlags,
};

/// The model families' commands.
#[derive(clap::Args, Debug)]
pub struct AsrFamilyCommandGroup {
    #[command(subcommand)]
    family: AsrFamilySubCommand,
}

/// The model families, each with its own `list` and `transcribe`.
#[derive(clap::Subcommand, Debug)]
enum AsrFamilySubCommand {
    /// NVIDIA's Parakeet TDT: `FermionResearch`'s Phonon-2 by default.
    Parakeet(AsrKitCommandGroup<ParakeetFlags>),

    /// Qwen's Qwen3-ASR: `FermionResearch`'s Phonon-1 by default.
    #[command(name = "qwen3-asr")]
    Qwen3Asr(AsrKitCommandGroup<Qwen3AsrFlags>),

    /// Mistral's Voxtral Realtime: `mistralai/voxtral-mini-4b-realtime-2602`
    /// by default.
    Voxtral(AsrKitCommandGroup<VoxtralFlags>),

    /// `OpenAI`'s Whisper: `openai/base` by default.
    Whisper(AsrWhisperCommandGroup),
}

impl AsrFamilyCommandGroup {
    pub fn run(&self) -> BunsenResult<()> {
        match &self.family {
            AsrFamilySubCommand::Parakeet(cmd) => cmd.run(AsrFamily::Parakeet),
            AsrFamilySubCommand::Qwen3Asr(cmd) => cmd.run(AsrFamily::Qwen3Asr),
            AsrFamilySubCommand::Voxtral(cmd) => cmd.run(AsrFamily::Voxtral),
            AsrFamilySubCommand::Whisper(cmd) => cmd.run(),
        }
    }
}