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

use bunsen::errors::BunsenResult;

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

/// Transcribes audio files with a preset's model for files.
///
/// 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. `--json` records
/// the preset and its recipe with each transcript.
#[derive(clap::Args, Debug)]
pub struct AsrTranscribeCommand {
    #[clap(flatten)]
    pub preset: AsrConstructArgs,

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

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