Skip to content

deps: bump whisper-rs from 0.13 to 0.16 - #5

Open
Ayyankhan101 wants to merge 1 commit into
mathew-cf:mainfrom
Ayyankhan101:bump-whisper-rs
Open

deps: bump whisper-rs from 0.13 to 0.16#5
Ayyankhan101 wants to merge 1 commit into
mathew-cf:mainfrom
Ayyankhan101:bump-whisper-rs

Conversation

@Ayyankhan101

Copy link
Copy Markdown

Problem

cargo install opencode-voice fails with 71 compilation errors on current Rust stable toolchains. The whisper_full_params struct in whisper-rs-sys 0.11 only exposes _address (opaque), meaning all field accesses fail:

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

Fix

Bumps whisper-rs from 0.13 to 0.16 (latest). The high-level API (FullParams, WhisperContext, WhisperState, FFI log functions) is fully compatible — no code changes needed in engine.rs.

Verified

  • All FFI functions used (whisper_log_set, ggml_log_set) exist with same signatures in whisper-rs-sys 0.15.0 (used by whisper-rs 0.16)
  • High-level API: WhisperContext::new_with_params, FullParams::new, setter methods, state.full(), state.full_n_segments(), state.full_get_segment_text() — all present in 0.16

Fixes #4

whisper-rs 0.13's FFI bindings no longer match whisper.cpp's
whisper_full_params struct, causing 71 compilation errors on
current Rust stable toolchains.

Bumps to 0.16 (latest) which has updated bindings.

Fixes mathew-cf#4
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.

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

1 participant