Add an integration for Whisper speech recognition (faster-whisper, mlx-whisper)
What happens
There is no integration for Whisper speech recognition. faster-whisper (WhisperModel.transcribe, CTranslate2) and mlx-whisper (mlx_whisper.transcribe) are the common local options, and neither is covered by the existing mlx or transformers integrations.
An app has to register the model with register_model(None, model_id=..., family="whisper", model_format=...) and call track_inference by hand with AudioInputMeta (duration, sample rate, channels), the detected language and, when attachments are enabled, the audio and the transcript.
Expected
A whisper integration (or one each for faster_whisper and mlx_whisper) that:
- registers the model on load: name from the model directory or repo, format
ctranslate2ormlx, familywhisper, device and compute type (e.g.cuda/float16,cpu/int8) - tracks each
transcribecall: duration,AudioInputMeta(audio length and sample rate), output word count, and the detected language and its probability - for faster-whisper, whose
transcribereturns a lazy segment generator, measures until the generator is used up, not whentranscribereturns - when attachments are enabled, attaches the input audio and the transcript
Found in evil-jarvis, which tracks this by hand today (src/evil_jarvis/telemetry.py, track_transcription). SDK 0.2.2.
🤖 Generated with Claude Code