Skip to content

cargo install fails — whisper-rs 0.13 incompatible with current whisper.cpp #4

Description

@Ayyankhan101

Problem

cargo install opencode-voice fails with 71 compilation errors in whisper-rs. All errors are:

error[E0609]: no field `greedy` on type `whisper_full_params`
error[E0609]: no field `beam_search` on type `whisper_full_params`
error[E0609]: no field `n_threads` on type `whisper_full_params`
... (71 total)

The whisper_full_params struct in whisper-rs-sys only exposes _address (opaque), meaning the Rust FFI bindings no longer match the whisper.cpp struct layout.

Environment

  • Rust: 1.97.1 (stable)
  • OS: macOS (darwin)
  • whisper-rs: 0.13.2 (pinned in Cargo.toml)
  • whisper-rs 0.16.0 is available on crates.io

Suggested fix

Bump whisper-rs dependency from "0.13" to "0.16" in Cargo.toml. The high-level API (FullParams, WhisperContext, WhisperState) used in src/transcribe/engine.rs appears stable between versions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions