Skip to content

fix(transcribe): avoid Python whisper CLI#2284

Open
miguel-heygen wants to merge 1 commit into
mainfrom
fix/whisper-cli-discovery
Open

fix(transcribe): avoid Python whisper CLI#2284
miguel-heygen wants to merge 1 commit into
mainfrom
fix/whisper-cli-discovery

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

What

Only discover whisper-cli when looking for a system whisper.cpp binary.

Why

The Python OpenAI Whisper package also installs a whisper executable. HyperFrames treated that unrelated CLI as whisper.cpp and passed incompatible flags, causing transcription to fail before fallback.

How

Remove the ambiguous whisper executable fallback and add a regression test that places a fake Python-style whisper on PATH.

Test plan

  • bun run --filter @hyperframes/cli test (128 files, 1637 tests)
  • bun run --filter @hyperframes/cli typecheck
  • bunx oxfmt --check packages/cli/src/whisper/manager.ts packages/cli/src/whisper/manager.test.ts
  • bunx oxlint packages/cli/src/whisper/manager.ts packages/cli/src/whisper/manager.test.ts
  • git diff --check

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