Clean up config and model paths

This commit is contained in:
Quentin Fuxa 2026-01-10 11:42:00 +01:00
parent 74c4dc791d
commit 83362c89c4
3 changed files with 57 additions and 57 deletions

View file

@ -1,6 +1,6 @@
"""Typed configuration for the WhisperLiveKit pipeline.""" """Typed configuration for the WhisperLiveKit pipeline."""
import logging import logging
from dataclasses import dataclass, field, fields from dataclasses import dataclass, fields
from typing import Optional from typing import Optional
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@ -56,7 +56,7 @@ class WhisperLiveKitConfig:
frame_threshold: int = 25 frame_threshold: int = 25
beams: int = 1 beams: int = 1
decoder_type: Optional[str] = None decoder_type: Optional[str] = None
audio_max_len: float = 20.0 audio_max_len: float = 30.0
audio_min_len: float = 0.0 audio_min_len: float = 0.0
cif_ckpt_path: Optional[str] = None cif_ckpt_path: Optional[str] = None
never_fire: bool = False never_fire: bool = False

View file

@ -147,8 +147,8 @@ def parse_args():
"--backend", "--backend",
type=str, type=str,
default="auto", default="auto",
choices=["auto", "mlx-whisper", "faster-whisper", "whisper", "openai-api", "voxtral", "voxtral-mlx"], choices=["auto", "mlx-whisper", "faster-whisper", "whisper", "openai-api", "voxtral", "voxtral-mlx", "qwen3"],
help="Select the ASR backend implementation (auto: prefer MLX on macOS, otherwise Faster-Whisper, else Whisper). Use 'voxtral' for HF Transformers Voxtral (CUDA/CPU/MPS). Use 'voxtral-mlx' for native MLX Voxtral on Apple Silicon.", help="Select the ASR backend implementation (auto: prefer MLX on macOS, otherwise Faster-Whisper, else Whisper). Use 'voxtral' for HF Transformers Voxtral (CUDA/CPU/MPS). Use 'voxtral-mlx' for native MLX Voxtral on Apple Silicon. Use 'qwen3' for Qwen3-ASR.",
) )
parser.add_argument( parser.add_argument(
"--no-vac", "--no-vac",