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 live`.

use bunsen::errors::BunsenResult;

use crate::asr::{
    AsrConstructArgs,
    AsrLiveIo,
    Mode,
    with_flags,
};

/// Transcribes the microphone, as it speaks, with a preset's model for
/// the microphone.
///
/// The preset picks the family, the model and when to decode; `--model`,
/// `--emission` and `--vad` change them, `presets show` prints them, and `-v`
/// logs them as the `bunsen-tool asr family` command they are.
#[derive(clap::Args, Debug)]
pub struct AsrLiveCommand {
    #[clap(flatten)]
    pub preset: AsrConstructArgs,

    #[clap(flatten)]
    pub io: AsrLiveIo,
}

impl AsrLiveCommand {
    pub fn run(&self) -> BunsenResult<()> {
        self.io.init_logging()?;
        let resolved = self.preset.resolve(Mode::Live)?;
        with_flags!(resolved.family, flags => self.io.run(
            resolved.family,
            &resolved.model,
            &flags,
            &resolved.streaming(),
        ))
    }
}