Skip to content

fix(stt): auto-detect .en and other ggml model variants#74

Merged
ElbertePlinio merged 1 commit into
mainfrom
fix/model-autodetect
Jul 24, 2026
Merged

fix(stt): auto-detect .en and other ggml model variants#74
ElbertePlinio merged 1 commit into
mainfrom
fix/model-autodetect

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Found by the #66 macOS hardware E2E: detect_model_path checked a fixed filename list without .en variants, so ggml-base.en.bin — the standard English model name whisper.cpp docs point users at — was never detected and dictation failed with "no whisper model found" despite the model being present. Affects Linux identically.

  • Preference list extended with small.en/base.en/tiny.en
  • New deterministic fallback: any ggml-*.bin in the model dir, sorted by name
  • Env override and Arch /usr/share fallback untouched
  • Detection logic extracted to a pure detect_model_in_dir helper (testable without process-global HOME mutation) with 4 new tests

Live-verified on this machine: detection now resolves ~/.local/share/whisper.cpp/models/ggml-base.en.bin.

🤖 Generated with Claude Code

@ElbertePlinio
ElbertePlinio merged commit 866de57 into main Jul 24, 2026
7 of 8 checks passed
@ElbertePlinio ElbertePlinio mentioned this pull request Jul 24, 2026
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant