wildedge-python icon indicating copy to clipboard operation
wildedge-python copied to clipboard

Add an integration for Whisper speech recognition (faster-whisper, mlx-whisper)

Open piotrekno1 opened this issue 1 month ago • 0 comments

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 ctranslate2 or mlx, family whisper, device and compute type (e.g. cuda/float16, cpu/int8)
  • tracks each transcribe call: duration, AudioInputMeta (audio length and sample rate), output word count, and the detected language and its probability
  • for faster-whisper, whose transcribe returns a lazy segment generator, measures until the generator is used up, not when transcribe returns
  • 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

piotrekno1 avatar Oct 19 '26 21:10 piotrekno1