Skip to content

armgit / Handy

Public Imported from GitHub
0

A free, open source, and extensible speech-to-text application that works completely offline.

transcribe 0.4.0 (#2265)

CJ Pais1b011a19a990
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index 77db5fcf..8a8568e8 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -7285,9 +7285,9 @@ dependencies = [
[[package]]
name = "transcribe-cpp"
-version = "0.3.1"
+version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2f06368bb32251b5e93ceb8cae2d6ba9adff6a51693c7ce108449e65522b05c6"
+checksum = "f6cad85eeb846a7064891c8b49b92a57a0f2d4dd089104cb199608b23043555e"
dependencies = [
"log",
"serde",
@@ -7297,9 +7297,9 @@ dependencies = [
[[package]]
name = "transcribe-cpp-sys"
-version = "0.3.1"
+version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fedfadb42719d92e58a2c340ccfb6ef327ac1b846fc1d4716b65384a330513a6"
+checksum = "7f0976932ee2a0d9bcfb7a90947d0a73771cee383b163bd7189a8e0d67da1157"
dependencies = [
"cmake",
"serde_json",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 0a9fe242..00c9e4ce 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -81,7 +81,7 @@ libc = "0.2"
# Canary, Cohere). Per-platform backend features are added in the target tables
# (Cargo unifies features, so `serde` here applies to every platform).
transcribe-rs = { version = "0.3.8", features = ["onnx"] }
-transcribe-cpp = { version = "0.3.1", default-features = false, features = [
+transcribe-cpp = { version = "0.4.0", default-features = false, features = [
"serde",
] }
handy-keys = "0.3.4"
@@ -146,17 +146,17 @@ winreg = "0.55"
# signtool verify entirely. CI pins -DGGML_NATIVE=OFF (see build.yml) so the
# static build targets a portable ARM baseline, not the build runner's CPU.
[target.'cfg(all(windows, target_arch = "x86_64"))'.dependencies]
-transcribe-cpp = { version = "0.3.1", default-features = false, features = [
+transcribe-cpp = { version = "0.4.0", default-features = false, features = [
"dynamic-backends",
"vulkan",
] }
[target.'cfg(all(windows, target_arch = "aarch64"))'.dependencies]
-transcribe-cpp = { version = "0.3.1", default-features = false }
+transcribe-cpp = { version = "0.4.0", default-features = false }
[target.'cfg(target_os = "macos")'.dependencies]
tauri-nspanel = { git = "https://github.com/ahkohd/tauri-nspanel", branch = "v2.1" }
-transcribe-cpp = { version = "0.3.1", default-features = false, features = ["metal"] }
+transcribe-cpp = { version = "0.4.0", default-features = false, features = ["metal"] }
# Used by the receipt-sequenced ("reliable") paste path for lazy NSPasteboard
# promises. Versions track what Tauri already pulls in.
objc2 = "0.6"
@@ -167,7 +167,7 @@ objc2-service-management = "0.3.2"
[target.'cfg(target_os = "linux")'.dependencies]
gtk-layer-shell = { version = "0.8", features = ["v0_6"] }
gtk = "0.18"
-transcribe-cpp = { version = "0.3.1", default-features = false, features = [
+transcribe-cpp = { version = "0.4.0", default-features = false, features = [
"dynamic-backends",
"vulkan",
] }
diff --git a/src-tauri/src/engine_supervisor/worker.rs b/src-tauri/src/engine_supervisor/worker.rs
index 1dd69c04..6774c973 100644
--- a/src-tauri/src/engine_supervisor/worker.rs
+++ b/src-tauri/src/engine_supervisor/worker.rs
@@ -309,7 +309,9 @@ fn load(
.as_ref()
.map(|d| d.label().to_string())
.unwrap_or_else(|| "unknown".to_string()),
- capabilities: model.capabilities(),
+ capabilities: model
+ .capabilities()
+ .map_err(|e| format!("Failed to read model capabilities: {e}"))?,
supports_initial_prompt: model.supports(Feature::InitialPrompt),
};
Ok((session, info))