A free, open source, and extensible speech-to-text application that works completely offline.
fix: disable ggml Metal on Intel macOS builds (#2340)
CJ Pais7bfb2e2c934b
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.tomlindex 420c5ec5..18e5c309 100644--- a/src-tauri/Cargo.toml+++ b/src-tauri/Cargo.toml@@ -145,9 +145,20 @@ transcribe-cpp = { version = "0.4.0", default-features = false, features = [[target.'cfg(all(windows, target_arch = "aarch64"))'.dependencies]transcribe-cpp = { version = "0.4.0", default-features = false }+# Whisper backend per macOS arch. Apple Silicon links the static Metal build.+# Intel Macs are CPU-only: ggml-metal compiles its embedded shader library at+# backend init (app launch, regardless of the selected accelerator), and on+# some AMD GPUs that compile never finishes, hanging every model load (#2340).+# Metal on Intel/AMD buys little at these model sizes anyway. With no features,+# transcribe-cpp-sys sets TRANSCRIBE_METAL=OFF and pins a portable x86 CPU floor.+[target.'cfg(all(target_os = "macos", target_arch = "aarch64"))'.dependencies]+transcribe-cpp = { version = "0.4.0", default-features = false, features = ["metal"] }++[target.'cfg(all(target_os = "macos", target_arch = "x86_64"))'.dependencies]+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.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"