aha 0.2.5

aha model inference library, now supports Qwen(2.5VL/3/3VL/3.5/ASR/3Embedding/3Reranker), MiniCPM4, VoxCPM/1.5, DeepSeek-OCR/2, Hunyuan-OCR, PaddleOCR-VL/1.5, RMBG2.0, GLM(ASR-Nano-2512/OCR), Fun-ASR-Nano-2512, LFM(2/2.5/2VL/2.5VL)
Documentation
use serde::Deserialize;

#[derive(Debug, Clone, PartialEq, Deserialize)]
pub struct FeatureExtractor {
    pub chunk_length: usize,
    pub dither: f64,
    pub feature_size: usize,
    pub hop_length: usize,
    pub n_fft: usize,
    pub n_samples: usize,
    pub nb_max_frames: usize,
    pub padding_side: String,
    pub padding_value: f32,
    pub return_attention_mask: bool,
    #[serde(default = "default_sampling_rate")]
    pub sampling_rate: usize,
}

fn default_sampling_rate() -> usize {
    16000
}