Files
zeekay b2167f8482 feat(asr): serve qwen3-asr transcribe via /v1/audio/transcriptions
Wire the existing Qwen3-ASR transcribe pipeline (speech_models/qwen3_asr)
end-to-end through the serve path as a new Audio modality:

- pipeline/asr.rs: AsrLoader + AsrPipeline (ModelCategory::Audio), mirrors the
  TTS SpeechLoader loading shape and the AnimationInputsProcessor audio-gather.
- auto loader detects qwen3-asr (name-gated) so `hanzo serve -m <asr-model>`
  loads it; AsrLoaderType::auto_detect_from_config hardened against Omni/VL.
- RequestMessage::AudioTranscription + ForwardInputsResult::Transcription +
  Response::Transcription + sequence storage + send helper (one-shot, DRY with
  Speech/Frames plumbing).
- /v1/audio/transcriptions route (OpenAI-compatible): multipart file upload OR
  JSON base64, decode via symphonia, transcribe(), return {text}.
- Fix stale 'mel frontend TODO' comment in qwen3_asr/mod.rs (implemented).

Tests: 4 axum route tests (real multipart + base64 extractors) pass; the
qwen3_asr_e2e transcribe test still compiles+passes (weight-gated).
2026-07-10 14:09:28 -07:00
..

hanzo-audio

This crate provides audio utilities for hanzo similar to how hanzo-vision supplies vision helpers. It includes structures and functions for reading audio, resampling, channel handling and computing mel spectrogram features.

Documentation: https://docs.rs/hanzo-audio/