fix: restore translate-to-english functionality (#173)

* fix: restore translate-to-english functionality

The translate option broke when migrating from whisper-rs to transcribe-rs.
This fix patches transcribe-rs to add translate parameter support and passes
the translate_to_english setting to the Whisper engine.

Additionally fixed AccessibilityPermissions API calls to match updated library.

Translation only works with Whisper multilingual models (not .en models).
Parakeet models don't support translation as they are transcription-only.

Fixes #152

* bump transcribe rs

---------

Co-authored-by: CJ Pais <cj@cjpais.com>
This commit is contained in:
segudev 2025-10-08 20:57:47 +02:00 committed by GitHub
parent 64b34b7378
commit 03289f84d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

4
src-tauri/Cargo.lock generated
View file

@ -6684,9 +6684,9 @@ dependencies = [
[[package]]
name = "transcribe-rs"
version = "0.1.0"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eaeba5648789d05eedce5478069195639a0770dcc0338146037d4b85163df4bd"
checksum = "b5a2e67ea475c444fee6ffa137eb180c484a87bd3755034e08bc95273f1da0d6"
dependencies = [
"env_logger 0.10.2",
"hound",

View file

@ -64,7 +64,7 @@ rusqlite = { version = "0.32", features = ["bundled"] }
tauri-plugin-sql = { version = "2", features = ["sqlite"] }
tar = "0.4.44"
flate2 = "1.0"
transcribe-rs = "0.1.0"
transcribe-rs = "0.1.1"
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
tauri-plugin-autostart = "2"

View file

@ -347,6 +347,7 @@ impl TranscriptionManager {
} else {
Some(settings.selected_language.clone())
},
translate: settings.translate_to_english,
..Default::default()
};