ml-explore / ml-explore/mlx-examples

Whisper stutters

Open
#774 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
9k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Using

import mlx_whisper

speech_file = "stereo.mp3"

text = mlx_whisper.transcribe(speech_file,path_or_hf_repo=f"mlx-community/whisper-large-v3-mlx",verbose=False)["text"]

f=open("result.txt","w+")

f.write(text)

f.close()

I find that the output contains repeated phrases from time to time, enough to ruin the transcription. Eg:

... you used the address you put it in. Yes.        Yes. Yes. Yes. Yes. Yes. Yes. Yes. Yes. Yes. Yes. Yes. Yes. Yes. Yes. Yes. Yes. Yes. Yes. Yes. Yes.        Yes. Yes. Yes. Yes. Yes. Yes. Yes. Yes. Yes. Yes. Yes. One day ... he arrived at the station and      he was in the village. And he was in the village. And he was in the village. And he was in the             village. And he was in the village. And he was in the village. And he was in the village. And he was       in the village. And he was in the village. And he was in the village. And he was in the village. And       he was in the village. And he was in the village. And he was in the village. And he was in the             village. And he was in the village. And he was in the village. And he was in the village. And he was       in the village. And he was in the village. And he was in the village. And he was in the village. And       he was in the village. And he was in the village. And he was in the village. And he was in the             village. And he was in the village. And he was in the village. And he was in the village. or horses        or whatever.

Maybe this is a feature of the underlying model?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the report using the Python snippet, the stereo.mp3 input, and the mlx-community/whisper-large-v3-mlx model. Start by checking whether mlx_whisper.transcribe consistently produces repeated phrases, then compare the behavior with the underlying model or another input. Done means identifying whether this is an mlx_whisper issue or expected model behavior, with a confirmed fix or documented diagnosis.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.