Skip to content

feat(models): Whisper ASR port for speech-to-text (/v1/audio/transcriptions) #365

Closed

Description

@inureyes

Part of #363

Blocked by #364 (Phase 1 server audio plumbing). Start once the audio routes, multipart parsing, and audio-model interface from #364 are in place.

Problem / Background

The /v1/audio/transcriptions and /v1/audio/translations endpoints (epic #363) need a real speech-to-text model. mlxcel has the log-mel front-end and audio-input encoders but no ASR decoder. This sub-issue ports an ASR model and wires it to the transcription/translation endpoints built in #364.

Proposed Solution

  • Port a Whisper-style encoder-decoder ASR model to mlxcel/MLX (mel encoder plus an autoregressive text decoder with the multilingual transcribe/translate task tokens). Reuse the log-mel front-end in src/audio/feature_extractor.rs. Register the model_type in src/models/detection.rs. Suggested checkpoint family: mlx-community Whisper (implementer confirms the exact MLX checkpoint and size).
  • Alternative: a Conformer CTC/RNNT ASR (Parakeet-style) is also viable and partially aligns with the existing Nemotron Omni Conformer encoder infrastructure. Whisper is the recommended first target for broad language coverage and the built-in translate task.
  • Wire to /v1/audio/transcriptions and /v1/audio/translations (translate task) on the feat(server): audio endpoint plumbing (multipart upload, binary response, WAV output) #364 plumbing: uploaded audio (WAV via the existing reader) to mel features to ASR to text to OpenAI transcription JSON ({ "text": ... }, optional segments / verbose_json).

Acceptance Criteria (integrated, not build-only)

  • A real Whisper MLX checkpoint transcribes an uploaded WAV via POST /v1/audio/transcriptions end-to-end.
  • POST /v1/audio/translations returns translated (to-English) text for a non-English clip.
  • mlxcel list shows the ASR architecture.
  • Unit tests added; cargo test, cargo clippy --all-targets -- -D warnings, and cargo fmt --check clean.
  • docs/supported-models.md updated.

Technical Considerations

Activity

  1. added
    status:ready
    type:enhancement
    priority:medium
    area:models
    area:inference
    status:in-progress
    status:review
    status:done
    and removed
    status:ready
    status:in-progress
    status:review
    on Jun 19, 2026
  2. added this to the 0.3 milestone on Jun 21, 2026
  3. self-assigned this
    on Jun 21, 2026
  4. added a commit that references this issue on Jun 23, 2026
    f58df39
  5. added a commit that references this issue on Oct 27, 2026
    046ca2b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:inferencearea:modelspriority:mediumstatus:donetype:enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions