Skip to content

armgit / Handy

Public Imported from GitHub
0

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

actually remove onnx (#2279)

CJ Pais5197faf0e6fe
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ea591d84..ce01c9cd 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -115,7 +115,7 @@ jobs:
uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"
- key: ${{ inputs.platform }}-${{ inputs.target }}-no-bin-v1
+ key: ${{ inputs.platform }}-${{ inputs.target }}-no-bin-v2
cache-bin: false
- name: install dependencies (ubuntu 24.04 x64)
@@ -358,72 +358,6 @@ jobs:
Write-Host "TAURI_WINDOWS_SIGNTOOL_PATH=$($signtool.FullName)"
Add-Content -Path $env:GITHUB_ENV -Value "TAURI_WINDOWS_SIGNTOOL_PATH=$($signtool.FullName)"
- - name: Install ONNX Runtime (x86_64 macOS)
- if: inputs.target == 'x86_64-apple-darwin'
- shell: bash
- run: |
- ORT_VERSION="1.24.2"
- curl -L -o ort.tgz "https://blob.handy.computer/onnxruntime-osx-x86_64-${ORT_VERSION}.tgz"
- tar xzf ort.tgz
- ORT_DIR="$(pwd)/onnxruntime-osx-x86_64-${ORT_VERSION}"
- echo "ORT_LIB_LOCATION=$ORT_DIR/lib" >> $GITHUB_ENV
- echo "ORT_PREFER_DYNAMIC_LINK=1" >> $GITHUB_ENV
- # Bundle the versioned dylib (matches the install name @rpath/libonnxruntime.1.24.2.dylib)
- jq --arg lib "$ORT_DIR/lib/libonnxruntime.${ORT_VERSION}.dylib" \
- '.bundle.macOS.frameworks = [$lib]' \
- src-tauri/tauri.conf.json > tmp.json && mv tmp.json src-tauri/tauri.conf.json
-
- - name: Install ONNX Runtime (x86_64 Linux, Ubuntu 22.04)
- if: contains(inputs.platform, 'ubuntu-22.04') && inputs.target == 'x86_64-unknown-linux-gnu'
- shell: bash
- run: |
- ORT_VERSION="1.24.2"
- curl -L -o ort.tgz "https://blob.handy.computer/onnxruntime-linux-x86_64-${ORT_VERSION}.tgz"
- tar xzf ort.tgz
- ORT_DIR="$(pwd)/onnxruntime-linux-x86_64-${ORT_VERSION}"
- echo "ORT_LIB_LOCATION=$ORT_DIR/lib" >> $GITHUB_ENV
- echo "ORT_PREFER_DYNAMIC_LINK=1" >> $GITHUB_ENV
- # Resolve symlinks so the deb bundler gets real files (not broken symlinks)
- for f in "$ORT_DIR"/lib/libonnxruntime.so*; do
- if [ -L "$f" ]; then
- cp -L "$f" "$f.real" && mv "$f.real" "$f"
- fi
- done
- # Ship ORT in Handy's private lib dir under its SONAME only — the one
- # name the loader resolves (handy has NEEDED libonnxruntime.so.1).
- # Shipping the .so/.so.x.y.z aliases too would triplicate the lib as
- # real files and draw ldconfig warnings (issue #1639).
- # deb.files key = destination in package, value = source on disk
- jq --arg so1 "$ORT_DIR/lib/libonnxruntime.so.1" \
- '.bundle.linux.deb.files["/usr/lib/Handy/libonnxruntime.so.1"] = $so1' \
- src-tauri/tauri.conf.json > tmp.json && mv tmp.json src-tauri/tauri.conf.json
-
- # Windows x64 links a BASELINE ONNX Runtime dynamically instead of statically
- # embedding pyke's default download-binaries build, which is compiled with a
- # global /arch:AVX2 baseline and executes BMI2/AVX in a C++ static initializer
- # — crashing at process startup on any pre-Haswell CPU (Sandy/Ivy Bridge, older
- # AMD) before main() runs. Microsoft's official build uses an SSE2 baseline with
- # MLAS runtime CPU dispatch, so it runs everywhere and dispatches to AVX2/AVX-512
- # kernels when present (perf parity on capable CPUs). build.rs stages
- # onnxruntime.dll into transcribe-libs/, which tauri.windows.conf.json bundles
- # beside Handy.exe. ARM64 is excluded (all modern CPUs; keeps its static
- # ORT posture).
- # NOTE: sourced from Microsoft's GitHub release; can be re-hosted on
- # blob.handy.computer to match the macOS/Linux steps.
- - name: Install ONNX Runtime (Windows x64)
- if: contains(inputs.platform, 'windows') && !contains(inputs.target, 'aarch64')
- shell: pwsh
- run: |
- $ErrorActionPreference = 'Stop'
- $ORT_VERSION = "1.24.2"
- $url = "https://github.com/microsoft/onnxruntime/releases/download/v$ORT_VERSION/onnxruntime-win-x64-$ORT_VERSION.zip"
- Invoke-WebRequest -Uri $url -OutFile ort.zip
- Expand-Archive -Path ort.zip -DestinationPath ort-dist -Force
- $ortLib = (Resolve-Path "ort-dist/onnxruntime-win-x64-$ORT_VERSION/lib").Path
- Write-Host "ORT_LIB_LOCATION=$ortLib"
- Add-Content -Path $env:GITHUB_ENV -Value "ORT_LIB_LOCATION=$ortLib"
- Add-Content -Path $env:GITHUB_ENV -Value "ORT_PREFER_DYNAMIC_LINK=1"
-
# ggml-vulkan (built by transcribe-cpp-sys when the Vulkan backend is on)
# does `find_package(SPIRV-Headers CONFIG REQUIRED)` for <spirv-headers/
# spirv.hpp>. ggml's CMake appends $VULKAN_SDK to CMAKE_PREFIX_PATH first,
@@ -579,27 +513,6 @@ jobs:
fi
)
- - name: Verify macOS dylib bundling
- if: inputs.target == 'x86_64-apple-darwin'
- shell: bash
- run: |
- APP=$(find src-tauri/target -name "*.app" -type d | head -1)
- echo "=== Frameworks contents ==="
- ls -la "$APP/Contents/Frameworks/" | grep onnx || true
- echo "=== Binary linked libs ==="
- otool -L "$APP/Contents/MacOS/handy" | grep onnx || true
- echo "=== Checking all @rpath deps are satisfied ==="
- # Extract every @rpath lib the binary needs
- otool -L "$APP/Contents/MacOS/handy" | grep '@rpath/' | awk '{print $1}' | while read dep; do
- libname=$(basename "$dep")
- if [ ! -f "$APP/Contents/Frameworks/$libname" ]; then
- echo "MISSING: $libname not found in Frameworks/"
- exit 1
- else
- echo "OK: $libname"
- fi
- done
-
- name: Upload artifacts (macOS)
if: inputs.upload-artifacts && contains(inputs.platform, 'macos')
uses: actions/upload-artifact@v7
@@ -675,9 +588,6 @@ jobs:
require_pattern "$listing" 'usr/bin/handy$' "handy binary"
require_pattern "$listing" 'usr/lib/Handy/libtranscribe\.so(\.[0-9]+)+$' "transcribe runtime library (SONAME)"
require_pattern "$listing" 'usr/lib/Handy/libggml-cpu.*\.so' "ggml CPU backend module"
- if [[ "${{ inputs.platform }}" == *"ubuntu-22.04"* && "${{ inputs.target }}" == "x86_64-unknown-linux-gnu" ]]; then
- require_pattern "$listing" 'usr/lib/Handy/libonnxruntime\.so\.[0-9]+$' "ONNX Runtime library (SONAME)"
- fi
# Handy's libs must stay out of the ldconfig-scanned /usr/lib
# (issue #1639): app-private libs belong in /usr/lib/Handy only.
# `[^/]+` excludes the Handy/ subdir, so only direct hits match.
@@ -811,10 +721,10 @@ jobs:
throw "src-tauri/transcribe-libs contains no DLLs; every Windows build must stage the app-local VC++ runtime (issue #1527)"
}
- # x64 also ships dynamic transcribe/ggml/ORT DLLs; ARM64 is otherwise static.
+ # x64 also ships dynamic transcribe/ggml DLLs; ARM64 is otherwise static.
$requiredStaged = @("msvcp140.dll", "vcruntime140.dll")
if ("${{ inputs.target }}" -notlike "aarch64*") {
- $requiredStaged += @("vcomp140.dll", "onnxruntime.dll")
+ $requiredStaged += @("vcomp140.dll")
if (-not ($stagedDlls | Where-Object { $_.Name -like "*transcribe*" })) {
throw "Staging is missing transcribe runtime DLLs"
}
diff --git a/AGENTS.md b/AGENTS.md
index 88ae7b52..9d7bf5c7 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -102,8 +102,7 @@ Handy is a cross-platform desktop speech-to-text application built with Tauri 2.
**Core Libraries:**
-- `transcribe-cpp` - Local Whisper-family inference (GGML/GGUF) with GPU acceleration
-- `transcribe-rs` - ONNX speech recognition (Parakeet, Moonshine, SenseVoice, etc.)
+- `transcribe-cpp` - Local speech recognition (Whisper, Parakeet, Moonshine, SenseVoice, etc.; GGML/GGUF) with GPU acceleration
- `handy-recorder` - Microphone capture: device selection, resampling to 16 kHz, failure detection
- `transcribe-cpp` (Silero VAD v6, CPU-only, in-process) / `earshot` - Voice Activity Detection
- `rdev` - Global keyboard shortcuts
diff --git a/BUILD.md b/BUILD.md
index d98e0dae..f6c63a5a 100644
--- a/BUILD.md
+++ b/BUILD.md
@@ -17,21 +17,6 @@ This guide covers how to set up the development environment and build Handy from
- Xcode Command Line Tools
- Install with: `xcode-select --install`
-##### Intel Mac (x86_64)
-
-Prebuilt ONNX Runtime binaries are not available for Intel Macs. Install ONNX Runtime via Homebrew and link dynamically:
-
-```bash
-brew install onnxruntime
-ORT_LIB_LOCATION=$(brew --prefix onnxruntime)/lib ORT_PREFER_DYNAMIC_LINK=1 bun run tauri dev
-```
-
-The same environment variables apply for production builds:
-
-```bash
-ORT_LIB_LOCATION=$(brew --prefix onnxruntime)/lib ORT_PREFER_DYNAMIC_LINK=1 bun run tauri build
-```
-
#### Windows
- Microsoft C++ Build Tools: Visual Studio 2019/2022 with C++ development
diff --git a/flake.nix b/flake.nix
index c26e16b2..13a7646d 100644
--- a/flake.nix
+++ b/flake.nix
@@ -38,7 +38,6 @@
glib
libsoup_3
alsa-lib
- onnxruntime
libayatana-appindicator
libevdev
libxtst
@@ -60,8 +59,6 @@
# Shared environment variables for Rust/native builds
commonEnv = pkgs: let lib = pkgs.lib; in {
- ORT_LIB_LOCATION = "${pkgs.onnxruntime}/lib";
- ORT_PREFER_DYNAMIC_LINK = "1";
GST_PLUGIN_SYSTEM_PATH_1_0 = "${lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" (gstPlugins pkgs)}";
};
@@ -232,11 +229,9 @@
]);
inherit (commonEnv pkgs)
- ORT_LIB_LOCATION
- ORT_PREFER_DYNAMIC_LINK
GST_PLUGIN_SYSTEM_PATH_1_0;
- LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath [ pkgs.libayatana-appindicator pkgs.onnxruntime pkgs.vulkan-loader ]}";
+ LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath [ pkgs.libayatana-appindicator pkgs.vulkan-loader ]}";
# Same as wrapGAppsHook4
XDG_DATA_DIRS = "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}:${pkgs.hicolor-icon-theme}/share";
diff --git a/scripts/ci/stage-transcribe-libs.sh b/scripts/ci/stage-transcribe-libs.sh
index 29875746..8c8af35f 100755
--- a/scripts/ci/stage-transcribe-libs.sh
+++ b/scripts/ci/stage-transcribe-libs.sh
@@ -31,7 +31,7 @@ fi
mkdir -p "$DEST"
# Copy the shared lib + every ggml lib/module. `-L` dereferences any SONAME
-# symlinks so the package gets real files (mirrors the onnxruntime deb step).
+# symlinks so the package gets real files.
# `|| true` guards an unmatched glob; the verification below is the real gate.
cp -vL "$SRC"/libtranscribe.so* "$DEST"/ 2>/dev/null || true
cp -vL "$SRC"/libggml*.so* "$DEST"/ 2>/dev/null || true
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index d3cabb77..5b3c1720 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -1223,38 +1223,14 @@ version = "0.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "52560adf09603e58c9a7ee1fe1dcb95a16927b17c127f0ac02d6e768a0e25bc1"
-[[package]]
-name = "darling"
-version = "0.20.11"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee"
-dependencies = [
- "darling_core 0.20.11",
- "darling_macro 0.20.11",
-]
-
[[package]]
name = "darling"
version = "0.21.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9cdf337090841a411e2a7f3deb9187445851f91b309c0c0a29e05f74a00a48c0"
dependencies = [
- "darling_core 0.21.3",
- "darling_macro 0.21.3",
-]
-
-[[package]]
-name = "darling_core"
-version = "0.20.11"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e"
-dependencies = [
- "fnv",
- "ident_case",
- "proc-macro2",
- "quote",
- "strsim",
- "syn 2.0.117",
+ "darling_core",
+ "darling_macro",
]
[[package]]
@@ -1271,24 +1247,13 @@ dependencies = [
"syn 2.0.117",
]
-[[package]]
-name = "darling_macro"
-version = "0.20.11"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"
-dependencies = [
- "darling_core 0.20.11",
- "quote",
- "syn 2.0.117",
-]
-
[[package]]
name = "darling_macro"
version = "0.21.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d38308df82d1080de0afee5d069fa14b0326a88c14f15c5ccda35b4a6c414c81"
dependencies = [
- "darling_core 0.21.3",
+ "darling_core",
"quote",
"syn 2.0.117",
]
@@ -1341,37 +1306,6 @@ dependencies = [
"syn 2.0.117",
]
-[[package]]
-name = "derive_builder"
-version = "0.20.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "507dfb09ea8b7fa618fcf76e953f4f5e192547945816d5358edffe39f6f94947"
-dependencies = [
- "derive_builder_macro",
-]
-
-[[package]]
-name = "derive_builder_core"
-version = "0.20.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2d5bcf7b024d6835cfb3d473887cd966994907effbe9227e8c8219824d06c4e8"
-dependencies = [
- "darling 0.20.11",
- "proc-macro2",
- "quote",
- "syn 2.0.117",
-]
-
-[[package]]
-name = "derive_builder_macro"
-version = "0.20.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c"
-dependencies = [
- "derive_builder_core",
- "syn 2.0.117",
-]
-
[[package]]
name = "derive_more"
version = "0.99.20"
@@ -1720,19 +1654,6 @@ dependencies = [
"regex",
]
-[[package]]
-name = "env_logger"
-version = "0.10.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580"
-dependencies = [
- "humantime",
- "is-terminal",
- "log",
- "regex",
- "termcolor",
-]
-
[[package]]
name = "epoll"
version = "4.4.0"
@@ -2548,7 +2469,6 @@ dependencies = [
"enigo",
"env_filter",
"ferrous-opencc",
- "flate2",
"futures-util",
"gtk",
"gtk-layer-shell",
@@ -2579,7 +2499,6 @@ dependencies = [
"specta",
"specta-typescript",
"strsim",
- "tar",
"tauri",
"tauri-build",
"tauri-nspanel",
@@ -2600,7 +2519,6 @@ dependencies = [
"tempfile",
"tokio",
"transcribe-cpp",
- "transcribe-rs",
"webview2-com",
"whatlang",
"windows 0.61.3",
@@ -2771,12 +2689,6 @@ dependencies = [
"windows-sys 0.61.2",
]
-[[package]]
-name = "hmac-sha256"
-version = "1.1.14"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ec9d92d097f4749b64e8cc33d924d9f40a2d4eb91402b458014b781f5733d60f"
-
[[package]]
name = "hound"
version = "3.5.1"
@@ -2850,12 +2762,6 @@ version = "1.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
-[[package]]
-name = "humantime"
-version = "2.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "135b12329e5e3ce057a9f972339ea52bc954fe1e9358ef27f95e89716fbc5424"
-
[[package]]
name = "hyper"
version = "1.8.1"
@@ -3187,17 +3093,6 @@ dependencies = [
"once_cell",
]
-[[package]]
-name = "is-terminal"
-version = "0.4.17"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"
-dependencies = [
- "hermit-abi",
- "libc",
- "windows-sys 0.61.2",
-]
-
[[package]]
name = "is-wsl"
version = "0.4.0"
@@ -3503,12 +3398,6 @@ dependencies = [
"value-bag",
]
-[[package]]
-name = "lzma-rust2"
-version = "0.15.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1670343e58806300d87950e3401e820b519b9384281bbabfb15e3636689ffd69"
-
[[package]]
name = "mac"
version = "0.1.1"
@@ -3582,16 +3471,6 @@ version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5"
-[[package]]
-name = "matrixmultiply"
-version = "0.3.10"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a06de3016e9fae57a36fd14dba131fccf49f74b40b7fbdb472f96e361ec71a08"
-dependencies = [
- "autocfg",
- "rawpointer",
-]
-
[[package]]
name = "memchr"
version = "2.8.0"
@@ -3729,21 +3608,6 @@ dependencies = [
"rust-stemmers",
]
-[[package]]
-name = "ndarray"
-version = "0.17.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "520080814a7a6b4a6e9070823bb24b4531daac8c4627e08ba5de8c5ef2f2752d"
-dependencies = [
- "matrixmultiply",
- "num-complex",
- "num-integer",
- "num-traits",
- "portable-atomic",
- "portable-atomic-util",
- "rawpointer",
-]
-
[[package]]
name = "ndk"
version = "0.9.0"
@@ -4364,30 +4228,6 @@ dependencies = [
"pin-project-lite",
]
-[[package]]
-name = "ort"
-version = "2.0.0-rc.12"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d7de3af33d24a745ffb8fab904b13478438d1cd52868e6f17735ef6e1f8bf133"
-dependencies = [
- "ndarray",
- "ort-sys",
- "smallvec",
- "tracing",
- "ureq",
-]
-
-[[package]]
-name = "ort-sys"
-version = "2.0.0-rc.12"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d7b497d21a8b6fbb4b5a544f8fadb77e801a09ae0add9e411d31c6f89e3c1e90"
-dependencies = [
- "hmac-sha256",
- "lzma-rust2",
- "ureq",
-]
-
[[package]]
name = "os_info"
version = "3.14.0"
@@ -4787,15 +4627,6 @@ version = "1.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
-[[package]]
-name = "portable-atomic-util"
-version = "0.2.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a9db96d7fa8782dd8c15ce32ffe8680bbd1e978a43bf51a34d39483540495f5"
-dependencies = [
- "portable-atomic",
-]
-
[[package]]
name = "potential_utf"
version = "0.1.4"
@@ -5110,12 +4941,6 @@ version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539"
-[[package]]
-name = "rawpointer"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
-
[[package]]
name = "rdev"
version = "0.5.0-2"
@@ -5892,7 +5717,7 @@ version = "3.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "52a8e3ca0ca629121f70ab50f95249e5a6f925cc0f6ffe8256c45b728875706c"
dependencies = [
- "darling 0.21.3",
+ "darling",
"proc-macro2",
"quote",
"syn 2.0.117",
@@ -7078,15 +6903,6 @@ dependencies = [
"new_debug_unreachable",
]
-[[package]]
-name = "termcolor"
-version = "1.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
-dependencies = [
- "winapi-util",
-]
-
[[package]]
name = "thiserror"
version = "1.0.69"
@@ -7457,27 +7273,6 @@ dependencies = [
"serde_json",
]
-[[package]]
-name = "transcribe-rs"
-version = "0.3.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b231bc9bd1b20be89583a49c3885dfa7d7323299564ee78eddf83db04f2b337b"
-dependencies = [
- "base64 0.22.1",
- "derive_builder",
- "env_logger",
- "hound",
- "log",
- "ndarray",
- "once_cell",
- "ort",
- "regex",
- "rustfft",
- "serde",
- "serde_json",
- "thiserror 2.0.18",
-]
-
[[package]]
name = "transpose"
version = "0.2.3"
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 9def144f..ef04f994 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -66,15 +66,11 @@ whatlang = "0.16"
isolang = "2"
chrono = "0.4"
rusqlite = { version = "0.37", features = ["bundled"] }
-tar = "0.4.44"
-flate2 = "1.0"
sha2 = "0.10"
libc = "0.2"
-# Whisper-family models run through transcribe-cpp (GGUF/ggml, native backends);
-# transcribe-rs is now ONNX-only (Parakeet, Moonshine, SenseVoice, GigaAM,
-# 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"] }
+# Every model runs through transcribe-cpp (GGUF/ggml, native backends).
+# Per-platform backend features are added in the target tables (Cargo unifies
+# features, so `serde` here applies to every platform).
transcribe-cpp = { version = "0.4.0", default-features = false, features = [
"serde",
] }
@@ -103,14 +99,6 @@ tauri-plugin-updater = "2.10.1"
# (disabling browser accelerator keys in the main window). Must match the
# version wry links against so the COM types are identical.
webview2-com = "0.38"
-# ONNX Runtime on Windows is CPU-only (no ort-directml), matching macOS/Linux.
-# The DirectML EP was experimental and, more importantly, pulled in pyke's
-# prebuilt ONNX Runtime which is compiled with a global /arch:AVX2 baseline that
-# executes BMI2/AVX in a static initializer and crashes at process startup on any
-# pre-Haswell CPU (Sandy/Ivy Bridge, older AMD). Dropping the feature means we
-# link a baseline ONNX Runtime (dynamically, via ORT_LIB_LOCATION in build.yml)
-# with proper runtime CPU dispatch. Base `transcribe-rs` (features = ["onnx"])
-# is inherited here, so Parakeet/Moonshine/etc. still run on CPU.
windows = { version = "0.61.3", features = [
"Win32_Media_Audio_Endpoints",
"Win32_System_Com_StructuredStorage",
diff --git a/src-tauri/build.rs b/src-tauri/build.rs
index ed048a57..9f8ada79 100644
--- a/src-tauri/build.rs
+++ b/src-tauri/build.rs
@@ -24,6 +24,7 @@ fn main() {
// launches on older macOS (minimumSystemVersion is 10.15).
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("macos") {
println!("cargo:rustc-link-arg=-Wl,-weak_framework,CoreAudio");
+ link_clang_rt_osx();
}
// Stage transcribe-cpp's shared runtime libraries (and the dlopen'd ggml
@@ -32,18 +33,40 @@ fn main() {
// static macOS `metal` build, where there is nothing to ship.
stage_transcribe_runtime_libs();
- // When ORT is dynamically linked (Windows CI sets ORT_LIB_LOCATION +
- // ORT_PREFER_DYNAMIC_LINK to a baseline ONNX Runtime), ship its onnxruntime.dll
- // next to Handy.exe so the app loads our baseline build instead of statically
- // embedding pyke's /arch:AVX2 one (which crashes at startup on pre-Haswell CPUs).
- stage_onnxruntime_dll();
-
// Must run after transcribe staging because that helper recreates transcribe-libs/.
stage_vc_runtime_dlls();
tauri_build::build()
}
+/// Link clang's compiler runtime, which provides `__isPlatformVersionAtLeast`.
+///
+/// ggml-metal guards newer Metal APIs with `@available`. When the deployment
+/// target is older than the SDK (CI builds for macOS 11.0), clang lowers those
+/// checks to calls into `libclang_rt.osx.a`, which rustc does not link
+/// (`-nodefaultlibs`). ort-sys used to add it for its own static ONNX Runtime;
+/// without ORT, Handy has to. Local builds targeting the host macOS fold the
+/// checks away, which is why only CI hit the undefined symbol.
+fn link_clang_rt_osx() {
+ let output = std::process::Command::new("clang")
+ .arg("--print-resource-dir")
+ .output()
+ .expect("run `clang --print-resource-dir` to locate libclang_rt.osx.a");
+ assert!(
+ output.status.success(),
+ "`clang --print-resource-dir` failed; cannot locate libclang_rt.osx.a"
+ );
+ let resource_dir = String::from_utf8(output.stdout).expect("clang resource dir is UTF-8");
+ let darwin_dir = std::path::Path::new(resource_dir.trim()).join("lib/darwin");
+ assert!(
+ darwin_dir.join("libclang_rt.osx.a").exists(),
+ "libclang_rt.osx.a not found in {}",
+ darwin_dir.display()
+ );
+ println!("cargo:rustc-link-search=native={}", darwin_dir.display());
+ println!("cargo:rustc-link-lib=static=clang_rt.osx");
+}
+
/// Stage the MSVC runtime DLLs into `transcribe-libs/` for app-local deployment.
///
/// Handy's native stack links the VC++ runtime dynamically (/MD). Shipping the
@@ -109,50 +132,6 @@ fn stage_vc_runtime_dlls() {
);
}
-/// Copy the dynamically-linked ONNX Runtime `onnxruntime.dll` into the
-/// `transcribe-libs/` staging dir so `tauri.windows.conf.json` bundles it beside
-/// `Handy.exe` (Windows resolves DLLs from the executable's directory).
-///
-/// No-op unless `ORT_PREFER_DYNAMIC_LINK` + `ORT_LIB_LOCATION` are set for a Windows
-/// target — i.e. the CI dynamic-link path. A plain static build (no env) skips this
-/// and keeps the embedded ORT, and non-Windows targets bundle their ORT elsewhere
-/// (see build.yml frameworks/deb.files steps), so they are ignored here.
-fn stage_onnxruntime_dll() {
- use std::path::PathBuf;
-
- println!("cargo:rerun-if-env-changed=ORT_LIB_LOCATION");
- println!("cargo:rerun-if-env-changed=ORT_PREFER_DYNAMIC_LINK");
-
- if std::env::var_os("ORT_PREFER_DYNAMIC_LINK").is_none() {
- return;
- }
- if std::env::var("CARGO_CFG_TARGET_OS").as_deref() != Ok("windows") {
- return;
- }
- let Some(lib_location) = std::env::var_os("ORT_LIB_LOCATION") else {
- return;
- };
-
- let src = PathBuf::from(&lib_location).join("onnxruntime.dll");
- if !src.exists() {
- panic!(
- "ORT_PREFER_DYNAMIC_LINK is set but {} does not exist; a dynamic ORT \
- build must supply onnxruntime.dll to bundle",
- src.display()
- );
- }
-
- // transcribe-libs/ is already created by stage_transcribe_runtime_libs() on the
- // Windows x86_64 dynamic-backends build and bundled by tauri.windows.conf.json;
- // create it defensively so this is self-contained.
- let dest_dir =
- PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap()).join("transcribe-libs");
- std::fs::create_dir_all(&dest_dir).expect("create transcribe-libs staging dir");
- std::fs::copy(&src, dest_dir.join("onnxruntime.dll"))
- .unwrap_or_else(|e| panic!("copy {}: {e}", src.display()));
- println!("cargo:warning=Staged onnxruntime.dll for Windows bundling");
-}
-
/// Stage transcribe-cpp's shared runtime libraries into `transcribe-libs/` so the
/// installer can ship them next to the executable. One code path covers Windows
/// (`.dll`) and Linux (versioned `.so`); the match-by-name filter below handles
diff --git a/src-tauri/resources/models/gigaam_vocab.txt b/src-tauri/resources/models/gigaam_vocab.txt
deleted file mode 100644
index 57e85ff1..00000000
--- a/src-tauri/resources/models/gigaam_vocab.txt
+++ /dev/null
@@ -1,257 +0,0 @@
-<unk> 0
-▁ 1
-. 2
-е 3
-а 4
-с 5
-и 6
-, 7
-о 8
-т 9
-н 10
-м 11
-у 12
-й 13
-л 14
-я 15
-в 16
-д 17
-з 18
-к 19
-но 20
-▁с 21
-ы 22
-г 23
-▁в 24
-б 25
-р 26
-п 27
-то 28
-ть 29
-ра 30
-▁по 31
-ка 32
-ш 33
-ни 34
-ли 35
-на 36
-го 37
-х 38
-ро 39
-ва 40
-▁на 41
-ю 42
-ко 43
-ль 44
-те 45
-? 46
-ч 47
-ж 48
-во 49
-ла 50
-ре 51
-да 52
-▁и 53
-ло 54
-ст 55
-- 56
-ё 57
-▁не 58
-ле 59
-ри 60
-де 61
-та 62
-ны 63
-▁В 64
-▁С 65
-ь 66
-ки 67
-ер 68
-▁о 69
-ви 70
-ти 71
-ма 72
-▁за 73
-▁А 74
-▁Т 75
-▁у 76
-же 77
-э 78
-▁М 79
-ц 80
-ди 81
-не 82
-ру 83
-че 84
-ф 85
-ве 86
-▁Д 87
-бо 88
-▁К 89
-щ 90
-▁О 91
-ми 92
-▁что 93
-▁« 94
-» 95
-ся 96
-▁По 97
-▁про 98
-e 99
-a 100
-ку 101
-ну 102
-▁это 103
-мо 104
-жи 105
-▁ко 106
-▁П 107
-▁И 108
-ча 109
-му 110
-0 111
-ты 112
-ста 113
-сь 114
-▁как 115
-o 116
-▁мо 117
-i 118
-до 119
-ля 120
-▁до 121
-▁от 122
-У 123
-Б 124
-ры 125
-чи 126
-ци 127
-▁бы 128
-▁Включи 129
-па 130
-ключ 131
-по 132
-ду 133
-▁при 134
-— 135
-Л 136
-n 137
-Р 138
-сто 139
-r 140
-▁так 141
-сти 142
-Г 143
-▁На 144
-Н 145
-▁об 146
-▁мне 147
-l 148
-Я 149
-t 150
-1 151
-▁За 152
-s 153
-Э 154
-Ч 155
-Е 156
-▁есть 157
-ень 158
-▁Ну 159
-2 160
-▁Сбер 161
-вер 162
-▁вот 163
-ение 164
-смотр 165
-В 166
-▁раз 167
-Ф 168
-▁пере 169
-ешь 170
-▁тебя 171
-u 172
-3 173
-5 174
-d 175
-y 176
-Х 177
-4 178
-З 179
-S 180
-С 181
-h 182
-c 183
-m 184
-9 185
-: 186
-8 187
-6 188
-7 189
-M 190
-B 191
-П 192
-D 193
-T 194
-! 195
-k 196
-g 197
-О 198
-C 199
-Ш 200
-М 201
-A 202
-p 203
-Ю 204
-P 205
-Т 206
-К 207
-А 208
-L 209
-b 210
-Д 211
-ъ 212
-H 213
-% 214
-F 215
-v 216
-V 217
-R 218
-O 219
-I 220
-И 221
-N 222
-Ж 223
-" 224
-K 225
-G 226
-Ц 227
-f 228
-w 229
-E 230
-₽ 231
-W 232
-J 233
-x 234
-z 235
-' 236
-U 237
-Y 238
-& 239
-Z 240
-X 241
-+ 242
-/ 243
-Щ 244
-; 245
-j 246
-Й 247
-q 248
-Q 249
-° 250
-Ё 251
-Ы 252
-€ 253
-$ 254
-« 255
-<blk> 256
diff --git a/src-tauri/src/catalog/mod.rs b/src-tauri/src/catalog/mod.rs
index fb11df0f..74638c58 100644
--- a/src-tauri/src/catalog/mod.rs
+++ b/src-tauri/src/catalog/mod.rs
@@ -18,9 +18,7 @@ use std::collections::HashMap;
use once_cell::sync::Lazy;
use serde::Deserialize;
-use crate::managers::model::{
- default_quant_file, EngineType, ModelDescriptor, ModelSource, QuantFile,
-};
+use crate::managers::model::{default_quant_file, ModelDescriptor, ModelSource, QuantFile};
use crate::managers::model_capabilities::{CapabilityProbe, Compatibility};
#[derive(Deserialize)]
@@ -90,7 +88,6 @@ impl From<&CatalogModel> for ModelDescriptor {
},
name: m.name.clone(),
description: m.description.clone(),
- engine_type: EngineType::TranscribeCpp,
caps: CapabilityProbe {
verdict: Compatibility::Compatible, // curated org models we ship support for
display_name: None,
diff --git a/src-tauri/src/commands/models.rs b/src-tauri/src/commands/models.rs
index a1cdeec4..4c57ff14 100644
--- a/src-tauri/src/commands/models.rs
+++ b/src-tauri/src/commands/models.rs
@@ -1,4 +1,4 @@
-use crate::managers::model::{ModelInfo, ModelManager};
+use crate::managers::model::{ModelInfo, ModelManager, RetiredModel};
use crate::managers::transcription::{ModelStateEvent, TranscriptionManager};
use crate::settings::{get_settings, write_settings, ModelUnloadTimeout};
use log::error;
@@ -61,6 +61,24 @@ pub async fn download_model(
result
}
+#[tauri::command]
+#[specta::specta]
+pub fn get_retired_models(model_manager: State<'_, Arc<ModelManager>>) -> Vec<RetiredModel> {
+ model_manager.get_retired_models()
+}
+
+#[tauri::command]
+#[specta::specta]
+pub async fn delete_retired_model(
+ model_manager: State<'_, Arc<ModelManager>>,
+ model_id: String,
+) -> Result<(), String> {
+ model_manager.delete_retired_model(&model_id).map_err(|e| {
+ error!("Retired model delete failed for {}: {}", model_id, e);
+ e.to_string()
+ })
+}
+
#[tauri::command]
#[specta::specta]
pub async fn delete_model(
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index 29905f9d..3f3370e4 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -207,9 +207,6 @@ fn initialize_core_logic(app_handle: &AppHandle) {
let history_manager =
Arc::new(HistoryManager::new(app_handle).expect("Failed to initialize history manager"));
- // Apply accelerator preferences before any model loads
- managers::transcription::apply_accelerator_settings(app_handle);
-
// Add managers to Tauri's managed state
app_handle.manage(recording_manager.clone());
app_handle.manage(model_manager.clone());
@@ -708,7 +705,6 @@ pub fn run(cli_args: CliArgs) {
shortcut::get_keyboard_implementation,
shortcut::change_show_tray_icon_setting,
shortcut::change_transcribe_accelerator_setting,
- shortcut::change_ort_accelerator_setting,
shortcut::change_transcribe_gpu_device,
shortcut::get_available_accelerators,
shortcut::handy_keys::start_handy_keys_recording,
@@ -735,6 +731,8 @@ pub fn run(cli_args: CliArgs) {
commands::models::get_model_info,
commands::models::download_model,
commands::models::delete_model,
+ commands::models::get_retired_models,
+ commands::models::delete_retired_model,
commands::models::cancel_download,
commands::models::set_active_model,
commands::models::get_current_model,
@@ -920,7 +918,6 @@ pub fn run(cli_args: CliArgs) {
managers::transcription::report_compute_devices(&transcription_manager);
app_handle.manage(model_manager);
app_handle.manage(transcription_manager);
- managers::transcription::apply_accelerator_settings(&app_handle);
let handle = app_handle.clone();
let args = cli_args.clone();
diff --git a/src-tauri/src/managers/model.rs b/src-tauri/src/managers/model.rs
index 6b0319f6..51cd8d5f 100644
--- a/src-tauri/src/managers/model.rs
+++ b/src-tauri/src/managers/model.rs
@@ -3,7 +3,6 @@ use super::model_capabilities::{
};
use crate::settings::{get_settings, write_settings};
use anyhow::Result;
-use flate2::read::GzDecoder;
use hf_hub::api::tokio::{ApiBuilder, CancellationToken, Progress};
use hf_hub::{Cache, Repo, RepoType};
use log::{debug, error, info, warn};
@@ -11,33 +10,16 @@ use serde::{Deserialize, Serialize};
use specta::Type;
use std::collections::{HashMap, HashSet};
use std::fs;
-use std::fs::File;
use std::path::{Path, PathBuf};
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::{Arc, Mutex};
use std::time::{Duration, Instant};
-use tar::Archive;
use tauri::{AppHandle, Emitter, Manager};
mod download;
use download::{HttpDownloadOutcome, DOWNLOAD_STALL_TIMEOUT};
-#[derive(Debug, Clone, Serialize, Deserialize, Type)]
-pub enum EngineType {
- /// Any GGML/GGUF model loaded through transcribe-cpp (Whisper, Parakeet,
- /// Voxtral, Qwen3-ASR, Nemotron, …). The architecture is auto-detected from
- /// the file, so this one variant covers the whole transcribe-cpp family.
- TranscribeCpp,
- Parakeet,
- Moonshine,
- MoonshineStreaming,
- SenseVoice,
- GigaAM,
- Canary,
- Cohere,
-}
-
/// Where a model comes from and how Handy obtains it — the routing discriminant
/// for downloading and on-disk resolution.
#[derive(Debug, Clone, Serialize, Deserialize, Type)]
@@ -68,8 +50,6 @@ pub struct ModelInfo {
pub is_downloaded: bool,
pub is_downloading: bool,
pub partial_size: u64,
- pub is_directory: bool,
- pub engine_type: EngineType,
pub accuracy_score: f32, // 0.0 to 1.0, higher is more accurate
pub speed_score: f32, // 0.0 to 1.0, higher is faster
pub supports_translation: bool, // Whether the model supports translating to English
@@ -170,7 +150,6 @@ pub struct ModelDescriptor {
pub source: ModelSource,
pub name: String,
pub description: String,
- pub engine_type: EngineType,
pub caps: CapabilityProbe,
pub files: Vec<QuantFile>,
pub default_quant: Option<String>,
@@ -241,8 +220,6 @@ impl ModelDescriptor {
is_downloaded: status.is_downloaded,
is_downloading: status.is_downloading,
partial_size: status.partial_size,
- is_directory: false,
- engine_type: self.engine_type.clone(),
accuracy_score: self.accuracy_score,
speed_score: self.speed_score,
supports_translation: self.caps.supports_translation.unwrap_or(false),
@@ -539,12 +516,115 @@ impl<'a> Drop for DownloadCleanup<'a> {
}
}
+/// A retired ONNX model: nothing can load it anymore, but it may still be on
+/// disk. The update screen offers its GGUF replacement and then deletes it.
+/// This table is the single source of truth for retired models; the frontend
+/// only renders what `get_retired_models` reports.
+struct RetiredOnnxModel {
+ id: &'static str,
+ name: &'static str,
+ /// Every name the model was stored under in the models dir: a directory,
+ /// or for GigaAM before #1088, a single `.onnx` file.
+ disk_names: &'static [&'static str],
+ size_mb: u64,
+ /// Hugging Face repo of the catalog model that replaces it.
+ replacement_repo: &'static str,
+}
+
+const RETIRED_ONNX_MODELS: &[RetiredOnnxModel] = &[
+ RetiredOnnxModel {
+ id: "parakeet-tdt-0.6b-v2",
+ name: "Parakeet V2",
+ disk_names: &["parakeet-tdt-0.6b-v2-int8"],
+ size_mb: 451,
+ replacement_repo: "handy-computer/parakeet-tdt-0.6b-v2-gguf",
+ },
+ RetiredOnnxModel {
+ id: "parakeet-tdt-0.6b-v3",
+ name: "Parakeet V3",
+ disk_names: &["parakeet-tdt-0.6b-v3-int8"],
+ size_mb: 456,
+ replacement_repo: "handy-computer/parakeet-tdt-0.6b-v3-gguf",
+ },
+ RetiredOnnxModel {
+ id: "moonshine-base",
+ name: "Moonshine Base",
+ disk_names: &["moonshine-base"],
+ size_mb: 55,
+ replacement_repo: "handy-computer/moonshine-base-gguf",
+ },
+ RetiredOnnxModel {
+ id: "moonshine-tiny-streaming-en",
+ name: "Moonshine V2 Tiny",
+ disk_names: &["moonshine-tiny-streaming-en"],
+ size_mb: 31,
+ replacement_repo: "handy-computer/moonshine-streaming-tiny-gguf",
+ },
+ RetiredOnnxModel {
+ id: "moonshine-small-streaming-en",
+ name: "Moonshine V2 Small",
+ disk_names: &["moonshine-small-streaming-en"],
+ size_mb: 99,
+ replacement_repo: "handy-computer/moonshine-streaming-small-gguf",
+ },
+ RetiredOnnxModel {
+ id: "moonshine-medium-streaming-en",
+ name: "Moonshine V2 Medium",
+ disk_names: &["moonshine-medium-streaming-en"],
+ size_mb: 192,
+ replacement_repo: "handy-computer/moonshine-streaming-medium-gguf",
+ },
+ RetiredOnnxModel {
+ id: "sense-voice-int8",
+ name: "SenseVoice",
+ disk_names: &["sense-voice-int8"],
+ size_mb: 152,
+ replacement_repo: "handy-computer/SenseVoiceSmall-gguf",
+ },
+ RetiredOnnxModel {
+ id: "gigaam-v3-e2e-ctc",
+ name: "GigaAM v3",
+ disk_names: &["giga-am-v3-int8", "giga-am-v3.int8.onnx"],
+ size_mb: 151,
+ replacement_repo: "handy-computer/gigaam-v3-e2e-ctc-gguf",
+ },
+ RetiredOnnxModel {
+ id: "canary-180m-flash",
+ name: "Canary 180M Flash",
+ disk_names: &["canary-180m-flash"],
+ size_mb: 146,
+ replacement_repo: "handy-computer/canary-180m-flash-gguf",
+ },
+ RetiredOnnxModel {
+ id: "canary-1b-v2",
+ name: "Canary 1B v2",
+ disk_names: &["canary-1b-v2"],
+ size_mb: 691,
+ replacement_repo: "handy-computer/canary-1b-v2-gguf",
+ },
+ RetiredOnnxModel {
+ id: "cohere-int8",
+ name: "Cohere",
+ disk_names: &["cohere-int8"],
+ size_mb: 1708,
+ replacement_repo: "handy-computer/cohere-transcribe-03-2026-gguf",
+ },
+];
+
+/// A retired ONNX model found on disk.
+#[derive(Serialize, Clone, Debug, Type)]
+pub struct RetiredModel {
+ pub id: String,
+ pub name: String,
+ pub size_mb: u64,
+ pub replacement_repo: String,
+}
+
pub struct ModelManager {
app_handle: AppHandle,
models_dir: PathBuf,
available_models: Mutex<HashMap<String, ModelInfo>>,
cancel_flags: Arc<Mutex<HashMap<String, CancellationToken>>>,
- extracting_models: Arc<Mutex<HashSet<String>>>,
/// Single-flight guard for [`Self::rescan_local_models`] so concurrent
/// refresh requests coalesce instead of scanning the disk in parallel.
is_rescanning: Arc<AtomicBool>,
@@ -596,8 +676,6 @@ impl ModelManager {
is_downloaded: false,
is_downloading: false,
partial_size: 0,
- is_directory: false,
- engine_type: EngineType::TranscribeCpp,
accuracy_score: 0.60,
speed_score: 0.85,
supports_translation: true,
@@ -629,8 +707,6 @@ impl ModelManager {
is_downloaded: false,
is_downloading: false,
partial_size: 0,
- is_directory: false,
- engine_type: EngineType::TranscribeCpp,
accuracy_score: 0.75,
speed_score: 0.60,
supports_translation: true,
@@ -661,8 +737,6 @@ impl ModelManager {
is_downloaded: false,
is_downloading: false,
partial_size: 0,
- is_directory: false,
- engine_type: EngineType::TranscribeCpp,
accuracy_score: 0.80,
speed_score: 0.40,
supports_translation: false, // Turbo doesn't support translation
@@ -693,8 +767,6 @@ impl ModelManager {
is_downloaded: false,
is_downloading: false,
partial_size: 0,
- is_directory: false,
- engine_type: EngineType::TranscribeCpp,
accuracy_score: 0.85,
speed_score: 0.30,
supports_translation: true,
@@ -726,8 +798,6 @@ impl ModelManager {
is_downloaded: false,
is_downloading: false,
partial_size: 0,
- is_directory: false,
- engine_type: EngineType::TranscribeCpp,
accuracy_score: 0.85,
speed_score: 0.35,
supports_translation: false,
@@ -740,408 +810,6 @@ impl ModelManager {
},
);
- // Add NVIDIA Parakeet models (directory-based)
- available_models.insert(
- "parakeet-tdt-0.6b-v2".to_string(),
- ModelInfo {
- id: "parakeet-tdt-0.6b-v2".to_string(),
- name: "Parakeet V2".to_string(),
- description: "English only. The best model for English speakers.".to_string(),
- filename: "parakeet-tdt-0.6b-v2-int8".to_string(), // Directory name
- source: ModelSource::Url {
- url: "https://blob.handy.computer/parakeet-v2-int8.tar.gz".to_string(),
- sha256: Some(
- "ac9b9429984dd565b25097337a887bb7f0f8ac393573661c651f0e7d31563991"
- .to_string(),
- ),
- },
- size_mb: 451,
- is_downloaded: false,
- is_downloading: false,
- partial_size: 0,
- is_directory: true,
- engine_type: EngineType::Parakeet,
- accuracy_score: 0.85,
- speed_score: 0.85,
- supports_translation: false,
- is_recommended: false,
- supported_languages: vec!["en".to_string()],
- supports_language_selection: false,
- is_custom: false,
- supports_streaming: false,
- supports_language_detection: true,
- },
- );
-
- // Parakeet V3 supported languages (25 EU languages + Russian/Ukrainian):
- // bg, hr, cs, da, nl, en, et, fi, fr, de, el, hu, it, lv, lt, mt, pl, pt, ro, sk, sl, es, sv, ru, uk
- let parakeet_v3_languages: Vec<String> = vec![
- "bg", "hr", "cs", "da", "nl", "en", "et", "fi", "fr", "de", "el", "hu", "it", "lv",
- "lt", "mt", "pl", "pt", "ro", "sk", "sl", "es", "sv", "ru", "uk",
- ]
- .into_iter()
- .map(String::from)
- .collect();
-
- available_models.insert(
- "parakeet-tdt-0.6b-v3".to_string(),
- ModelInfo {
- id: "parakeet-tdt-0.6b-v3".to_string(),
- name: "Parakeet V3".to_string(),
- description: "Fast and accurate. Supports 25 European languages.".to_string(),
- filename: "parakeet-tdt-0.6b-v3-int8".to_string(), // Directory name
- source: ModelSource::Url {
- url: "https://blob.handy.computer/parakeet-v3-int8.tar.gz".to_string(),
- sha256: Some(
- "43d37191602727524a7d8c6da0eef11c4ba24320f5b4730f1a2497befc2efa77"
- .to_string(),
- ),
- },
- size_mb: 456,
- is_downloaded: false,
- is_downloading: false,
- partial_size: 0,
- is_directory: true,
- engine_type: EngineType::Parakeet,
- accuracy_score: 0.80,
- speed_score: 0.85,
- supports_translation: false,
- is_recommended: true,
- supported_languages: parakeet_v3_languages,
- supports_language_selection: false,
- is_custom: false,
- supports_streaming: false,
- supports_language_detection: true,
- },
- );
-
- available_models.insert(
- "moonshine-base".to_string(),
- ModelInfo {
- id: "moonshine-base".to_string(),
- name: "Moonshine Base".to_string(),
- description: "Very fast, English only. Handles accents well.".to_string(),
- filename: "moonshine-base".to_string(),
- source: ModelSource::Url {
- url: "https://blob.handy.computer/moonshine-base.tar.gz".to_string(),
- sha256: Some(
- "04bf6ab012cfceebd4ac7cf88c1b31d027bbdd3cd704649b692e2e935236b7e8"
- .to_string(),
- ),
- },
- size_mb: 55,
- is_downloaded: false,
- is_downloading: false,
- partial_size: 0,
- is_directory: true,
- engine_type: EngineType::Moonshine,
- accuracy_score: 0.70,
- speed_score: 0.90,
- supports_translation: false,
- is_recommended: false,
- supported_languages: vec!["en".to_string()],
- supports_language_selection: false,
- is_custom: false,
- supports_streaming: false,
- supports_language_detection: true,
- },
- );
-
- available_models.insert(
- "moonshine-tiny-streaming-en".to_string(),
- ModelInfo {
- id: "moonshine-tiny-streaming-en".to_string(),
- name: "Moonshine V2 Tiny".to_string(),
- description: "Ultra-fast, English only".to_string(),
- filename: "moonshine-tiny-streaming-en".to_string(),
- source: ModelSource::Url {
- url: "https://blob.handy.computer/moonshine-tiny-streaming-en.tar.gz"
- .to_string(),
- sha256: Some(
- "465addcfca9e86117415677dfdc98b21edc53537210333a3ecdb58509a80abaf"
- .to_string(),
- ),
- },
- size_mb: 31,
- is_downloaded: false,
- is_downloading: false,
- partial_size: 0,
- is_directory: true,
- engine_type: EngineType::MoonshineStreaming,
- accuracy_score: 0.55,
- speed_score: 0.95,
- supports_translation: false,
- is_recommended: false,
- supported_languages: vec!["en".to_string()],
- supports_language_selection: false,
- is_custom: false,
- supports_streaming: false,
- supports_language_detection: true,
- },
- );
-
- available_models.insert(
- "moonshine-small-streaming-en".to_string(),
- ModelInfo {
- id: "moonshine-small-streaming-en".to_string(),
- name: "Moonshine V2 Small".to_string(),
- description: "Fast, English only. Good balance of speed and accuracy.".to_string(),
- filename: "moonshine-small-streaming-en".to_string(),
- source: ModelSource::Url {
- url: "https://blob.handy.computer/moonshine-small-streaming-en.tar.gz"
- .to_string(),
- sha256: Some(
- "dbb3e1c1832bd88a4ac712f7449a136cc2c9a18c5fe33a12ed1b7cb1cfe9cdd5"
- .to_string(),
- ),
- },
- size_mb: 99,
- is_downloaded: false,
- is_downloading: false,
- partial_size: 0,
- is_directory: true,
- engine_type: EngineType::MoonshineStreaming,
- accuracy_score: 0.65,
- speed_score: 0.90,
- supports_translation: false,
- is_recommended: false,
- supported_languages: vec!["en".to_string()],
- supports_language_selection: false,
- is_custom: false,
- supports_streaming: false,
- supports_language_detection: true,
- },
- );
-
- available_models.insert(
- "moonshine-medium-streaming-en".to_string(),
- ModelInfo {
- id: "moonshine-medium-streaming-en".to_string(),
- name: "Moonshine V2 Medium".to_string(),
- description: "English only. High quality.".to_string(),
- filename: "moonshine-medium-streaming-en".to_string(),
- source: ModelSource::Url {
- url: "https://blob.handy.computer/moonshine-medium-streaming-en.tar.gz"
- .to_string(),
- sha256: Some(
- "07a66f3bff1c77e75a2f637e5a263928a08baae3c29c4c053fc968a9a9373d13"
- .to_string(),
- ),
- },
- size_mb: 192,
- is_downloaded: false,
- is_downloading: false,
- partial_size: 0,
- is_directory: true,
- engine_type: EngineType::MoonshineStreaming,
- accuracy_score: 0.75,
- speed_score: 0.80,
- supports_translation: false,
- is_recommended: false,
- supported_languages: vec!["en".to_string()],
- supports_language_selection: false,
- is_custom: false,
- supports_streaming: false,
- supports_language_detection: true,
- },
- );
-
- // SenseVoice supported languages
- let sense_voice_languages: Vec<String> = vec!["zh", "en", "yue", "ja", "ko"]
- .into_iter()
- .map(String::from)
- .collect();
-
- available_models.insert(
- "sense-voice-int8".to_string(),
- ModelInfo {
- id: "sense-voice-int8".to_string(),
- name: "SenseVoice".to_string(),
- description: "Very fast. Chinese, English, Japanese, Korean, Cantonese."
- .to_string(),
- filename: "sense-voice-int8".to_string(),
- source: ModelSource::Url {
- url: "https://blob.handy.computer/sense-voice-int8.tar.gz".to_string(),
- sha256: Some(
- "171d611fe5d353a50bbb741b6f3ef42559b1565685684e9aa888ef563ba3e8a4"
- .to_string(),
- ),
- },
- size_mb: 152,
- is_downloaded: false,
- is_downloading: false,
- partial_size: 0,
- is_directory: true,
- engine_type: EngineType::SenseVoice,
- accuracy_score: 0.65,
- speed_score: 0.95,
- supports_translation: false,
- is_recommended: false,
- supported_languages: sense_voice_languages,
- supports_language_selection: true,
- is_custom: false,
- supports_streaming: false,
- supports_language_detection: true,
- },
- );
-
- // GigaAM v3 supported languages
- let gigaam_languages: Vec<String> = vec!["ru"].into_iter().map(String::from).collect();
-
- available_models.insert(
- "gigaam-v3-e2e-ctc".to_string(),
- ModelInfo {
- id: "gigaam-v3-e2e-ctc".to_string(),
- name: "GigaAM v3".to_string(),
- description: "Russian speech recognition. Fast and accurate.".to_string(),
- filename: "giga-am-v3-int8".to_string(),
- source: ModelSource::Url {
- url: "https://blob.handy.computer/giga-am-v3-int8.tar.gz".to_string(),
- sha256: Some(
- "d872462268430db140b69b72e0fc4b787b194c1dbe51b58de39444d55b6da45b"
- .to_string(),
- ),
- },
- size_mb: 151,
- is_downloaded: false,
- is_downloading: false,
- partial_size: 0,
- is_directory: true,
- engine_type: EngineType::GigaAM,
- accuracy_score: 0.85,
- speed_score: 0.75,
- supports_translation: false,
- is_recommended: false,
- supported_languages: gigaam_languages,
- supports_language_selection: false,
- is_custom: false,
- supports_streaming: false,
- supports_language_detection: true,
- },
- );
-
- // Canary 180m Flash supported languages (4 languages)
- let canary_flash_languages: Vec<String> = vec!["en", "de", "es", "fr"]
- .into_iter()
- .map(String::from)
- .collect();
-
- available_models.insert(
- "canary-180m-flash".to_string(),
- ModelInfo {
- id: "canary-180m-flash".to_string(),
- name: "Canary 180M Flash".to_string(),
- description: "Very fast. English, German, Spanish, French. Supports translation."
- .to_string(),
- filename: "canary-180m-flash".to_string(),
- source: ModelSource::Url {
- url: "https://blob.handy.computer/canary-180m-flash.tar.gz".to_string(),
- sha256: Some(
- "6d9cfca6118b296e196eaedc1c8fa9788305a7b0f1feafdb6dc91932ab6e53f7"
- .to_string(),
- ),
- },
- size_mb: 146,
- is_downloaded: false,
- is_downloading: false,
- partial_size: 0,
- is_directory: true,
- engine_type: EngineType::Canary,
- accuracy_score: 0.75,
- speed_score: 0.85,
- supports_translation: true,
- is_recommended: false,
- supported_languages: canary_flash_languages,
- supports_language_selection: true,
- is_custom: false,
- supports_streaming: false,
- // Canary (NeMo) requires an explicit source language — no auto-detect.
- supports_language_detection: false,
- },
- );
-
- // Canary 1B v2 supported languages (25 EU languages)
- let canary_1b_languages: Vec<String> = vec![
- "bg", "hr", "cs", "da", "nl", "en", "et", "fi", "fr", "de", "el", "hu", "it", "lv",
- "lt", "mt", "pl", "pt", "ro", "sk", "sl", "es", "sv", "ru", "uk",
- ]
- .into_iter()
- .map(String::from)
- .collect();
-
- available_models.insert(
- "canary-1b-v2".to_string(),
- ModelInfo {
- id: "canary-1b-v2".to_string(),
- name: "Canary 1B v2".to_string(),
- description: "Accurate multilingual. 25 European languages. Supports translation."
- .to_string(),
- filename: "canary-1b-v2".to_string(),
- source: ModelSource::Url {
- url: "https://blob.handy.computer/canary-1b-v2.tar.gz".to_string(),
- sha256: Some(
- "02305b2a25f9cf3e7deaffa7f94df00efa44f442cd55c101c2cb9c000f904666"
- .to_string(),
- ),
- },
- size_mb: 691,
- is_downloaded: false,
- is_downloading: false,
- partial_size: 0,
- is_directory: true,
- engine_type: EngineType::Canary,
- accuracy_score: 0.85,
- speed_score: 0.70,
- supports_translation: true,
- is_recommended: false,
- supported_languages: canary_1b_languages,
- supports_language_selection: true,
- is_custom: false,
- supports_streaming: false,
- // Canary (NeMo) requires an explicit source language — no auto-detect.
- supports_language_detection: false,
- },
- );
-
- let cohere_languages: Vec<String> = vec![
- "en", "fr", "de", "it", "es", "pt", "el", "nl", "pl", "zh", "ja", "ko", "vi", "ar",
- ]
- .into_iter()
- .map(String::from)
- .collect();
-
- available_models.insert(
- "cohere-int8".to_string(),
- ModelInfo {
- id: "cohere-int8".to_string(),
- name: "Cohere".to_string(),
- description: "A large, slower, but very accurate multilingual model.".to_string(),
- filename: "cohere-int8".to_string(),
- source: ModelSource::Url {
- url: "https://blob.handy.computer/cohere-int8.tar.gz".to_string(),
- sha256: Some(
- "ea2257d52434f3644574f187dcdcf666e302cd11b92866116ab8e14cd9c887f0"
- .to_string(),
- ),
- },
- size_mb: 1708,
- is_downloaded: false,
- is_downloading: false,
- partial_size: 0,
- is_directory: true,
- engine_type: EngineType::Cohere,
- accuracy_score: 0.90,
- speed_score: 0.60,
- supports_translation: false,
- is_recommended: false,
- supported_languages: cohere_languages,
- supports_language_selection: true,
- is_custom: false,
- supports_streaming: false,
- supports_language_detection: true,
- },
- );
-
// Seed the bundled offline catalog before the on-disk scans, so a model
// already in the HF cache dedups onto its richer catalog entry (the scans
// only insert ids not already present) instead of showing as a bare cache
@@ -1162,16 +830,12 @@ impl ModelManager {
models_dir,
available_models: Mutex::new(available_models),
cancel_flags: Arc::new(Mutex::new(HashMap::new())),
- extracting_models: Arc::new(Mutex::new(HashSet::new())),
is_rescanning: Arc::new(AtomicBool::new(false)),
};
// Migrate any bundled models to user directory
manager.migrate_bundled_models()?;
- // Migrate GigaAM from single-file to directory format
- manager.migrate_gigaam_to_directory()?;
-
// Check which models are already downloaded
manager.update_download_status()?;
@@ -1354,47 +1018,48 @@ impl ModelManager {
Ok(())
}
- /// Migrate GigaAM from the old single-file format (giga-am-v3.int8.onnx)
- /// to the new directory format (giga-am-v3-int8/model.int8.onnx + vocab.txt).
- /// This was required by the transcribe-rs 0.3.x upgrade.
- fn migrate_gigaam_to_directory(&self) -> Result<()> {
- let old_file = self.models_dir.join("giga-am-v3.int8.onnx");
- let new_dir = self.models_dir.join("giga-am-v3-int8");
-
- if !old_file.exists() || new_dir.exists() {
- return Ok(());
- }
-
- info!("Migrating GigaAM from single-file to directory format");
-
- let vocab_path = self
- .app_handle
- .path()
- .resolve(
- "resources/models/gigaam_vocab.txt",
- tauri::path::BaseDirectory::Resource,
- )
- .map_err(|e| anyhow::anyhow!("Failed to resolve GigaAM vocab path: {}", e))?;
-
- info!(
- "Resolved vocab path: {:?} (exists: {})",
- vocab_path,
- vocab_path.exists()
- );
- info!("Old file: {:?} (exists: {})", old_file, old_file.exists());
- info!("New dir: {:?} (exists: {})", new_dir, new_dir.exists());
+ fn is_retired_on_disk(&self, model: &RetiredOnnxModel) -> bool {
+ model
+ .disk_names
+ .iter()
+ .any(|name| self.models_dir.join(name).exists())
+ }
- fs::create_dir_all(&new_dir)?;
- fs::rename(&old_file, new_dir.join("model.int8.onnx"))?;
- fs::copy(&vocab_path, new_dir.join("vocab.txt"))?;
+ /// Retired ONNX models still on disk, in any layout they were stored in.
+ pub fn get_retired_models(&self) -> Vec<RetiredModel> {
+ RETIRED_ONNX_MODELS
+ .iter()
+ .filter(|model| self.is_retired_on_disk(model))
+ .map(|model| RetiredModel {
+ id: model.id.to_string(),
+ name: model.name.to_string(),
+ size_mb: model.size_mb,
+ replacement_repo: model.replacement_repo.to_string(),
+ })
+ .collect()
+ }
- // Clean up old partial file if it exists
- let old_partial = self.models_dir.join("giga-am-v3.int8.onnx.partial");
- if old_partial.exists() {
- let _ = fs::remove_file(&old_partial);
+ /// Delete everything a retired ONNX model left on disk, in any layout,
+ /// including interrupted downloads (`.partial`) and extractions
+ /// (`.extracting`).
+ pub fn delete_retired_model(&self, model_id: &str) -> Result<()> {
+ let model = RETIRED_ONNX_MODELS
+ .iter()
+ .find(|model| model.id == model_id)
+ .ok_or_else(|| anyhow::anyhow!("Not a retired model: {}", model_id))?;
+ for name in model.disk_names {
+ for suffix in ["", ".partial", ".extracting"] {
+ let path = self.models_dir.join(format!("{name}{suffix}"));
+ if path.is_dir() {
+ fs::remove_dir_all(&path)?;
+ } else if path.exists() {
+ fs::remove_file(&path)?;
+ } else {
+ continue;
+ }
+ info!("Deleted retired model files at {:?}", path);
+ }
}
-
- info!("GigaAM migration complete");
Ok(())
}
@@ -1428,48 +1093,17 @@ impl ModelManager {
}
continue;
}
- if model.is_directory {
- // For directory-based models, check if the directory exists
- let model_path = self.models_dir.join(&model.filename);
- let partial_path = self.models_dir.join(format!("{}.partial", &model.filename));
- let extracting_path = self
- .models_dir
- .join(format!("{}.extracting", &model.filename));
-
- // Clean up any leftover .extracting directories from interrupted extractions
- // But only if this model is NOT currently being extracted
- let is_currently_extracting = {
- let extracting = self.extracting_models.lock().unwrap();
- extracting.contains(&model.id)
- };
- if extracting_path.exists() && !is_currently_extracting {
- warn!("Cleaning up interrupted extraction for model: {}", model.id);
- let _ = fs::remove_dir_all(&extracting_path);
- }
+ let model_path = self.models_dir.join(&model.filename);
+ let partial_path = self.models_dir.join(format!("{}.partial", &model.filename));
- model.is_downloaded = model_path.exists() && model_path.is_dir();
- model.is_downloading = false;
+ model.is_downloaded = model_path.exists();
+ model.is_downloading = false;
- // Get partial file size if it exists (for the .tar.gz being downloaded)
- if partial_path.exists() {
- model.partial_size = partial_path.metadata().map(|m| m.len()).unwrap_or(0);
- } else {
- model.partial_size = 0;
- }
+ // Get partial file size if it exists
+ if partial_path.exists() {
+ model.partial_size = partial_path.metadata().map(|m| m.len()).unwrap_or(0);
} else {
- // For file-based models (existing logic)
- let model_path = self.models_dir.join(&model.filename);
- let partial_path = self.models_dir.join(format!("{}.partial", &model.filename));
-
- model.is_downloaded = model_path.exists();
- model.is_downloading = false;
-
- // Get partial file size if it exists
- if partial_path.exists() {
- model.partial_size = partial_path.metadata().map(|m| m.len()).unwrap_or(0);
- } else {
- model.partial_size = 0;
- }
+ model.partial_size = 0;
}
// Custom entries are discovered from files and have no download
@@ -1553,7 +1187,13 @@ impl ModelManager {
Self::selected_model_is_available(&models, &settings.selected_model)
};
- if !is_available {
+ // A retired model on disk stays selected so the frontend can
+ // offer its replacement. It can't load: it isn't in the registry.
+ let is_retired = RETIRED_ONNX_MODELS
+ .iter()
+ .any(|model| model.id == settings.selected_model && self.is_retired_on_disk(model));
+
+ if !is_available && !is_retired {
info!(
"Selected model '{}' is not available on disk; clearing selection",
settings.selected_model
@@ -1607,10 +1247,9 @@ impl ModelManager {
return Ok(());
}
- // Collect filenames of predefined transcribe-cpp file-based models to skip
+ // Collect filenames of predefined models to skip
let predefined_filenames: HashSet<String> = available_models
.values()
- .filter(|m| matches!(m.engine_type, EngineType::TranscribeCpp) && !m.is_directory)
.map(|m| m.filename.clone())
.collect();
@@ -1738,8 +1377,6 @@ impl ModelManager {
is_downloaded: true, // Already present on disk
is_downloading: false,
partial_size: 0,
- is_directory: false,
- engine_type: EngineType::TranscribeCpp,
accuracy_score: 0.0, // Sentinel: UI hides score bars when both are 0
speed_score: 0.0,
supports_translation: caps.supports_translation,
@@ -1884,8 +1521,6 @@ impl ModelManager {
is_downloaded: true,
is_downloading: false,
partial_size: 0,
- is_directory: false,
- engine_type: EngineType::TranscribeCpp,
accuracy_score: 0.0,
speed_score: 0.0,
supports_translation: caps.supports_translation,
@@ -2300,98 +1935,7 @@ impl ModelManager {
HttpDownloadOutcome::Completed => {}
}
- // Handle directory-based models (extract tar.gz) vs file-based models
- if model_info.is_directory {
- // Track that this model is being extracted
- {
- let mut extracting = self.extracting_models.lock().unwrap();
- extracting.insert(model_id.to_string());
- }
-
- // Emit extraction started event
- let _ = self.app_handle.emit("model-extraction-started", model_id);
- info!("Extracting archive for directory-based model: {}", model_id);
-
- // Use a temporary extraction directory to ensure atomic operations
- let temp_extract_dir = self
- .models_dir
- .join(format!("{}.extracting", &model_info.filename));
- let final_model_dir = self.models_dir.join(&model_info.filename);
-
- // Clean up any previous incomplete extraction
- if temp_extract_dir.exists() {
- let _ = fs::remove_dir_all(&temp_extract_dir);
- }
-
- // Create temporary extraction directory
- fs::create_dir_all(&temp_extract_dir)?;
-
- // Open the downloaded tar.gz file
- let tar_gz = File::open(&partial_path)?;
- let tar = GzDecoder::new(tar_gz);
- let mut archive = Archive::new(tar);
-
- // Extract to the temporary directory first
- archive.unpack(&temp_extract_dir).map_err(|e| {
- let error_msg = format!("Failed to extract archive: {}", e);
- // Clean up failed extraction
- let _ = fs::remove_dir_all(&temp_extract_dir);
- // Delete the corrupt partial file so the next download attempt starts fresh
- // instead of resuming from a broken archive (issue #858).
- let _ = fs::remove_file(&partial_path);
- // Remove from extracting set
- {
- let mut extracting = self.extracting_models.lock().unwrap();
- extracting.remove(model_id);
- }
- let _ = self.app_handle.emit(
- "model-extraction-failed",
- &serde_json::json!({
- "model_id": model_id,
- "error": error_msg
- }),
- );
- anyhow::anyhow!(error_msg)
- })?;
-
- // Find the actual extracted directory (archive might have a nested structure)
- let extracted_dirs: Vec<_> = fs::read_dir(&temp_extract_dir)?
- .filter_map(|entry| entry.ok())
- .filter(|entry| entry.file_type().map(|ft| ft.is_dir()).unwrap_or(false))
- .collect();
-
- if extracted_dirs.len() == 1 {
- // Single directory extracted, move it to the final location
- let source_dir = extracted_dirs[0].path();
- if final_model_dir.exists() {
- fs::remove_dir_all(&final_model_dir)?;
- }
- fs::rename(&source_dir, &final_model_dir)?;
- // Clean up temp directory
- let _ = fs::remove_dir_all(&temp_extract_dir);
- } else {
- // Multiple items or no directories, rename the temp directory itself
- if final_model_dir.exists() {
- fs::remove_dir_all(&final_model_dir)?;
- }
- fs::rename(&temp_extract_dir, &final_model_dir)?;
- }
-
- info!("Successfully extracted archive for model: {}", model_id);
- // Remove from extracting set
- {
- let mut extracting = self.extracting_models.lock().unwrap();
- extracting.remove(model_id);
- }
- // Emit extraction completed event
- let _ = self.app_handle.emit("model-extraction-completed", model_id);
-
- // Remove the downloaded tar.gz file
- let _ = fs::remove_file(&partial_path);
- } else {
- // Move partial file to final location for file-based models
- fs::rename(&partial_path, &model_path)?;
- }
+ fs::rename(&partial_path, &model_path)?;
// Disarm the guard — success path does its own cleanup because it
// additionally sets is_downloaded = true.
@@ -2497,25 +2041,15 @@ impl ModelManager {
let mut deleted_something = false;
- if model_info.is_directory {
- // Delete complete model directory if it exists
- if model_path.exists() && model_path.is_dir() {
- info!("Deleting model directory at: {:?}", model_path);
- fs::remove_dir_all(&model_path)?;
- info!("Model directory deleted successfully");
- deleted_something = true;
- }
- } else {
- // Delete complete model file if it exists
- if model_path.exists() {
- info!("Deleting model file at: {:?}", model_path);
- fs::remove_file(&model_path)?;
- info!("Model file deleted successfully");
- deleted_something = true;
- }
+ // Delete complete model file if it exists
+ if model_path.exists() {
+ info!("Deleting model file at: {:?}", model_path);
+ fs::remove_file(&model_path)?;
+ info!("Model file deleted successfully");
+ deleted_something = true;
}
- // Delete partial file if it exists (same for both types)
+ // Delete partial file if it exists
if partial_path.exists() {
info!("Deleting partial file at: {:?}", partial_path);
fs::remove_file(&partial_path)?;
@@ -2630,34 +2164,17 @@ impl ModelManager {
.models_dir
.join(format!("{}.partial", &model_info.filename));
- if model_info.is_directory {
- if !model_path.exists() || !model_path.is_dir() {
- self.mark_model_unavailable(model_id);
- return Err(anyhow::anyhow!(
- "Complete model directory not found: {}",
- model_id
- ));
- }
- if partial_path.exists() {
- return Err(anyhow::anyhow!(
- "Model directory is incomplete: {}",
- model_id
- ));
- }
- Ok(model_path)
- } else {
- if !model_path.exists() {
- self.mark_model_unavailable(model_id);
- return Err(anyhow::anyhow!(
- "Complete model file not found: {}",
- model_id
- ));
- }
- if partial_path.exists() {
- return Err(anyhow::anyhow!("Model file is incomplete: {}", model_id));
- }
- Ok(model_path)
+ if !model_path.exists() {
+ self.mark_model_unavailable(model_id);
+ return Err(anyhow::anyhow!(
+ "Complete model file not found: {}",
+ model_id
+ ));
+ }
+ if partial_path.exists() {
+ return Err(anyhow::anyhow!("Model file is incomplete: {}", model_id));
}
+ Ok(model_path)
}
pub fn cancel_download(&self, model_id: &str) -> Result<()> {
@@ -2698,6 +2215,7 @@ impl ModelManager {
#[cfg(test)]
mod tests {
use super::*;
+ use std::fs::File;
use std::io::Write;
use tempfile::TempDir;
@@ -2885,8 +2403,6 @@ mod tests {
is_downloaded: false,
is_downloading: false,
partial_size: 0,
- is_directory: false,
- engine_type: EngineType::TranscribeCpp,
accuracy_score: 0.5,
speed_score: 0.5,
supports_translation: true,
@@ -2930,7 +2446,6 @@ mod tests {
assert_eq!(gguf.filename, "my-gguf-model.gguf");
assert_eq!(gguf.name, "Friendly GGUF Name");
assert!(gguf.is_custom);
- assert!(matches!(gguf.engine_type, EngineType::TranscribeCpp));
// Should NOT have discovered hidden, non-model, predefined, partial, or directories
assert!(!models.contains_key(".hidden-model"));
@@ -2976,7 +2491,6 @@ mod tests {
},
name: "Model".to_string(),
description: "desc".to_string(),
- engine_type: EngineType::TranscribeCpp,
caps: CapabilityProbe::default(),
files: vec![
QuantFile {
diff --git a/src-tauri/src/managers/transcription.rs b/src-tauri/src/managers/transcription.rs
index e3907236..904a9425 100644
--- a/src-tauri/src/managers/transcription.rs
+++ b/src-tauri/src/managers/transcription.rs
@@ -8,10 +8,9 @@ use crate::engine_supervisor::{
StreamProgress, Unloading,
};
use crate::managers::audio::AudioRecordingManager;
-use crate::managers::model::{EngineType, ModelManager};
+use crate::managers::model::ModelManager;
use crate::settings::{
- get_settings, AppSettings, ChineseScript, ModelUnloadTimeout, OrtAcceleratorSetting,
- TranscribeAcceleratorSetting,
+ get_settings, AppSettings, ChineseScript, ModelUnloadTimeout, TranscribeAcceleratorSetting,
};
use anyhow::Result;
use log::{debug, error, info, warn};
@@ -25,18 +24,6 @@ use std::time::{Duration, Instant, SystemTime};
use tauri::{AppHandle, Emitter, Manager};
use tauri_specta::Event;
use transcribe_cpp::{Backend, RunExtension, RunOptions, StreamOptions, Task, WhisperRunOptions};
-use transcribe_rs::{
- onnx::{
- canary::CanaryModel,
- cohere::CohereModel,
- gigaam::GigaAMModel,
- moonshine::{MoonshineModel, MoonshineVariant, StreamingModel},
- parakeet::{ParakeetModel, ParakeetParams, TimestampGranularity},
- sense_voice::{SenseVoiceModel, SenseVoiceParams},
- Quantization,
- },
- SpeechModel, TranscribeOptions,
-};
const STREAM_PERF_LOG_INTERVAL: Duration = Duration::from_secs(5);
@@ -180,19 +167,6 @@ impl StreamRouter {
}
}
-/// In-process ONNX engines. transcribe-cpp models (whisper family, parakeet,
-/// custom .bin/.gguf) live in the [`EngineSupervisor`]'s worker process
-/// instead, so a native crash or hang there cannot take the app down.
-enum OnnxEngine {
- Parakeet(ParakeetModel),
- Moonshine(MoonshineModel),
- MoonshineStreaming(StreamingModel),
- SenseVoice(SenseVoiceModel),
- GigaAM(GigaAMModel),
- Canary(CanaryModel),
- Cohere(CohereModel),
-}
-
/// RAII guard that clears the `is_loading` flag and notifies waiters on drop.
/// Ensures the loading flag is always reset, even on early returns or panics.
pub struct LoadingGuard {
@@ -245,8 +219,6 @@ pub struct TranscriptionManager {
/// The transcribe-cpp engine: owns the worker process, its model, and
/// recovery from crashes and hangs.
engine: EngineSupervisor,
- /// The loaded ONNX engine, if the current model is an ONNX one.
- onnx: Arc<Mutex<Option<OnnxEngine>>>,
model_manager: Arc<ModelManager>,
app_handle: AppHandle,
current_model_id: Arc<Mutex<Option<String>>>,
@@ -279,7 +251,6 @@ impl TranscriptionManager {
pub fn new(app_handle: &AppHandle, model_manager: Arc<ModelManager>) -> Result<Self> {
let manager = Self {
engine: EngineSupervisor::new(!transcribe_gpu_disabled_for_host()),
- onnx: Arc::new(Mutex::new(None)),
model_manager,
app_handle: app_handle.clone(),
current_model_id: Arc::new(Mutex::new(None)),
@@ -369,18 +340,10 @@ impl TranscriptionManager {
Ok(manager)
}
- /// Lock the ONNX engine mutex, recovering from poison if a previous transcription panicked.
- fn lock_onnx(&self) -> MutexGuard<'_, Option<OnnxEngine>> {
- self.onnx.lock().unwrap_or_else(|poisoned| {
- warn!("Engine mutex was poisoned by a previous panic, recovering");
- poisoned.into_inner()
- })
- }
-
pub fn is_model_loaded(&self) -> bool {
// A transcribe-cpp model stays loaded while it is busy, so a batch
// run or stream in progress never reads as "unloaded".
- self.engine.loaded().is_some() || self.lock_onnx().is_some()
+ self.engine.loaded().is_some()
}
/// Accelerator changes should not disturb the current transcription. Mark
@@ -392,8 +355,7 @@ impl TranscriptionManager {
/// An explicit transcribe.cpp accelerator or GPU device change is the
/// user's way of trying the GPU again: forget every GPU failure so far,
- /// so the next load may use (and list) the GPU. The ONNX accelerator does
- /// not affect this.
+ /// so the next load may use (and list) the GPU.
pub fn retry_transcribe_gpu(&self, reason: &str) {
self.engine.retry_gpu(reason);
}
@@ -470,8 +432,6 @@ impl TranscriptionManager {
/// it. Only the worker's exit is left to wait for.
fn begin_unload(&self) -> Unloading {
let unloading = self.engine.unload();
- // Dropping an ONNX engine frees its resources.
- *self.lock_onnx() = None;
{
let mut current_model = self.current_model_id.lock().unwrap();
*current_model = None;
@@ -529,8 +489,6 @@ impl TranscriptionManager {
model_id: &str,
device_index: Option<usize>,
) -> Result<()> {
- apply_accelerator_settings(&self.app_handle);
-
let load_start = std::time::Instant::now();
debug!("Starting to load model: {}", model_id);
@@ -587,164 +545,77 @@ impl TranscriptionManager {
.get_model_path(model_id)
.inspect_err(|error| emit_loading_failed(&error.to_string()))?;
- // Drop the current engine BEFORE building the new one so the previous
- // model is freed first — avoids holding two models at once (peak memory
- // on large GGUFs). A transcribe-cpp load replaces its worker the same
- // way. Clear the id too: if the new load fails, status should read "no
- // loaded model", not the dropped engine.
- *self.lock_onnx() = None;
- if !matches!(model_info.engine_type, EngineType::TranscribeCpp) {
- self.engine.unload().wait();
- }
+ // Clear the id before loading: if the new load fails, status should
+ // read "no loaded model", not the model the worker is replacing.
{
let mut current_model = self.current_model_id.lock().unwrap();
*current_model = None;
}
- // Create appropriate engine based on model type
-
- let loaded_onnx = match model_info.engine_type {
- EngineType::TranscribeCpp => {
- // The backend is chosen at load time. With an explicit
- // `device_index` (the --device-index flag) hard-select that
- // registered device; otherwise re-read the persisted
- // accelerator preference (so an accelerator change marked for
- // reload takes effect here). The worker resolves the selector
- // to a device handle, and rejects an index that isn't a
- // loadable device (a host without GPU access lists none).
- let (backend, device) = match device_index {
- Some(index) => (Backend::Auto, DeviceSelector::Index(index)),
- None => {
- let settings = get_settings(&self.app_handle);
- let accelerator = settings.transcribe_accelerator;
- match resolve_gpu_device(
- accelerator,
- settings.transcribe_gpu_device.as_deref(),
- ) {
- // Backend::Auto accepts an exact GPU device.
- Some(key) => (Backend::Auto, DeviceSelector::Key(key)),
- // Without a valid exact device, backend selection
- // handles the retired generic GPU state and host
- // CPU guard.
- None => (select_transcribe_backend(accelerator), DeviceSelector::Auto),
- }
- }
- };
- let requested_device = format!("{:?}", device);
- let info = self
- .engine
- .load(LoadSpec {
- path: model_path.clone(),
- backend,
- device,
- })
- .map_err(|e| {
- let error_msg = format!("Failed to load model {}: {}", model_id, e);
- emit_loading_failed(&error_msg);
- anyhow::anyhow!(error_msg)
- })?;
- // Reconcile the registry's advertised capabilities with the
- // loaded model's real ones (GGUF metadata) so badges/gating
- // reflect runtime truth, not the pre-download probe. The
- // load-completed event below triggers the frontend refresh.
- let caps = &info.capabilities;
- self.model_manager.set_runtime_capabilities(
- model_id,
- caps.supports_streaming,
- caps.supports_translate,
- caps.supports_language_detect,
- caps.languages.clone(),
- );
- // The bound backend may differ from the request (e.g. CPU
- // fallback under Auto or after a GPU crash); log what loaded.
- info!(
- "Loaded transcribe-cpp model '{}' (requested {:?}, requested device {}, \
- bound backend '{}', bound device '{}', supports_streaming={}, \
- supports_translate={}, supports_language_detect={})",
- model_id,
- backend,
- requested_device,
- info.backend,
- info.device,
- caps.supports_streaming,
- caps.supports_translate,
- caps.supports_language_detect
- );
- None
- }
- EngineType::Parakeet => {
- let engine =
- ParakeetModel::load(&model_path, &Quantization::Int8).map_err(|e| {
- let error_msg =
- format!("Failed to load parakeet model {}: {}", model_id, e);
- emit_loading_failed(&error_msg);
- anyhow::anyhow!(error_msg)
- })?;
- Some(OnnxEngine::Parakeet(engine))
- }
- EngineType::Moonshine => {
- let engine = MoonshineModel::load(
- &model_path,
- MoonshineVariant::Base,
- &Quantization::default(),
- )
- .map_err(|e| {
- let error_msg = format!("Failed to load moonshine model {}: {}", model_id, e);
- emit_loading_failed(&error_msg);
- anyhow::anyhow!(error_msg)
- })?;
- Some(OnnxEngine::Moonshine(engine))
- }
- EngineType::MoonshineStreaming => {
- let engine = StreamingModel::load(&model_path, 0, &Quantization::default())
- .map_err(|e| {
- let error_msg = format!(
- "Failed to load moonshine streaming model {}: {}",
- model_id, e
- );
- emit_loading_failed(&error_msg);
- anyhow::anyhow!(error_msg)
- })?;
- Some(OnnxEngine::MoonshineStreaming(engine))
- }
- EngineType::SenseVoice => {
- let engine =
- SenseVoiceModel::load(&model_path, &Quantization::Int8).map_err(|e| {
- let error_msg =
- format!("Failed to load SenseVoice model {}: {}", model_id, e);
- emit_loading_failed(&error_msg);
- anyhow::anyhow!(error_msg)
- })?;
- Some(OnnxEngine::SenseVoice(engine))
- }
- EngineType::GigaAM => {
- let engine = GigaAMModel::load(&model_path, &Quantization::Int8).map_err(|e| {
- let error_msg = format!("Failed to load gigaam model {}: {}", model_id, e);
- emit_loading_failed(&error_msg);
- anyhow::anyhow!(error_msg)
- })?;
- Some(OnnxEngine::GigaAM(engine))
- }
- EngineType::Canary => {
- let engine = CanaryModel::load(&model_path, &Quantization::Int8).map_err(|e| {
- let error_msg = format!("Failed to load canary model {}: {}", model_id, e);
- emit_loading_failed(&error_msg);
- anyhow::anyhow!(error_msg)
- })?;
- Some(OnnxEngine::Canary(engine))
- }
- EngineType::Cohere => {
- let engine = CohereModel::load(&model_path, &Quantization::Int8).map_err(|e| {
- let error_msg = format!("Failed to load cohere model {}: {}", model_id, e);
- emit_loading_failed(&error_msg);
- anyhow::anyhow!(error_msg)
- })?;
- Some(OnnxEngine::Cohere(engine))
+ // The backend is chosen at load time. With an explicit
+ // `device_index` (the --device-index flag) hard-select that
+ // registered device; otherwise re-read the persisted
+ // accelerator preference (so an accelerator change marked for
+ // reload takes effect here). The worker resolves the selector
+ // to a device handle, and rejects an index that isn't a
+ // loadable device (a host without GPU access lists none).
+ let (backend, device) = match device_index {
+ Some(index) => (Backend::Auto, DeviceSelector::Index(index)),
+ None => {
+ let settings = get_settings(&self.app_handle);
+ let accelerator = settings.transcribe_accelerator;
+ match resolve_gpu_device(accelerator, settings.transcribe_gpu_device.as_deref()) {
+ // Backend::Auto accepts an exact GPU device.
+ Some(key) => (Backend::Auto, DeviceSelector::Key(key)),
+ // Without a valid exact device, backend selection
+ // handles the retired generic GPU state and host
+ // CPU guard.
+ None => (select_transcribe_backend(accelerator), DeviceSelector::Auto),
+ }
}
};
+ let requested_device = format!("{:?}", device);
+ let info = self
+ .engine
+ .load(LoadSpec {
+ path: model_path.clone(),
+ backend,
+ device,
+ })
+ .map_err(|e| {
+ let error_msg = format!("Failed to load model {}: {}", model_id, e);
+ emit_loading_failed(&error_msg);
+ anyhow::anyhow!(error_msg)
+ })?;
+ // Reconcile the registry's advertised capabilities with the
+ // loaded model's real ones (GGUF metadata) so badges/gating
+ // reflect runtime truth, not the pre-download probe. The
+ // load-completed event below triggers the frontend refresh.
+ let caps = &info.capabilities;
+ self.model_manager.set_runtime_capabilities(
+ model_id,
+ caps.supports_streaming,
+ caps.supports_translate,
+ caps.supports_language_detect,
+ caps.languages.clone(),
+ );
+ // The bound backend may differ from the request (e.g. CPU
+ // fallback under Auto or after a GPU crash); log what loaded.
+ info!(
+ "Loaded transcribe-cpp model '{}' (requested {:?}, requested device {}, \
+ bound backend '{}', bound device '{}', supports_streaming={}, \
+ supports_translate={}, supports_language_detect={})",
+ model_id,
+ backend,
+ requested_device,
+ info.backend,
+ info.device,
+ caps.supports_streaming,
+ caps.supports_translate,
+ caps.supports_language_detect
+ );
- // Update the current engine and model ID
- *self.lock_onnx() = loaded_onnx;
+ // Update the current model ID
{
let mut current_model = self.current_model_id.lock().unwrap();
*current_model = Some(model_id.to_string());
@@ -810,14 +681,9 @@ impl TranscriptionManager {
/// The compute backend the currently-loaded engine is bound to, for
/// diagnostics (e.g. confirming `--device-index` actually bound a GPU rather
- /// than falling back to CPU/auto). transcribe-cpp (whisper-family) reports
- /// its real backend string; ONNX engines report "onnx"; `None` when no
- /// model is loaded.
+ /// than falling back to CPU/auto); `None` when no model is loaded.
pub fn current_backend(&self) -> Option<String> {
- if let Some(info) = self.engine.loaded() {
- return Some(info.backend);
- }
- self.lock_onnx().as_ref().map(|_| "onnx".to_string())
+ self.engine.loaded().map(|info| info.backend)
}
/// Whether a live streaming run is currently in flight.
@@ -880,9 +746,9 @@ impl TranscriptionManager {
let model_id = self.get_current_model().unwrap_or_default();
- // Only transcribe-cpp models expose streaming; ONNX engines fall back to
- // batch. The loaded model (not the ModelManager copy) is the source of
- // truth for run-path capabilities.
+ // Models without streaming fall back to batch. The loaded model (not
+ // the ModelManager copy) is the source of truth for run-path
+ // capabilities.
let Some(info) = self.engine.loaded() else {
info!(
"Live preview: model '{}' is not a loaded transcribe-cpp model; \
@@ -1048,22 +914,6 @@ impl TranscriptionManager {
// this worker's flags.
}
- /// Return the taken ONNX engine to the mutex, unless the model was switched
- /// or unloaded during transcription (in which case the stale engine is dropped).
- fn return_engine(&self, engine: OnnxEngine, expected_model_id: &str) {
- let still_current =
- self.current_model_id.lock().unwrap().as_deref() == Some(expected_model_id);
- if still_current {
- *self.lock_onnx() = Some(engine);
- } else {
- info!(
- "Model changed/unloaded during transcription; dropping stale engine (was '{}')",
- expected_model_id
- );
- // `engine` drops here, freeing its resources.
- }
- }
-
/// Flush the active stream and return its final, post-filtered text.
///
/// `Ok(None)` means no usable stream result exists and the caller should
@@ -1185,13 +1035,13 @@ impl TranscriptionManager {
);
}
- // Perform transcription with the appropriate engine.
- let run = match self.engine.loaded() {
- Some(info) => {
- self.transcribe_cpp(info, audio, &settings, &validated_language, &active_model)?
- }
- None => self.transcribe_onnx(&audio, &settings, &validated_language, &active_model)?,
+ let Some(info) = self.engine.loaded() else {
+ return Err(anyhow::anyhow!(
+ "Model failed to load after auto-load attempt. Please check your model settings."
+ ));
};
+ let run =
+ self.transcribe_cpp(info, audio, &settings, &validated_language, &active_model)?;
let output_language = with_model_detected_language(
resolve_output_language_evidence(
@@ -1207,8 +1057,7 @@ impl TranscriptionManager {
// Apply fuzzy word correction if custom words are configured — UNLESS the
// words were already handed to the model as an initial prompt (whisper
// family). We don't pass a prompt to non-whisper models (it requires the
- // whisper-kind run extension), so they still get fuzzy correction here,
- // same as the ONNX engines.
+ // whisper-kind run extension), so they still get fuzzy correction here.
let filtered_result = post_process_transcription_text(
run.text,
&settings,
@@ -1341,171 +1190,6 @@ impl TranscriptionManager {
model_is_whisper,
})
}
-
- /// In-process ONNX engines.
- fn transcribe_onnx(
- &self,
- audio: &[f32],
- settings: &AppSettings,
- validated_language: &str,
- active_model: &str,
- ) -> Result<RunOutcome> {
- let languages = self
- .model_manager
- .get_model_info(active_model)
- .map(|info| info.supported_languages)
- .unwrap_or_default();
- let mut output_was_translated = false;
- let mut applied_language_hint: Option<String> = None;
-
- // Take the engine out so we own it during transcription. If the
- // engine panics, we simply don't put it back (effectively unloading
- // it) instead of poisoning the mutex. No lock is held during the
- // engine call.
- let mut engine = match self.lock_onnx().take() {
- Some(e) => e,
- None => {
- return Err(anyhow::anyhow!(
- "Model failed to load after auto-load attempt. Please check your model settings."
- ));
- }
- };
-
- // We use catch_unwind to prevent engine panics from poisoning the
- // mutex, which would make the app hang indefinitely on subsequent
- // operations.
- let transcribe_result = catch_unwind(AssertUnwindSafe(|| -> Result<String> {
- match &mut engine {
- OnnxEngine::Parakeet(parakeet_engine) => {
- let params = ParakeetParams {
- timestamp_granularity: Some(TimestampGranularity::Segment),
- ..Default::default()
- };
- parakeet_engine
- .transcribe_with(audio, &params)
- .map(|r| r.text)
- .map_err(|e| anyhow::anyhow!("Parakeet transcription failed: {}", e))
- }
- OnnxEngine::Moonshine(moonshine_engine) => moonshine_engine
- .transcribe(audio, &TranscribeOptions::default())
- .map(|r| r.text)
- .map_err(|e| anyhow::anyhow!("Moonshine transcription failed: {}", e)),
- OnnxEngine::MoonshineStreaming(streaming_engine) => streaming_engine
- .transcribe(audio, &TranscribeOptions::default())
- .map(|r| r.text)
- .map_err(|e| {
- anyhow::anyhow!("Moonshine streaming transcription failed: {}", e)
- }),
- OnnxEngine::SenseVoice(sense_voice_engine) => {
- let language = match validated_language {
- "zh" => Some("zh".to_string()),
- "en" => Some("en".to_string()),
- "ja" => Some("ja".to_string()),
- "ko" => Some("ko".to_string()),
- "yue" => Some("yue".to_string()),
- _ => None,
- };
- applied_language_hint = language.clone();
- let params = SenseVoiceParams {
- language,
- use_itn: Some(true),
- };
- sense_voice_engine
- .transcribe_with(audio, &params)
- .map(|r| r.text)
- .map_err(|e| anyhow::anyhow!("SenseVoice transcription failed: {}", e))
- }
- OnnxEngine::GigaAM(gigaam_engine) => gigaam_engine
- .transcribe(audio, &TranscribeOptions::default())
- .map(|r| r.text)
- .map_err(|e| anyhow::anyhow!("GigaAM transcription failed: {}", e)),
- OnnxEngine::Canary(canary_engine) => {
- output_was_translated = settings.translate_to_english;
- let lang = if validated_language == "auto" {
- None
- } else {
- Some(validated_language.to_string())
- };
- applied_language_hint = lang.clone();
- let options = TranscribeOptions {
- language: lang,
- translate: settings.translate_to_english,
- ..Default::default()
- };
- canary_engine
- .transcribe(audio, &options)
- .map(|r| r.text)
- .map_err(|e| anyhow::anyhow!("Canary transcription failed: {}", e))
- }
- OnnxEngine::Cohere(cohere_engine) => {
- let lang = if validated_language == "auto" {
- None
- } else {
- Some(validated_language.to_string())
- };
- applied_language_hint = lang.clone();
- let options = TranscribeOptions {
- language: lang,
- ..Default::default()
- };
- cohere_engine
- .transcribe(audio, &options)
- .map(|r| r.text)
- .map_err(|e| anyhow::anyhow!("Cohere transcription failed: {}", e))
- }
- }
- }));
-
- let text = match transcribe_result {
- Ok(inner_result) => {
- // Success or normal error: return the engine unless a model
- // switch/unload invalidated it while it was in use.
- self.return_engine(engine, active_model);
- inner_result?
- }
- Err(panic_payload) => {
- // Engine panicked — do NOT put it back (it's in an unknown state).
- // The engine is dropped here, effectively unloading it.
- let panic_msg = panic_payload_message(panic_payload.as_ref());
- error!(
- "Transcription engine panicked: {}. Model has been unloaded.",
- panic_msg
- );
-
- // Clear the model ID so it will be reloaded on next attempt
- {
- let mut current_model = self
- .current_model_id
- .lock()
- .unwrap_or_else(|e| e.into_inner());
- *current_model = None;
- }
-
- let _ = self.app_handle.emit(
- "model-state-changed",
- ModelStateEvent {
- event_type: "unloaded".to_string(),
- model_id: None,
- model_name: None,
- error: Some(format!("Engine panicked: {}", panic_msg)),
- },
- );
-
- return Err(anyhow::anyhow!(
- "Transcription engine panicked: {}. The model has been unloaded and will reload on next attempt.",
- panic_msg
- ));
- }
- };
- Ok(RunOutcome {
- text,
- languages,
- applied_language_hint,
- output_was_translated,
- model_detected_language: None,
- model_is_whisper: false,
- })
- }
}
/// What a batch transcription produced, plus what post-processing needs to
@@ -2029,33 +1713,6 @@ fn resolve_gpu_device(
gpu_device.map(str::to_string)
}
-/// Apply the user's ORT accelerator preference to the transcribe-rs global.
-/// Called on startup and before loading a model.
-///
-/// The transcribe.cpp (whisper-family) backend is no longer set here: it is
-/// chosen at model-load time from [`select_transcribe_backend`], so changing the
-/// accelerator only needs a model reload (see `reload_model_on_next_use`).
-pub fn apply_accelerator_settings(app: &tauri::AppHandle) {
- use transcribe_rs::accel;
-
- let settings = get_settings(app);
-
- info!(
- "transcribe.cpp accelerator preference: {:?} (applied on next model load)",
- settings.transcribe_accelerator
- );
-
- let ort_pref = match settings.ort_accelerator {
- OrtAcceleratorSetting::Auto => accel::OrtAccelerator::Auto,
- OrtAcceleratorSetting::Cpu => accel::OrtAccelerator::CpuOnly,
- OrtAcceleratorSetting::Cuda => accel::OrtAccelerator::Cuda,
- OrtAcceleratorSetting::DirectMl => accel::OrtAccelerator::DirectMl,
- OrtAcceleratorSetting::Rocm => accel::OrtAccelerator::Rocm,
- };
- accel::set_ort_accelerator(ort_pref);
- info!("ORT accelerator set to: {}", ort_pref);
-}
-
#[derive(Serialize, Clone, Debug, Type)]
pub struct GpuDeviceOption {
pub id: String,
@@ -2115,24 +1772,15 @@ fn gpu_device_options(engine: &EngineSupervisor) -> Vec<GpuDeviceOption> {
#[derive(Serialize, Clone, Debug, Type)]
pub struct AvailableAccelerators {
pub transcribe: Vec<String>,
- pub ort: Vec<String>,
pub gpu_devices: Vec<GpuDeviceOption>,
}
/// Return the accelerators available to this process on its current host.
pub fn get_available_accelerators(tm: &TranscriptionManager) -> AvailableAccelerators {
- use transcribe_rs::accel::OrtAccelerator;
-
- let ort_options: Vec<String> = OrtAccelerator::available()
- .into_iter()
- .map(|a| a.to_string())
- .collect();
-
let transcribe_options = available_transcribe_accelerators(transcribe_gpu_disabled_for_host());
AvailableAccelerators {
transcribe: transcribe_options,
- ort: ort_options,
gpu_devices: gpu_device_options(&tm.engine),
}
}
@@ -2502,10 +2150,12 @@ impl Drop for TranscriptionManager {
// Skip shutdown unless this is the very last clone. TranscriptionManager
// is cloned by initiate_model_load() and the watcher thread — those
// clones dropping must not kill the watcher. The watcher thread holds
- // its own clone, so onnx's strong_count is always >= 2 while the
- // watcher is alive. When it reaches 1, only this instance remains
- // and we can safely shut down.
- if Arc::strong_count(&self.onnx) > 1 {
+ // its own clone, so current_model_id's strong_count is always >= 2 while
+ // the watcher is alive. (current_model_id is only ever cloned along with
+ // the manager; shutdown_signal is not, since the watcher also holds a
+ // standalone clone of it.) When it reaches 1, only this instance
+ // remains and we can safely shut down.
+ if Arc::strong_count(&self.current_model_id) > 1 {
return;
}
diff --git a/src-tauri/src/settings.rs b/src-tauri/src/settings.rs
index 26aa8246..8a478407 100644
--- a/src-tauri/src/settings.rs
+++ b/src-tauri/src/settings.rs
@@ -331,18 +331,6 @@ pub enum TranscribeAcceleratorSetting {
Gpu,
}
-#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Type, Default)]
-#[serde(rename_all = "snake_case")]
-pub enum OrtAcceleratorSetting {
- #[default]
- Auto,
- Cpu,
- Cuda,
- #[serde(rename = "directml")]
- DirectMl,
- Rocm,
-}
-
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Type, Default)]
#[serde(rename_all = "snake_case")]
pub enum VadBackend {
@@ -522,8 +510,6 @@ pub struct AppSettings {
pub chinese_script: ChineseScript,
#[serde(default)]
pub transcribe_accelerator: TranscribeAcceleratorSetting,
- #[serde(default)]
- pub ort_accelerator: OrtAcceleratorSetting,
/// Stable transcribe.cpp device selector. This is derived from the backend's
/// `device_id` when available (or its name for backends such as Metal),
/// never from the process-local device registry index.
@@ -1021,7 +1007,6 @@ pub fn get_default_settings() -> AppSettings {
custom_filler_words: None,
chinese_script: default_chinese_script(),
transcribe_accelerator: TranscribeAcceleratorSetting::default(),
- ort_accelerator: OrtAcceleratorSetting::default(),
transcribe_gpu_device: default_transcribe_gpu_device(),
extra_recording_buffer_ms: 0,
vad_enabled: default_vad_enabled(),
diff --git a/src-tauri/src/shortcut/mod.rs b/src-tauri/src/shortcut/mod.rs
index ce661907..c4626399 100644
--- a/src-tauri/src/shortcut/mod.rs
+++ b/src-tauri/src/shortcut/mod.rs
@@ -1454,18 +1454,6 @@ pub fn change_transcribe_accelerator_setting(
Ok(())
}
-#[tauri::command]
-#[specta::specta]
-pub fn change_ort_accelerator_setting(
- app: AppHandle,
- accelerator: settings::OrtAcceleratorSetting,
-) -> Result<(), String> {
- let mut s = settings::get_settings(&app);
- s.ort_accelerator = accelerator;
- save_accelerator_and_reload_next_use(&app, s);
- Ok(())
-}
-
#[tauri::command]
#[specta::specta]
pub fn change_transcribe_gpu_device(app: AppHandle, device: Option<String>) -> Result<(), String> {
diff --git a/src/App.tsx b/src/App.tsx
index 1945400e..e742fd86 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -31,12 +31,8 @@ import { Sidebar, SidebarSection, SECTIONS_CONFIG } from "./components/Sidebar";
import { WhatsNewGate } from "./components/whats-new";
import { useSettings } from "./hooks/useSettings";
import { useSettingsStore } from "./stores/settingsStore";
-import { useModelStore } from "./stores/modelStore";
import { commands } from "@/bindings";
-import {
- deleteRetiredModel,
- isRetiredModel,
-} from "@/components/onboarding/retiredModels";
+import { deleteRetiredModel } from "@/components/onboarding/retiredModels";
import { getLanguageDirection, initializeRTL } from "@/lib/utils/rtl";
type OnboardingStep = "accessibility" | "migration" | "model" | "done";
@@ -237,17 +233,8 @@ function App() {
const getMigrationModelId = async (
selectedModel: string,
): Promise<string | null> => {
- if (!isRetiredModel(selectedModel)) return null;
- try {
- const result = await commands.getAvailableModels();
- const onDisk =
- result.status === "ok" &&
- result.data.some((m) => m.id === selectedModel && m.is_downloaded);
- return onDisk ? selectedModel : null;
- } catch (e) {
- console.warn("Failed to check for retired models:", e);
- return null;
- }
+ const retired = await commands.getRetiredModels();
+ return retired.some((m) => m.id === selectedModel) ? selectedModel : null;
};
// Returning users land in the app unless their model needs updating. The
@@ -338,10 +325,8 @@ function App() {
// Coming from the model update: the user picked a different model instead
// of updating, so the retired models left on disk can't run anymore.
if (migrationModelId) {
- for (const model of useModelStore.getState().models) {
- if (model.is_downloaded && isRetiredModel(model.id)) {
- await deleteRetiredModel(model.id);
- }
+ for (const model of await commands.getRetiredModels()) {
+ await deleteRetiredModel(model.id);
}
}
// Transition to main app - user has started a download
diff --git a/src/bindings.ts b/src/bindings.ts
index c4fcebca..7c2f32b6 100644
--- a/src/bindings.ts
+++ b/src/bindings.ts
@@ -467,14 +467,6 @@ async changeTranscribeAcceleratorSetting(accelerator: TranscribeAcceleratorSetti
else return { status: "error", error: e as any };
}
},
-async changeOrtAcceleratorSetting(accelerator: OrtAcceleratorSetting) : Promise<Result<null, string>> {
- try {
- return { status: "ok", data: await TAURI_INVOKE("change_ort_accelerator_setting", { accelerator }) };
-} catch (e) {
- if(e instanceof Error) throw e;
- else return { status: "error", error: e as any };
-}
-},
async changeTranscribeGpuDevice(device: string | null) : Promise<Result<null, string>> {
try {
return { status: "ok", data: await TAURI_INVOKE("change_transcribe_gpu_device", { device }) };
@@ -680,6 +672,17 @@ async deleteModel(modelId: string) : Promise<Result<null, string>> {
else return { status: "error", error: e as any };
}
},
+async getRetiredModels() : Promise<RetiredModel[]> {
+ return await TAURI_INVOKE("get_retired_models");
+},
+async deleteRetiredModel(modelId: string) : Promise<Result<null, string>> {
+ try {
+ return { status: "ok", data: await TAURI_INVOKE("delete_retired_model", { modelId }) };
+} catch (e) {
+ if(e instanceof Error) throw e;
+ else return { status: "error", error: e as any };
+}
+},
async cancelDownload(modelId: string) : Promise<Result<null, string>> {
try {
return { status: "ok", data: await TAURI_INVOKE("cancel_download", { modelId }) };
@@ -1009,7 +1012,7 @@ reliable_paste?: boolean; typing_tool?: TypingTool; external_script_path?: strin
* Fresh installs default from the OS locale; existing stores are migrated
* in `apply_settings_migrations`.
*/
-chinese_script?: ChineseScript; transcribe_accelerator?: TranscribeAcceleratorSetting; ort_accelerator?: OrtAcceleratorSetting;
+chinese_script?: ChineseScript; transcribe_accelerator?: TranscribeAcceleratorSetting;
/**
* Stable transcribe.cpp device selector. This is derived from the backend's
* `device_id` when available (or its name for backends such as Metal),
@@ -1028,7 +1031,7 @@ vad_backend?: VadBackend;
overlay_style?: OverlayStyle }
export type AudioDevice = { index: string; name: string; is_default: boolean }
export type AutoSubmitKey = "enter" | "ctrl_enter" | "cmd_enter"
-export type AvailableAccelerators = { transcribe: string[]; ort: string[]; gpu_devices: GpuDeviceOption[] }
+export type AvailableAccelerators = { transcribe: string[]; gpu_devices: GpuDeviceOption[] }
export type BindingResponse = { success: boolean; binding: ShortcutBinding | null; error: string | null }
/**
* Script applied to Mandarin and Cantonese output. Other languages are never
@@ -1041,13 +1044,6 @@ export type ChineseScript =
"as_transcribed" | "simplified" | "traditional"
export type ClipboardHandling = "dont_modify" | "copy_to_clipboard"
export type CustomSounds = { start: boolean; stop: boolean }
-export type EngineType =
-/**
- * Any GGML/GGUF model loaded through transcribe-cpp (Whisper, Parakeet,
- * Voxtral, Qwen3-ASR, Nemotron, …). The architecture is auto-detected from
- * the file, so this one variant covers the whole transcribe-cpp family.
- */
-"TranscribeCpp" | "Parakeet" | "Moonshine" | "MoonshineStreaming" | "SenseVoice" | "GigaAM" | "Canary" | "Cohere"
export type GpuDeviceOption = { id: string; name: string; total_vram_mb: number }
export type HistoryEntry = { id: number; file_name: string; timestamp: number; saved: boolean; title: string; transcription_text: string; post_processed_text: string | null; post_process_prompt: string | null; post_process_requested: boolean }
export type HistoryUpdatePayload = { action: "added"; entry: HistoryEntry } | { action: "updated"; entry: HistoryEntry } | { action: "deleted"; id: number } | { action: "toggled"; id: number }
@@ -1067,7 +1063,7 @@ key_down: number; key_up: number; flags_changed: number; mouse: number; duration
export type KeyboardImplementation = "tauri" | "handy_keys"
export type LLMPrompt = { id: string; name: string; prompt: string }
export type LogLevel = "trace" | "debug" | "info" | "warn" | "error"
-export type ModelInfo = { id: string; name: string; description: string; filename: string; source: ModelSource; size_mb: number; is_downloaded: boolean; is_downloading: boolean; partial_size: number; is_directory: boolean; engine_type: EngineType; accuracy_score: number; speed_score: number; supports_translation: boolean; is_recommended: boolean; supported_languages: string[]; supports_language_selection: boolean; is_custom: boolean; supports_streaming: boolean; supports_language_detection: boolean }
+export type ModelInfo = { id: string; name: string; description: string; filename: string; source: ModelSource; size_mb: number; is_downloaded: boolean; is_downloading: boolean; partial_size: number; accuracy_score: number; speed_score: number; supports_translation: boolean; is_recommended: boolean; supported_languages: string[]; supports_language_selection: boolean; is_custom: boolean; supports_streaming: boolean; supports_language_detection: boolean }
export type ModelLoadStatus = { is_loaded: boolean; current_model: string | null }
/**
* Where a model comes from and how Handy obtains it — the routing discriminant
@@ -1094,7 +1090,6 @@ sha256: string | null } } |
*/
"Local"
export type ModelUnloadTimeout = "never" | "immediately" | "min_2" | "min_5" | "min_10" | "min_15" | "hour_1" | "sec_15"
-export type OrtAcceleratorSetting = "auto" | "cpu" | "cuda" | "directml" | "rocm"
export type OverlayPosition = "top" | "bottom"
/**
* Which recording overlay to display. `Minimal` and `Live` share one base
@@ -1121,6 +1116,10 @@ export type PostProcessApiFormat =
"anthropic"
export type PostProcessProvider = { id: string; label: string; base_url: string; allow_base_url_edit?: boolean; models_endpoint?: string | null; supports_structured_output?: boolean; api_format?: PostProcessApiFormat }
export type RecordingRetentionPeriod = "never" | "preserve_limit" | "days_3" | "weeks_2" | "months_3"
+/**
+ * A retired ONNX model found on disk.
+ */
+export type RetiredModel = { id: string; name: string; size_mb: number; replacement_repo: string }
export type SecretMap = Partial<{ [key in string]: string }>
export type SecureInputStatus = {
/**
diff --git a/src/components/model-selector/ModelSelector.tsx b/src/components/model-selector/ModelSelector.tsx
index e3b783a1..d6138c25 100644
--- a/src/components/model-selector/ModelSelector.tsx
+++ b/src/components/model-selector/ModelSelector.tsx
@@ -15,7 +15,6 @@ type ModelStatus =
| "loading"
| "downloading"
| "verifying"
- | "extracting"
| "error"
| "unloaded"
| "none";
@@ -32,7 +31,6 @@ const ModelSelector: React.FC<ModelSelectorProps> = ({ onError }) => {
downloadProgress,
downloadStats,
verifyingModels,
- extractingModels,
selectModel,
} = useModelStore();
@@ -97,7 +95,7 @@ const ModelSelector: React.FC<ModelSelectorProps> = ({ onError }) => {
},
);
- // Auto-select model when download completes (fires after extraction too)
+ // Auto-select model when download completes
const downloadCompleteUnlisten = listen<string>(
"model-download-complete",
(event) => {
@@ -168,22 +166,6 @@ const ModelSelector: React.FC<ModelSelectorProps> = ({ onError }) => {
}
}
- const extractingKeys = Object.keys(extractingModels);
- if (extractingKeys.length > 0) {
- if (extractingKeys.length === 1) {
- const modelId = extractingKeys[0];
- const model = models.find((m) => m.id === modelId);
- const modelName = model
- ? getTranslatedModelName(model, t)
- : t("modelSelector.extractingGeneric").replace("...", "");
- return t("modelSelector.extracting", { modelName });
- } else {
- return t("modelSelector.extractingMultiple", {
- count: extractingKeys.length,
- });
- }
- }
-
const progressValues = Object.values(downloadProgress);
if (progressValues.length > 0) {
if (progressValues.length === 1) {
@@ -213,12 +195,6 @@ const ModelSelector: React.FC<ModelSelectorProps> = ({ onError }) => {
modelName: getTranslatedModelName(currentModelInfo, t),
})
: t("modelSelector.loadingGeneric");
- case "extracting":
- return currentModelInfo
- ? t("modelSelector.extracting", {
- modelName: getTranslatedModelName(currentModelInfo, t),
- })
- : t("modelSelector.extractingGeneric");
case "error":
return modelError || t("modelSelector.modelError");
case "unloaded":
@@ -237,7 +213,6 @@ const ModelSelector: React.FC<ModelSelectorProps> = ({ onError }) => {
// Derive display status from model status + store state
const getDisplayStatus = (): ModelStatus => {
if (Object.keys(verifyingModels).length > 0) return "verifying";
- if (Object.keys(extractingModels).length > 0) return "extracting";
if (Object.keys(downloadProgress).length > 0) return "downloading";
return modelStatus;
};
diff --git a/src/components/model-selector/ModelStatusButton.tsx b/src/components/model-selector/ModelStatusButton.tsx
index 838da53f..a19a05aa 100644
--- a/src/components/model-selector/ModelStatusButton.tsx
+++ b/src/components/model-selector/ModelStatusButton.tsx
@@ -5,7 +5,6 @@ type ModelStatus =
| "loading"
| "downloading"
| "verifying"
- | "extracting"
| "error"
| "unloaded"
| "none";
@@ -35,8 +34,6 @@ const ModelStatusButton: React.FC<ModelStatusButtonProps> = ({
return "bg-logo-primary animate-pulse";
case "verifying":
return "bg-orange-400 animate-pulse";
- case "extracting":
- return "bg-orange-400 animate-pulse";
case "error":
return "bg-red-400";
case "unloaded":
diff --git a/src/components/onboarding/ModelCard.tsx b/src/components/onboarding/ModelCard.tsx
index 9eb23c28..ebcd26ef 100644
--- a/src/components/onboarding/ModelCard.tsx
+++ b/src/components/onboarding/ModelCard.tsx
@@ -40,7 +40,7 @@ const getLanguageDisplayText = (
});
};
-// Legacy = a blob (Url-sourced) .bin/ONNX model, kept runnable but no longer the
+// Legacy = a blob (Url-sourced) .bin model, kept runnable but no longer the
// advertised download (catalog GGUFs supersede it).
export const isLegacySource = (model: ModelInfo): boolean =>
typeof model.source === "object" && "Url" in model.source;
@@ -57,7 +57,6 @@ export type ModelCardStatus =
| "downloadable"
| "downloading"
| "verifying"
- | "extracting"
| "switching"
| "active"
| "available";
@@ -288,7 +287,7 @@ const ModelCard: React.FC<ModelCardProps> = ({
)}
</div>
- {/* Download/extract progress */}
+ {/* Download progress */}
{status === "downloading" && downloadProgress !== undefined && (
<div className="w-full mt-3">
<div className="w-full h-1.5 bg-mid-gray/20 rounded-full overflow-hidden">
@@ -339,16 +338,6 @@ const ModelCard: React.FC<ModelCardProps> = ({
</p>
</div>
)}
- {status === "extracting" && (
- <div className="w-full mt-3">
- <div className="w-full h-1.5 bg-mid-gray/20 rounded-full overflow-hidden">
- <div className="h-full bg-logo-primary rounded-full animate-pulse w-full" />
- </div>
- <p className="text-xs text-text/50 mt-1">
- {t("modelSelector.extractingGeneric")}
- </p>
- </div>
- )}
</div>
);
};
diff --git a/src/components/onboarding/ModelMigration.tsx b/src/components/onboarding/ModelMigration.tsx
index feb275a7..7d9a7396 100644
--- a/src/components/onboarding/ModelMigration.tsx
+++ b/src/components/onboarding/ModelMigration.tsx
@@ -8,16 +8,15 @@ import React, {
import { useTranslation } from "react-i18next";
import { toast } from "sonner";
import { Check, Loader2 } from "lucide-react";
-import type { ModelInfo } from "@/bindings";
+import type { RetiredModel } from "@/bindings";
import HandyTextLogo from "../icons/HandyTextLogo";
import { Button } from "../ui/Button";
import { useModelStore } from "../../stores/modelStore";
import { formatModelSize } from "../../lib/utils/format";
-import { getTranslatedModelName } from "../../lib/utils/modelTranslation";
+import { commands } from "@/bindings";
import {
deleteRetiredModel,
findReplacement,
- isRetiredModel,
type ModelMigrationPair,
} from "./retiredModels";
@@ -44,15 +43,14 @@ const ModelMigration: React.FC<ModelMigrationProps> = ({
loading,
downloadingModels,
verifyingModels,
- extractingModels,
downloadProgress,
downloadStats,
downloadModel,
selectModel,
} = useModelStore();
- // The retired list is frozen once models load: deleting old files flips
- // their `is_downloaded`, and rows must not vanish mid-flow.
- const [snapshot, setSnapshot] = useState<ModelInfo[] | null>(null);
+ // The retired list is read once: deleting old files takes them off disk, and
+ // rows must not vanish mid-flow.
+ const [snapshot, setSnapshot] = useState<RetiredModel[] | null>(null);
const [phase, setPhase] = useState<Phase>("choose");
// Ticked rows (retired ids). Starts with the model in use; any row can be
// unticked.
@@ -64,25 +62,34 @@ const ModelMigration: React.FC<ModelMigrationProps> = ({
const finalizing = useRef<Set<string>>(new Set());
const wrappingUp = useRef(false);
+ const snapshotRequested = useRef(false);
useEffect(() => {
- if (snapshot || loading) return;
- const retired = models.filter(
- (m) => m.is_downloaded && isRetiredModel(m.id),
- );
- // The model in use always leads the list.
- retired.sort(
- (a, b) => Number(b.id === inUseModelId) - Number(a.id === inUseModelId),
- );
- setSnapshot(retired);
- setPicked(new Set([inUseModelId]));
- }, [snapshot, loading, models, inUseModelId]);
+ if (snapshotRequested.current || loading) return;
+ snapshotRequested.current = true;
+ commands
+ .getRetiredModels()
+ .then((retired) => {
+ // The model in use always leads the list.
+ retired.sort(
+ (a, b) =>
+ Number(b.id === inUseModelId) - Number(a.id === inUseModelId),
+ );
+ setSnapshot(retired);
+ setPicked(new Set([inUseModelId]));
+ })
+ .catch((e) => {
+ // Without the list there is nothing to update: fall back to the picker.
+ console.error("Failed to list retired models:", e);
+ onChooseAnother();
+ });
+ }, [loading, inUseModelId, onChooseAnother]);
const rows: ModelMigrationPair[] = useMemo(
() =>
// Every replacement is in the bundled catalog, so this only drops a row
- // if RETIRED_MODEL_REPLACEMENTS drifts from catalog.json.
+ // if RETIRED_ONNX_MODELS drifts from catalog.json.
(snapshot ?? []).flatMap((retired) => {
- const replacement = findReplacement(models, retired.id);
+ const replacement = findReplacement(models, retired);
return replacement ? [{ retired, replacement }] : [];
}),
[snapshot, models],
@@ -105,18 +112,17 @@ const ModelMigration: React.FC<ModelMigrationProps> = ({
0,
);
- // Downloaded, verified and extracted: safe to switch to and to drop the old.
+ // Downloaded and verified: safe to switch to and to drop the old.
const isReplacementReady = useCallback(
(p: ModelMigrationPair) => {
const id = p.replacement.id;
return (
p.replacement.is_downloaded &&
!(id in downloadingModels) &&
- !(id in verifyingModels) &&
- !(id in extractingModels)
+ !(id in verifyingModels)
);
},
- [downloadingModels, verifyingModels, extractingModels],
+ [downloadingModels, verifyingModels],
);
const rowState = (p: ModelMigrationPair): RowState => {
@@ -125,7 +131,7 @@ const ModelMigration: React.FC<ModelMigrationProps> = ({
if (outcome) return outcome === "done" ? "ready" : "failed";
const id = p.replacement.id;
if (id in downloadingModels) return downloadProgress[id]?.percentage ?? 0;
- // Verifying, extracting, waiting on the model list to refresh, or being
+ // Verifying, waiting on the model list to refresh, or being
// switched to: the bytes are all here.
return 100;
};
@@ -133,6 +139,14 @@ const ModelMigration: React.FC<ModelMigrationProps> = ({
const downloading = chosen.some((p) => typeof rowState(p) === "number");
const targetFailed =
targetId !== undefined && outcomes[targetId] === "failed";
+ // The target's bytes are in and it is being switched to (loaded).
+ const target = chosen.find((p) => p.retired.id === targetId);
+ const loadingTarget =
+ phase === "migrating" &&
+ !downloading &&
+ target !== undefined &&
+ !outcomes[target.retired.id] &&
+ isReplacementReady(target);
// Combined speed and time remaining across the parallel downloads.
let speed = 0;
@@ -314,6 +328,13 @@ const ModelMigration: React.FC<ModelMigrationProps> = ({
aria-live="polite"
>
<Loader2 className="w-4 h-4 animate-spin" />
+ {loadingTarget && (
+ <span>
+ {t("modelSelector.loading", {
+ modelName: target.replacement.name,
+ })}
+ </span>
+ )}
{timeLeft && (
<span className="tabular-nums text-text/50">
{t("onboarding.migration.timeRemaining", { time: timeLeft })}
@@ -395,7 +416,7 @@ const MigrationRow: React.FC<MigrationRowProps> = ({
}) => {
const { t } = useTranslation();
const { retired, replacement } = pair;
- const oldName = getTranslatedModelName(retired, t);
+ const oldName = retired.name;
// Checkbox semantics only while choosing; later the row may hold a button.
const toggleable = showCheck && phase === "choose";
diff --git a/src/components/onboarding/Onboarding.tsx b/src/components/onboarding/Onboarding.tsx
index 1ae5de70..8d156911 100644
--- a/src/components/onboarding/Onboarding.tsx
+++ b/src/components/onboarding/Onboarding.tsx
@@ -8,7 +8,6 @@ import ModelCard, { isLegacySource } from "./ModelCard";
import HandyTextLogo from "../icons/HandyTextLogo";
import { Button } from "../ui/Button";
import { useModelStore } from "../../stores/modelStore";
-import { isRetiredModel } from "./retiredModels";
interface OnboardingProps {
onModelSelected: () => void;
@@ -29,7 +28,6 @@ const Onboarding: React.FC<OnboardingProps> = ({
selectModel,
downloadingModels,
verifyingModels,
- extractingModels,
downloadProgress,
downloadStats,
cancelDownload,
@@ -40,7 +38,7 @@ const Onboarding: React.FC<OnboardingProps> = ({
const isBusy = selectedModelId !== null;
- // Curate the download list: legacy (.bin/ONNX) downloads are deprecated and
+ // Curate the download list: legacy (.bin) downloads are deprecated and
// never shown here (they still appear in the compatible section if already on
// disk). The catalog arrives rank-sorted, so the first two recommended models
// are the featured picks — currently Parakeet Unified (English) and Nemotron
@@ -62,17 +60,14 @@ const Onboarding: React.FC<OnboardingProps> = ({
};
}, [models]);
- // Retired (ONNX) models can't run, so never offer them as a pick here.
- const existingModels = models.filter(
- (m: ModelInfo) => m.is_downloaded && !isRetiredModel(m.id),
- );
+ const existingModels = models.filter((m: ModelInfo) => m.is_downloaded);
const hasRecommended = topPicks.length > 0 || otherRecommended.length > 0;
// When nothing recommended remains to download (e.g. all already on disk),
// there is no curated subset to collapse, so just show the full list.
const showRest = showAll || !hasRecommended;
- // Watch for the selected model to finish downloading + verifying + extracting
+ // Watch for the selected model to finish downloading + verifying
useEffect(() => {
// Debug previews are inert: never switch the user's active model. Guarded
// here as well as in the handlers because this is where the backend call
@@ -87,13 +82,11 @@ const Onboarding: React.FC<OnboardingProps> = ({
const model = models.find((m) => m.id === selectedModelId);
const stillDownloading = selectedModelId in downloadingModels;
const stillVerifying = selectedModelId in verifyingModels;
- const stillExtracting = selectedModelId in extractingModels;
if (
model?.is_downloaded &&
!stillDownloading &&
!stillVerifying &&
- !stillExtracting &&
!hasStartedSelection.current
) {
hasStartedSelection.current = true;
@@ -114,7 +107,6 @@ const Onboarding: React.FC<OnboardingProps> = ({
models,
downloadingModels,
verifyingModels,
- extractingModels,
selectModel,
onModelSelected,
preview,
@@ -150,7 +142,6 @@ const Onboarding: React.FC<OnboardingProps> = ({
};
const getModelStatus = (modelId: string): ModelCardStatus => {
- if (modelId in extractingModels) return "extracting";
if (modelId in verifyingModels) return "verifying";
if (modelId in downloadingModels) return "downloading";
return "downloadable";
diff --git a/src/components/onboarding/retiredModels.ts b/src/components/onboarding/retiredModels.ts
index 81b55d62..6fff4c88 100644
--- a/src/components/onboarding/retiredModels.ts
+++ b/src/components/onboarding/retiredModels.ts
@@ -1,26 +1,11 @@
-import type { ModelInfo } from "@/bindings";
-import { useModelStore } from "@/stores/modelStore";
+import { commands, type ModelInfo, type RetiredModel } from "@/bindings";
-// Retired (ONNX) model ids mapped to the catalog repo that replaces each one.
-// Whisper .bin models are legacy too, but still run, so they are not listed.
-export const RETIRED_MODEL_REPLACEMENTS: Record<string, string> = {
- "parakeet-tdt-0.6b-v2": "handy-computer/parakeet-tdt-0.6b-v2-gguf",
- "parakeet-tdt-0.6b-v3": "handy-computer/parakeet-tdt-0.6b-v3-gguf",
- "moonshine-base": "handy-computer/moonshine-base-gguf",
- "moonshine-tiny-streaming-en": "handy-computer/moonshine-streaming-tiny-gguf",
- "moonshine-small-streaming-en":
- "handy-computer/moonshine-streaming-small-gguf",
- "moonshine-medium-streaming-en":
- "handy-computer/moonshine-streaming-medium-gguf",
- "sense-voice-int8": "handy-computer/SenseVoiceSmall-gguf",
- "gigaam-v3-e2e-ctc": "handy-computer/gigaam-v3-e2e-ctc-gguf",
- "canary-180m-flash": "handy-computer/canary-180m-flash-gguf",
- "canary-1b-v2": "handy-computer/canary-1b-v2-gguf",
- "cohere-int8": "handy-computer/cohere-transcribe-03-2026-gguf",
-};
+// Retired (ONNX) models are defined in the backend (`RETIRED_ONNX_MODELS`);
+// `commands.getRetiredModels()` reports the ones still on disk, each with the
+// catalog repo that replaces it.
export interface ModelMigrationPair {
- retired: ModelInfo;
+ retired: RetiredModel;
replacement: ModelInfo;
}
@@ -33,19 +18,16 @@ const repoIdOf = (model: ModelInfo): string | null =>
// replacement is matched on repo id rather than model id.
export const findReplacement = (
models: ModelInfo[],
- retiredId: string,
-): ModelInfo | undefined => {
- const repoId = RETIRED_MODEL_REPLACEMENTS[retiredId];
- return models.find((m) => repoIdOf(m) === repoId);
-};
-
-export const isRetiredModel = (modelId: string): boolean =>
- modelId in RETIRED_MODEL_REPLACEMENTS;
+ retired: RetiredModel,
+): ModelInfo | undefined =>
+ models.find((m) => repoIdOf(m) === retired.replacement_repo);
// Best effort: a leftover retired model only wastes disk space, and the Models
// page notice offers to clean it up later.
-export const deleteRetiredModel = async (modelId: string): Promise<void> => {
- if (!(await useModelStore.getState().deleteModel(modelId))) {
- console.warn(`Failed to delete retired model ${modelId}`);
+export const deleteRetiredModel = async (modelId: string): Promise<boolean> => {
+ const result = await commands.deleteRetiredModel(modelId);
+ if (result.status === "error") {
+ console.warn(`Failed to delete retired model ${modelId}:`, result.error);
}
+ return result.status === "ok";
};
diff --git a/src/components/settings/AccelerationSelector.tsx b/src/components/settings/AccelerationSelector.tsx
index 080e6388..72070fa7 100644
--- a/src/components/settings/AccelerationSelector.tsx
+++ b/src/components/settings/AccelerationSelector.tsx
@@ -4,18 +4,7 @@ import { SettingContainer } from "../ui/SettingContainer";
import { Dropdown, type DropdownOption } from "../ui/Dropdown";
import { useSettings } from "../../hooks/useSettings";
import { commands } from "@/bindings";
-import type {
- TranscribeAcceleratorSetting,
- OrtAcceleratorSetting,
-} from "@/bindings";
-
-const ORT_LABELS: Record<OrtAcceleratorSetting, string> = {
- auto: "Auto",
- cpu: "CPU",
- cuda: "CUDA",
- directml: "DirectML",
- rocm: "ROCm",
-};
+import type { TranscribeAcceleratorSetting } from "@/bindings";
interface AccelerationSelectorProps {
descriptionMode?: "tooltip" | "inline";
@@ -58,7 +47,6 @@ export const AccelerationSelector: FC<AccelerationSelectorProps> = ({
const [transcribeOptions, setTranscribeOptions] = useState<DropdownOption[]>(
[],
);
- const [ortOptions, setOrtOptions] = useState<DropdownOption[]>([]);
useEffect(() => {
commands.getAvailableAccelerators().then((available) => {
@@ -88,17 +76,6 @@ export const AccelerationSelector: FC<AccelerationSelectorProps> = ({
opts.push({ value: "cpu", label: "CPU" });
}
setTranscribeOptions(opts);
-
- // ORT options (unchanged)
- const ortVals = available.ort.includes("auto")
- ? available.ort
- : ["auto", ...available.ort];
- setOrtOptions(
- ortVals.map((v) => ({
- value: v,
- label: ORT_LABELS[v as OrtAcceleratorSetting] ?? v,
- })),
- );
});
}, [t]);
@@ -113,7 +90,6 @@ export const AccelerationSelector: FC<AccelerationSelectorProps> = ({
)
? currentTranscribe
: (transcribeOptions[0]?.value ?? null);
- const currentOrt = getSetting("ort_accelerator") ?? "auto";
const handleTranscribeChange = async (value: string) => {
const { accelerator, gpuDevice } = decodeTranscribeValue(value);
@@ -123,42 +99,22 @@ export const AccelerationSelector: FC<AccelerationSelectorProps> = ({
};
return (
- <>
- <SettingContainer
- title={t("settings.advanced.acceleration.transcribe.title")}
- description={t("settings.advanced.acceleration.transcribe.description")}
- descriptionMode={descriptionMode}
- grouped={grouped}
- layout="horizontal"
- >
- <Dropdown
- options={transcribeOptions}
- selectedValue={displayedTranscribe}
- onSelect={handleTranscribeChange}
- disabled={
- isUpdating("transcribe_accelerator") ||
- isUpdating("transcribe_gpu_device")
- }
- />
- </SettingContainer>
- {ortOptions.length > 2 && (
- <SettingContainer
- title={t("settings.advanced.acceleration.ort.title")}
- description={t("settings.advanced.acceleration.ort.description")}
- descriptionMode={descriptionMode}
- grouped={grouped}
- layout="horizontal"
- >
- <Dropdown
- options={ortOptions}
- selectedValue={currentOrt}
- onSelect={(value) =>
- updateSetting("ort_accelerator", value as OrtAcceleratorSetting)
- }
- disabled={isUpdating("ort_accelerator")}
- />
- </SettingContainer>
- )}
- </>
+ <SettingContainer
+ title={t("settings.advanced.acceleration.transcribe.title")}
+ description={t("settings.advanced.acceleration.transcribe.description")}
+ descriptionMode={descriptionMode}
+ grouped={grouped}
+ layout="horizontal"
+ >
+ <Dropdown
+ options={transcribeOptions}
+ selectedValue={displayedTranscribe}
+ onSelect={handleTranscribeChange}
+ disabled={
+ isUpdating("transcribe_accelerator") ||
+ isUpdating("transcribe_gpu_device")
+ }
+ />
+ </SettingContainer>
);
};
diff --git a/src/components/settings/models/ModelsSettings.tsx b/src/components/settings/models/ModelsSettings.tsx
index c74efd7d..25ffa785 100644
--- a/src/components/settings/models/ModelsSettings.tsx
+++ b/src/components/settings/models/ModelsSettings.tsx
@@ -25,7 +25,7 @@ const modelSupportsLanguage = (model: ModelInfo, langCode: string): boolean => {
return supportsLanguageCode(model.supported_languages, langCode);
};
-// Legacy models are the blob (Url-sourced) .bin/ONNX downloads, superseded by
+// Legacy models are the blob (Url-sourced) .bin downloads, superseded by
// the catalog GGUFs. They stay runnable when already on disk, but we no longer
// advertise the download.
const isLegacyModel = (model: ModelInfo): boolean =>
@@ -49,7 +49,6 @@ export const ModelsSettings: React.FC = () => {
downloadProgress,
downloadStats,
verifyingModels,
- extractingModels,
loading,
isRescanning,
downloadModel,
@@ -97,9 +96,6 @@ export const ModelsSettings: React.FC = () => {
}, [languageFilter, t]);
const getModelStatus = (modelId: string): ModelCardStatus => {
- if (modelId in extractingModels) {
- return "extracting";
- }
if (modelId in verifyingModels) {
return "verifying";
}
@@ -180,7 +176,7 @@ export const ModelsSettings: React.FC = () => {
const filteredModels = useMemo(() => {
const q = searchQuery.trim().toLowerCase();
return models.filter((model: ModelInfo) => {
- // Hide deprecated legacy (.bin/ONNX) downloads unless already on disk.
+ // Hide deprecated legacy (.bin) downloads unless already on disk.
if (isLegacyModel(model) && !model.is_downloaded) return false;
if (languageFilter !== "all") {
if (!modelSupportsLanguage(model, languageFilter)) return false;
@@ -205,8 +201,7 @@ export const ModelsSettings: React.FC = () => {
if (
model.is_custom ||
model.is_downloaded ||
- model.id in downloadingModels ||
- model.id in extractingModels
+ model.id in downloadingModels
) {
downloaded.push(model);
} else {
@@ -226,7 +221,7 @@ export const ModelsSettings: React.FC = () => {
downloadedModels: downloaded,
availableModels: available,
};
- }, [filteredModels, downloadingModels, extractingModels, currentModel]);
+ }, [filteredModels, downloadingModels, currentModel]);
if (loading) {
return (
diff --git a/src/components/settings/models/RetiredModelsNotice.tsx b/src/components/settings/models/RetiredModelsNotice.tsx
index 44287488..abd59afd 100644
--- a/src/components/settings/models/RetiredModelsNotice.tsx
+++ b/src/components/settings/models/RetiredModelsNotice.tsx
@@ -1,10 +1,11 @@
-import React, { useState } from "react";
+import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { toast } from "sonner";
import { Loader2, Trash2, TriangleAlert } from "lucide-react";
import { Button } from "../../ui/Button";
+import { commands, type RetiredModel } from "@/bindings";
import { useModelStore } from "@/stores/modelStore";
-import { isRetiredModel } from "@/components/onboarding/retiredModels";
+import { deleteRetiredModel } from "@/components/onboarding/retiredModels";
import { formatModelSize } from "@/lib/utils/format";
/**
@@ -14,12 +15,15 @@ import { formatModelSize } from "@/lib/utils/format";
*/
const RetiredModelsNotice: React.FC = () => {
const { t } = useTranslation();
- const { models, currentModel, deleteModel } = useModelStore();
+ const { currentModel } = useModelStore();
+ const [onDisk, setOnDisk] = useState<RetiredModel[]>([]);
const [deleting, setDeleting] = useState(false);
- const retired = models.filter(
- (m) => m.is_downloaded && isRetiredModel(m.id) && m.id !== currentModel,
- );
+ useEffect(() => {
+ commands.getRetiredModels().then(setOnDisk);
+ }, []);
+
+ const retired = onDisk.filter((m) => m.id !== currentModel);
if (retired.length === 0) return null;
@@ -30,10 +34,10 @@ const RetiredModelsNotice: React.FC = () => {
const handleDelete = async () => {
setDeleting(true);
let deleted = 0;
- // Sequential: each delete reloads the model list in the store.
for (const model of retired) {
- if (await deleteModel(model.id)) deleted += 1;
+ if (await deleteRetiredModel(model.id)) deleted += 1;
}
+ setOnDisk(await commands.getRetiredModels());
setDeleting(false);
if (deleted === retired.length) {
diff --git a/src/i18n/locales/ar/translation.json b/src/i18n/locales/ar/translation.json
index 0fb717af..c46253d8 100644
--- a/src/i18n/locales/ar/translation.json
+++ b/src/i18n/locales/ar/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": ".دقة جيدة، لكنه بطيء"
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": ".الإنجليزية فقط. أفضل نموذج للمتحدثين بالإنجليزية"
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": ".سريع ودقيق"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": ".سريع جداً، الإنجليزية فقط. يتعامل جيداً مع اللهجات"
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "سريع للغاية، الإنجليزية فقط"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "سريع، الإنجليزية فقط. توازن جيد بين السرعة والدقة."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "الإنجليزية فقط. جودة عالية."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "محسّن للماندرين التايوانية. دعم التبديل بين اللغات."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "سريع جداً. الصينية، الإنجليزية، اليابانية، الكورية، الكانتونية."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "التعرف على الكلام الروسي. سريع ودقيق."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "سريع جداً. الإنجليزية، الألمانية، الإسبانية، الفرنسية. يدعم الترجمة."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "متعدد اللغات ودقيق. 25 لغة أوروبية. يدعم الترجمة."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "نموذج كبير وأبطأ، لكنه دقيق جداً ومتعدد اللغات."
}
},
"errors": {
@@ -139,9 +95,6 @@
"noModelsAvailable": "لا توجد نماذج متاحة",
"verifying": "جارٍ التحقق من {{modelName}}...",
"verifyingGeneric": "جارٍ التحقق...",
- "extracting": "جاري استخراج {{modelName}}...",
- "extractingMultiple": "جاري استخراج {{count}} من النماذج...",
- "extractingGeneric": "جاري الاستخراج...",
"downloading": "جاري التنزيل {{percentage}}%",
"downloadingMultiple": "جاري تنزيل {{count}} من النماذج...",
"modelReady": "النموذج جاهز",
@@ -265,12 +218,8 @@
},
"acceleration": {
"transcribe": {
- "title": "تسريع Whisper",
- "description": "تسريع الأجهزة لنماذج Whisper. الوضع التلقائي يستخدم GPU إن توفر (Metal على macOS، Vulkan على Windows/Linux)."
- },
- "ort": {
- "title": "تسريع ONNX",
- "description": "تسريع الأجهزة لنماذج ONNX (Parakeet، Canary، Moonshine، إلخ). DirectML على Windows تجريبي. قد تفشل النماذج في النسخ."
+ "title": "تسريع الأجهزة",
+ "description": "اختر الأجهزة المستخدمة للتفريغ الصوتي. الوضع التلقائي يستخدم GPU إن توفر، وإلا فيستخدم CPU."
},
"gpuDevice": {
"auto": "تلقائي"
diff --git a/src/i18n/locales/bg/translation.json b/src/i18n/locales/bg/translation.json
index 7b041870..86cdf969 100644
--- a/src/i18n/locales/bg/translation.json
+++ b/src/i18n/locales/bg/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "Добра точност, но по-бавен."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "Само английски. Най-добрият модел за носители на английски."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "Бърз и точен."
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "Много бърз, само английски. Добре обработва акценти."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "Ултрабърз, само английски."
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "Бърз, само английски. Добър баланс между скорост и точност."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "Само английски. Високо качество."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "Оптимизиран за тайвански мандарин. Поддръжка на смесване на езици."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "Много бърз. Китайски, английски, японски, корейски, кантонски."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "Разпознаване на руска реч. Бърз и точен."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "Много бърз. Английски, немски, испански, френски. Поддържа превод."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "Точен многоезичен. 25 европейски езика. Поддържа превод."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "Голям, по-бавен, но много точен многоезичен модел."
}
},
"errors": {
@@ -140,9 +96,6 @@
"noModelsAvailable": "Няма налични модели",
"verifying": "Проверка на {{modelName}}...",
"verifyingGeneric": "Проверка...",
- "extracting": "Разархивиране на {{modelName}}...",
- "extractingMultiple": "Разархивиране на {{count}} модела...",
- "extractingGeneric": "Разархивиране...",
"downloading": "Изтегляне {{percentage}}%",
"downloadingMultiple": "Изтегляне на {{count}} модела...",
"modelReady": "Моделът е готов",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "Ускорение за Whisper",
- "description": "Хардуерно ускорение за моделите Whisper. „Автоматично“ използва GPU при наличност (Metal на macOS, Vulkan на Windows/Linux)."
- },
- "ort": {
- "title": "Ускорение за ONNX",
- "description": "Хардуерно ускорение за ONNX модели (Parakeet, Canary, Moonshine и др.). DirectML на Windows е експериментален. Моделите може да не транскрибират."
+ "title": "Хардуерно ускорение",
+ "description": "Изберете хардуера, използван за транскрипция. „Автоматично“ използва GPU при наличност, а в противен случай преминава към CPU."
},
"gpuDevice": {
"auto": "Автоматично"
diff --git a/src/i18n/locales/ca/translation.json b/src/i18n/locales/ca/translation.json
index e990f002..9e963a7e 100644
--- a/src/i18n/locales/ca/translation.json
+++ b/src/i18n/locales/ca/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "Bona precisió, però lent."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "Només anglès. El millor model per a parlants d'anglès."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "Ràpid i precís."
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "Molt ràpid, només anglès. Reconeix bé els accents."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "Ultraràpid, només anglès."
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "Ràpid, només anglès. Bon equilibri entre velocitat i precisió."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "Només anglès. Alta qualitat."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "Optimitzat per al xinès mandarí de Taiwan. Admet l'alternança de llengües."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "Molt ràpid. Xinès, anglès, japonès, coreà i cantonès."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "Reconeixement de la parla en rus. Ràpid i precís."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "Molt ràpid. Anglès, alemany, castellà i francès. Admet la traducció."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "Multilingüe i precís. 25 llengües europees. Admet la traducció."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "Un model multilingüe gran, més lent, però molt precís."
}
},
"errors": {
@@ -141,9 +97,6 @@
"noModelsAvailable": "No hi ha models disponibles",
"verifying": "S'està verificant {{modelName}}...",
"verifyingGeneric": "S'està verificant...",
- "extracting": "S'està extraient {{modelName}}...",
- "extractingMultiple": "S'estan extraient {{count}} models...",
- "extractingGeneric": "S'està extraient...",
"downloading": "S'està baixant: {{percentage}}%",
"downloadingMultiple": "S'estan baixant {{count}} models...",
"modelReady": "Model a punt",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "Acceleració del transcribe.cpp",
- "description": "Acceleració per maquinari dels models del transcribe.cpp (família Whisper). L'opció automàtica utilitza la GPU si està disponible (Metal al macOS, Vulkan al Windows i al Linux)."
- },
- "ort": {
- "title": "Acceleració ONNX",
- "description": "Acceleració per maquinari dels models ONNX (Parakeet, Canary, Moonshine, etc.). El DirectML al Windows és experimental. És possible que els models no puguin transcriure."
+ "title": "Acceleració per maquinari",
+ "description": "Trieu el maquinari que s'utilitza per a la transcripció. L'opció automàtica utilitza la GPU si està disponible i, si no, recorre a la CPU."
},
"gpuDevice": {
"auto": "Automàtica"
diff --git a/src/i18n/locales/cs/translation.json b/src/i18n/locales/cs/translation.json
index ea74fd6e..d6c15e04 100644
--- a/src/i18n/locales/cs/translation.json
+++ b/src/i18n/locales/cs/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "Dobrá přesnost, ale pomalý."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "Pouze angličtina. Nejlepší model pro anglicky mluvící."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "Rychlý a přesný"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "Velmi rychlý, pouze angličtina. Dobře zvládá přízvuky."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "Ultrarychlý, pouze angličtina"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "Rychlý, pouze angličtina. Dobrý poměr rychlosti a přesnosti."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "Pouze angličtina. Vysoká kvalita."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "Optimalizováno pro tchajwanskou mandarínštinu. Podpora přepínání jazyků."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "Velmi rychlý. Čínština, angličtina, japonština, korejština, kantonština."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "Rozpoznávání ruské řeči. Rychlé a přesné."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "Velmi rychlý. Angličtina, němčina, španělština, francouzština. Podporuje překlad."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "Přesný vícejazyčný. 25 evropských jazyků. Podporuje překlad."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "Velký, pomalejší, ale velmi přesný vícejazyčný model."
}
},
"errors": {
@@ -139,9 +95,6 @@
"noModelsAvailable": "Nejsou dostupné žádné modely",
"verifying": "Ověřování {{modelName}}...",
"verifyingGeneric": "Ověřování...",
- "extracting": "Rozbaluji {{modelName}}...",
- "extractingMultiple": "Rozbaluji {{count}} modelů...",
- "extractingGeneric": "Rozbalování...",
"downloading": "Stahování {{percentage}}%",
"downloadingMultiple": "Stahování {{count}} modelů...",
"modelReady": "Model připraven",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "Akcelerace Whisper",
- "description": "Hardwarová akcelerace pro modely Whisper. Automatický režim používá GPU, pokud je k dispozici (Metal na macOS, Vulkan na Windows/Linux)."
- },
- "ort": {
- "title": "Akcelerace ONNX",
- "description": "Hardwarová akcelerace pro modely ONNX (Parakeet, Canary, Moonshine atd.). DirectML na Windows je experimentální. Modely nemusí správně přepisovat."
+ "title": "Hardwarová akcelerace",
+ "description": "Vyberte hardware, který se použije pro přepis. Automatický režim používá GPU, pokud je k dispozici, jinak přejde na CPU."
},
"gpuDevice": {
"auto": "Automaticky"
diff --git a/src/i18n/locales/da/translation.json b/src/i18n/locales/da/translation.json
index 0cf3c9f8..a5b135f3 100644
--- a/src/i18n/locales/da/translation.json
+++ b/src/i18n/locales/da/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "God nøjagtighed, men langsom."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "Kun engelsk. Den bedste model for engelsktalende."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "Hurtig og nøjagtig"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "Meget hurtig, kun engelsk. Håndterer accenter godt."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "Ultrahurtig, kun engelsk"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "Hurtig, kun engelsk. God balance mellem hastighed og nøjagtighed."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "Kun engelsk. Høj kvalitet."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "Optimeret til taiwansk mandarin. Understøtter kodeskift."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "Meget hurtig. Kinesisk, engelsk, japansk, koreansk, kantonesisk."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "Russisk talegenkendelse. Hurtig og nøjagtig."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "Meget hurtig. Engelsk, tysk, spansk, fransk. Understøtter oversættelse."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "Nøjagtig, flersproget. 25 europæiske sprog. Understøtter oversættelse."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "En stor, langsommere, men meget nøjagtig flersproget model."
}
},
"errors": {
@@ -141,9 +97,6 @@
"noModelsAvailable": "Ingen modeller tilgængelige",
"verifying": "Verificerer {{modelName}}...",
"verifyingGeneric": "Verificerer...",
- "extracting": "Udpakker {{modelName}}...",
- "extractingMultiple": "Udpakker {{count}} modeller...",
- "extractingGeneric": "Udpakker...",
"downloading": "Downloader {{percentage}}%",
"downloadingMultiple": "Downloader {{count}} modeller...",
"modelReady": "Model klar",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "transcribe.cpp-acceleration",
- "description": "Hardwareacceleration til transcribe.cpp-modeller (Whisper-familien). Auto bruger GPU, hvis tilgængelig (Metal på macOS, Vulkan på Windows/Linux)."
- },
- "ort": {
- "title": "ONNX-acceleration",
- "description": "Hardwareacceleration til ONNX-modeller (Parakeet, Canary, Moonshine osv.). DirectML på Windows er eksperimentelt. Modeller kan fejle under transskription."
+ "title": "Hardwareacceleration",
+ "description": "Vælg den hardware, der bruges til transskription. Automatisk bruger GPU'en, når den er tilgængelig, og falder ellers tilbage til CPU'en."
},
"gpuDevice": {
"auto": "Automatisk"
diff --git a/src/i18n/locales/de/translation.json b/src/i18n/locales/de/translation.json
index c175b5d3..95285787 100644
--- a/src/i18n/locales/de/translation.json
+++ b/src/i18n/locales/de/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "Gute Genauigkeit, aber langsam."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "Nur Englisch. Das beste Modell für englischsprachige Nutzer."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "Schnell und genau"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "Sehr schnell, nur Englisch. Verarbeitet Akzente gut."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "Ultraschnell, nur Englisch"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "Schnell, nur Englisch. Gute Balance zwischen Geschwindigkeit und Genauigkeit."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "Nur Englisch. Hohe Qualität."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "Optimiert für taiwanesisches Mandarin. Unterstützung für Code-Switching."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "Sehr schnell. Chinesisch, Englisch, Japanisch, Koreanisch, Kantonesisch."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "Russische Spracherkennung. Schnell und präzise."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "Sehr schnell. Englisch, Deutsch, Spanisch, Französisch. Unterstützt Übersetzung."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "Genaue mehrsprachige Erkennung. 25 europäische Sprachen. Unterstützt Übersetzung."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "Ein großes, langsameres, aber sehr genaues mehrsprachiges Modell."
}
},
"errors": {
@@ -140,9 +96,6 @@
"noModelsAvailable": "Keine Modelle verfügbar",
"verifying": "Überprüfung von {{modelName}}...",
"verifyingGeneric": "Überprüfung...",
- "extracting": "Entpacke {{modelName}}...",
- "extractingMultiple": "Entpacke {{count}} Modelle...",
- "extractingGeneric": "Wird entpackt...",
"downloading": "Herunterladen {{percentage}}%",
"downloadingMultiple": "Lade {{count}} Modelle herunter...",
"modelReady": "Modell bereit",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "Whisper-Beschleunigung",
- "description": "Hardwarebeschleunigung für Whisper-Modelle. Automatisch nutzt GPU falls verfügbar (Metal auf macOS, Vulkan auf Windows/Linux)."
- },
- "ort": {
- "title": "ONNX-Beschleunigung",
- "description": "Hardwarebeschleunigung für ONNX-Modelle (Parakeet, Canary, Moonshine usw.). DirectML unter Windows ist experimentell. Modelle können bei der Transkription fehlschlagen."
+ "title": "Hardwarebeschleunigung",
+ "description": "Wähle die Hardware für die Transkription. „Automatisch“ nutzt die GPU, wenn verfügbar, und weicht sonst auf die CPU aus."
},
"gpuDevice": {
"auto": "Automatisch"
diff --git a/src/i18n/locales/en/translation.json b/src/i18n/locales/en/translation.json
index 981d47d9..d1f5cfb8 100644
--- a/src/i18n/locales/en/translation.json
+++ b/src/i18n/locales/en/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "Good accuracy, but slow."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "English only. The best model for English speakers."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "Fast and accurate"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "Very fast, English only. Handles accents well."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "Ultra-fast, English only"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "Fast, English only. Good balance of speed and accuracy."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "English only. High quality."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "Optimized for Taiwanese Mandarin. Code-switching support."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "Very fast. Chinese, English, Japanese, Korean, Cantonese."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "Russian speech recognition. Fast and accurate."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "Very fast. English, German, Spanish, French. Supports translation."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "Accurate multilingual. 25 European languages. Supports translation."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "A large, slower, but very accurate multilingual model."
}
},
"errors": {
@@ -141,9 +97,6 @@
"noModelsAvailable": "No models available",
"verifying": "Verifying {{modelName}}...",
"verifyingGeneric": "Verifying...",
- "extracting": "Extracting {{modelName}}...",
- "extractingMultiple": "Extracting {{count}} models...",
- "extractingGeneric": "Extracting...",
"downloading": "Downloading {{percentage}}%",
"downloadingMultiple": "Downloading {{count}} models...",
"modelReady": "Model Ready",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "transcribe.cpp Acceleration",
- "description": "Hardware acceleration for transcribe.cpp (Whisper-family) models. Auto uses GPU if available (Metal on macOS, Vulkan on Windows/Linux)."
- },
- "ort": {
- "title": "ONNX Acceleration",
- "description": "Hardware acceleration for ONNX models (Parakeet, Canary, Moonshine, etc.). DirectML on Windows is experimental. Models may fail to transcribe."
+ "title": "Hardware Acceleration",
+ "description": "Choose the hardware used for transcription. Auto uses the GPU when available and falls back to the CPU."
},
"gpuDevice": {
"auto": "Auto"
diff --git a/src/i18n/locales/es/translation.json b/src/i18n/locales/es/translation.json
index f5f97fb6..4086da6e 100644
--- a/src/i18n/locales/es/translation.json
+++ b/src/i18n/locales/es/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "Buena precisión, pero lento."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "Solo inglés. El mejor modelo para hablantes de inglés."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "Rápido y preciso"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "Muy rápido, solo inglés. Maneja bien los acentos."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "Ultrarrápido, solo inglés"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "Rápido, solo inglés. Buen equilibrio entre velocidad y precisión."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "Solo inglés. Alta calidad."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "Optimizado para mandarín taiwanés. Soporte para cambio de código."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "Muy rápido. Chino, inglés, japonés, coreano, cantonés."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "Reconocimiento de voz en ruso. Rápido y preciso."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "Muy rápido. Inglés, alemán, español, francés. Soporta traducción."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "Multilingüe preciso. 25 idiomas europeos. Soporta traducción."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "Un modelo grande, más lento, pero muy preciso y multilingüe."
}
},
"errors": {
@@ -140,9 +96,6 @@
"noModelsAvailable": "No hay modelos disponibles",
"verifying": "Verificando {{modelName}}...",
"verifyingGeneric": "Verificando...",
- "extracting": "Extrayendo {{modelName}}...",
- "extractingMultiple": "Extrayendo {{count}} modelos...",
- "extractingGeneric": "Extrayendo...",
"downloading": "Descargando {{percentage}}%",
"downloadingMultiple": "Descargando {{count}} modelos...",
"modelReady": "Modelo listo",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "Aceleración de transcribe.cpp",
- "description": "Aceleración por hardware para modelos transcribe.cpp (familia Whisper). Auto usa GPU si está disponible (Metal en macOS, Vulkan en Windows/Linux)."
- },
- "ort": {
- "title": "Aceleración de ONNX",
- "description": "Aceleración por hardware para modelos ONNX (Parakeet, Canary, Moonshine, etc.). DirectML en Windows es experimental. Los modelos pueden fallar al transcribir."
+ "title": "Aceleración por hardware",
+ "description": "Elige el hardware que se usa para la transcripción. Automático usa la GPU cuando está disponible y, si no, recurre a la CPU."
},
"gpuDevice": {
"auto": "Automático"
diff --git a/src/i18n/locales/fr/translation.json b/src/i18n/locales/fr/translation.json
index fbae8c97..de8ed36b 100644
--- a/src/i18n/locales/fr/translation.json
+++ b/src/i18n/locales/fr/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "Bonne précision, mais lent."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "Anglais uniquement. Le meilleur modèle pour les anglophones."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "Rapide et précis"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "Très rapide, anglais uniquement. Gère bien les accents."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "Ultra-rapide, anglais uniquement"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "Rapide, anglais uniquement. Bon équilibre entre vitesse et précision."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "Anglais uniquement. Haute qualité."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "Optimisé pour le mandarin taïwanais. Prise en charge de l'alternance codique."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "Très rapide. Chinois, anglais, japonais, coréen, cantonais."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "Reconnaissance vocale en russe. Rapide et précis."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "Très rapide. Anglais, allemand, espagnol, français. Supporte la traduction."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "Multilingue précis. 25 langues européennes. Supporte la traduction."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "Un modèle volumineux, plus lent, mais très précis et multilingue."
}
},
"errors": {
@@ -140,9 +96,6 @@
"noModelsAvailable": "Aucun modèle disponible",
"verifying": "Vérification de {{modelName}}...",
"verifyingGeneric": "Vérification...",
- "extracting": "Extraction de {{modelName}}...",
- "extractingMultiple": "Extraction de {{count}} modèles...",
- "extractingGeneric": "Extraction...",
"downloading": "Téléchargement {{percentage}}%",
"downloadingMultiple": "Téléchargement de {{count}} modèles...",
"modelReady": "Modèle Prêt",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "Accélération Whisper",
- "description": "Accélération matérielle pour les modèles Whisper. Auto utilise le GPU si disponible (Metal sur macOS, Vulkan sur Windows/Linux)."
- },
- "ort": {
- "title": "Accélération ONNX",
- "description": "Accélération matérielle pour les modèles ONNX (Parakeet, Canary, Moonshine, etc.). DirectML sur Windows est expérimental. Les modèles peuvent échouer à transcrire."
+ "title": "Accélération matérielle",
+ "description": "Choisissez le matériel utilisé pour la transcription. Automatique utilise le GPU lorsqu'il est disponible et bascule sinon sur le CPU."
},
"gpuDevice": {
"auto": "Automatique"
diff --git a/src/i18n/locales/he/translation.json b/src/i18n/locales/he/translation.json
index 49ac93dc..f50ca803 100644
--- a/src/i18n/locales/he/translation.json
+++ b/src/i18n/locales/he/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "דיוק טוב, אבל איטי."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "אנגלית בלבד. המודל הטוב ביותר לדוברי אנגלית."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "מהיר ומדויק"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "מהיר מאוד, אנגלית בלבד. מתמודד היטב עם מבטאים."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "מהיר במיוחד, אנגלית בלבד"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "מהיר, אנגלית בלבד. איזון טוב בין מהירות לדיוק."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "אנגלית בלבד. איכות גבוהה."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "מותאם למנדרינית טאיוואנית. תמיכה במעבר בין שפות."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "מהיר מאוד. סינית, אנגלית, יפנית, קוריאנית וקנטונזית."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "זיהוי דיבור ברוסית. מהיר ומדויק."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "מהיר מאוד. אנגלית, גרמנית, ספרדית וצרפתית. תומך בתרגום."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "רב-לשוני ומדויק. 25 שפות אירופיות. תומך בתרגום."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "מודל גדול, איטי יותר, אך מדויק מאוד ורב-לשוני."
}
},
"errors": {
@@ -140,9 +96,6 @@
"noModelsAvailable": "אין מודלים זמינים",
"verifying": "מאמת את {{modelName}}...",
"verifyingGeneric": "מאמת...",
- "extracting": "מחלץ את {{modelName}}...",
- "extractingMultiple": "מחלץ {{count}} מודלים...",
- "extractingGeneric": "מחלץ...",
"downloading": "מוריד {{percentage}}%",
"downloadingMultiple": "מוריד {{count}} מודלים...",
"modelReady": "המודל מוכן",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "האצת Whisper",
- "description": "האצת חומרה למודלי Whisper. מצב אוטומטי משתמש ב-GPU אם זמין (Metal ב-macOS, Vulkan ב-Windows/Linux)."
- },
- "ort": {
- "title": "האצת ONNX",
- "description": "האצת חומרה למודלי ONNX (Parakeet, Canary, Moonshine ועוד). DirectML ב-Windows הוא ניסיוני. ייתכן שמודלים ייכשלו בתמלול."
+ "title": "האצת חומרה",
+ "description": "בחר את החומרה שמשמשת לתמלול. מצב אוטומטי משתמש ב-GPU כשהוא זמין, ואחרת עובר ל-CPU."
},
"gpuDevice": {
"auto": "אוטומטי"
diff --git a/src/i18n/locales/hi/translation.json b/src/i18n/locales/hi/translation.json
index 8e95d736..5c25d398 100644
--- a/src/i18n/locales/hi/translation.json
+++ b/src/i18n/locales/hi/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "अच्छी सटीकता, लेकिन धीमा."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "केवल अंग्रेज़ी. अंग्रेज़ी बोलने वालों के लिए सबसे अच्छा मॉडल."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "तेज़ और सटीक"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "बहुत तेज़, केवल अंग्रेज़ी. अलग-अलग लहजों को अच्छी तरह समझता है."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "बेहद तेज़, केवल अंग्रेज़ी"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "तेज़, केवल अंग्रेज़ी. स्पीड और सटीकता का अच्छा संतुलन."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "केवल अंग्रेज़ी. बेहतरीन क्वालिटी."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "ताइवानी मैंडरिन के लिए ऑप्टिमाइज़ किया गया. कोड-स्विचिंग की सुविधा."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "बहुत तेज़. चीनी, अंग्रेज़ी, जापानी, कोरियाई, कैंटोनीज़."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "रूसी बोली पहचानता है. तेज़ और सटीक."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "बहुत तेज़. अंग्रेज़ी, जर्मन, स्पेनिश, फ़्रेंच. अनुवाद भी कर सकता है."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "सटीक बहुभाषी मॉडल. 25 यूरोपीय भाषाएं. अनुवाद भी कर सकता है."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "बड़ा और थोड़ा धीमा, लेकिन बहुत सटीक बहुभाषी मॉडल."
}
},
"errors": {
@@ -141,9 +97,6 @@
"noModelsAvailable": "कोई मॉडल उपलब्ध नहीं है",
"verifying": "{{modelName}} की पुष्टि हो रही है...",
"verifyingGeneric": "पुष्टि हो रही है...",
- "extracting": "{{modelName}} एक्सट्रैक्ट हो रहा है...",
- "extractingMultiple": "{{count}} मॉडल एक्सट्रैक्ट हो रहे हैं...",
- "extractingGeneric": "एक्सट्रैक्ट हो रहा है...",
"downloading": "{{percentage}}% डाउनलोड हो रहा है",
"downloadingMultiple": "{{count}} मॉडल डाउनलोड हो रहे हैं...",
"modelReady": "मॉडल तैयार है",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "transcribe.cpp एक्सेलेरेशन",
- "description": "transcribe.cpp (Whisper-परिवार) मॉडल के लिए हार्डवेयर एक्सेलेरेशन. 'ऑटो' उपलब्ध होने पर GPU का इस्तेमाल करता है (macOS पर Metal, Windows/Linux पर Vulkan)."
- },
- "ort": {
- "title": "ONNX एक्सेलेरेशन",
- "description": "ONNX मॉडल (Parakeet, Canary, Moonshine वगैरह) के लिए हार्डवेयर एक्सेलेरेशन. Windows पर DirectML प्रायोगिक है. हो सकता है कि कुछ मॉडल ट्रांसक्राइब न कर पाएं."
+ "title": "हार्डवेयर एक्सेलेरेशन",
+ "description": "चुनें कि ट्रांसक्रिप्शन किस हार्डवेयर पर चले. 'ऑटो' उपलब्ध होने पर GPU का इस्तेमाल करता है, नहीं तो CPU पर चला जाता है."
},
"gpuDevice": {
"auto": "ऑटो"
diff --git a/src/i18n/locales/id/translation.json b/src/i18n/locales/id/translation.json
index 9d84c814..b7d9d757 100644
--- a/src/i18n/locales/id/translation.json
+++ b/src/i18n/locales/id/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "Akurasi baik, tetapi lambat."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "Hanya bahasa Inggris. Model terbaik untuk penutur bahasa Inggris."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "Cepat dan akurat"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "Sangat cepat, hanya bahasa Inggris. Mengenali aksen dengan baik."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "Sangat cepat, hanya bahasa Inggris"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "Cepat, hanya bahasa Inggris. Keseimbangan yang baik antara kecepatan dan akurasi."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "Hanya bahasa Inggris. Kualitas tinggi."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "Dioptimalkan untuk Mandarin Taiwan. Mendukung alih kode."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "Sangat cepat. Bahasa Mandarin, Inggris, Jepang, Korea, dan Kanton."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "Pengenalan ucapan bahasa Rusia. Cepat dan akurat."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "Sangat cepat. Bahasa Inggris, Jerman, Spanyol, dan Prancis. Mendukung penerjemahan."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "Akurat dan multibahasa. Mendukung 25 bahasa Eropa serta penerjemahan."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "Model multibahasa yang besar dan lebih lambat, tetapi sangat akurat."
}
},
"errors": {
@@ -141,9 +97,6 @@
"noModelsAvailable": "Tidak ada model yang tersedia",
"verifying": "Memverifikasi {{modelName}}...",
"verifyingGeneric": "Memverifikasi...",
- "extracting": "Mengekstrak {{modelName}}...",
- "extractingMultiple": "Mengekstrak {{count}} model...",
- "extractingGeneric": "Mengekstrak...",
"downloading": "Mengunduh {{percentage}}%",
"downloadingMultiple": "Mengunduh {{count}} model...",
"modelReady": "Model Siap",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "Akselerasi transcribe.cpp",
- "description": "Akselerasi perangkat keras untuk model transcribe.cpp (keluarga Whisper). Otomatis menggunakan GPU jika tersedia (Metal di macOS, Vulkan di Windows/Linux)."
- },
- "ort": {
- "title": "Akselerasi ONNX",
- "description": "Akselerasi perangkat keras untuk model ONNX (Parakeet, Canary, Moonshine, dll.). DirectML di Windows bersifat eksperimental. Model mungkin gagal mentranskripsikan."
+ "title": "Akselerasi perangkat keras",
+ "description": "Pilih perangkat keras yang digunakan untuk transkripsi. Otomatis menggunakan GPU jika tersedia, dan beralih ke CPU jika tidak."
},
"gpuDevice": {
"auto": "Otomatis"
diff --git a/src/i18n/locales/it/translation.json b/src/i18n/locales/it/translation.json
index 5ce14ab0..c8a8ae6c 100644
--- a/src/i18n/locales/it/translation.json
+++ b/src/i18n/locales/it/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "Buona accuratezza, ma lento."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "Solo inglese. Il miglior modello per chi parla inglese."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "Veloce e accurato"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "Molto veloce, solo inglese. Gestisce bene gli accenti."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "Ultra-veloce, solo inglese"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "Veloce, solo inglese. Buon equilibrio tra velocità e precisione."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "Solo inglese. Alta qualità."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "Ottimizzato per il mandarino taiwanese. Supporto per il code-switching."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "Molto veloce. Cinese, inglese, giapponese, coreano, cantonese."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "Riconoscimento vocale in russo. Veloce e preciso."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "Molto veloce. Inglese, tedesco, spagnolo, francese. Supporta la traduzione."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "Multilingue accurato. 25 lingue europee. Supporta la traduzione."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "Un modello grande, più lento, ma molto accurato e multilingue."
}
},
"errors": {
@@ -140,9 +96,6 @@
"noModelsAvailable": "Nessun modello disponibile",
"verifying": "Verifica di {{modelName}}...",
"verifyingGeneric": "Verifica...",
- "extracting": "Estrazione di {{modelName}}...",
- "extractingMultiple": "Estrazione di {{count}} modelli...",
- "extractingGeneric": "Estrazione...",
"downloading": "Download {{percentage}}%",
"downloadingMultiple": "Download di {{count}} modelli...",
"modelReady": "Modello Pronto",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "Accelerazione Whisper",
- "description": "Accelerazione hardware per i modelli Whisper. Auto utilizza la GPU se disponibile (Metal su macOS, Vulkan su Windows/Linux)."
- },
- "ort": {
- "title": "Accelerazione ONNX",
- "description": "Accelerazione hardware per i modelli ONNX (Parakeet, Canary, Moonshine, ecc.). DirectML su Windows è sperimentale. I modelli potrebbero non riuscire a trascrivere."
+ "title": "Accelerazione hardware",
+ "description": "Scegli l'hardware usato per la trascrizione. Automatico usa la GPU quando disponibile, altrimenti ripiega sulla CPU."
},
"gpuDevice": {
"auto": "Automatico"
diff --git a/src/i18n/locales/ja/translation.json b/src/i18n/locales/ja/translation.json
index b2da0c26..cd293dce 100644
--- a/src/i18n/locales/ja/translation.json
+++ b/src/i18n/locales/ja/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "良好な精度、ただし低速。"
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "英語のみ。英語話者に最適なモデル。"
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "高速で正確"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "非常に高速、英語のみ。アクセントにも対応。"
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "超高速、英語のみ"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "高速、英語のみ。速度と精度のバランスが良い。"
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "英語のみ。高品質。"
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "台湾華語に最適化。コードスイッチングに対応。"
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "非常に高速。中国語、英語、日本語、韓国語、広東語。"
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "ロシア語音声認識。高速かつ高精度。"
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "非常に高速。英語、ドイツ語、スペイン語、フランス語。翻訳対応。"
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "高精度な多言語対応。25のヨーロッパ言語。翻訳対応。"
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "大型で低速ですが、非常に高精度な多言語モデル。"
}
},
"errors": {
@@ -140,9 +96,6 @@
"noModelsAvailable": "利用可能なモデルがありません",
"verifying": "{{modelName}}を検証中…",
"verifyingGeneric": "検証中…",
- "extracting": "{{modelName}}を展開中…",
- "extractingMultiple": "{{count}}個のモデルを展開中…",
- "extractingGeneric": "展開中…",
"downloading": "ダウンロード中 {{percentage}}%",
"downloadingMultiple": "{{count}}個のモデルをダウンロード中…",
"modelReady": "モデル準備完了",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "transcribe.cpp アクセラレーション",
- "description": "transcribe.cpp (Whisper 系) モデルのハードウェアアクセラレーション。「自動」では利用可能な場合 GPU を使用します (macOS では Metal、Windows/Linux では Vulkan)。"
- },
- "ort": {
- "title": "ONNX アクセラレーション",
- "description": "ONNX モデルのハードウェアアクセラレーション (Parakeet、Canary、Moonshine など)。Windows の DirectML は実験的です。モデルの文字起こしに失敗する場合があります。"
+ "title": "ハードウェアアクセラレーション",
+ "description": "文字起こしに使用するハードウェアを選択します。「自動」では利用可能な場合は GPU を使用し、利用できない場合は CPU を使用します。"
},
"gpuDevice": {
"auto": "自動"
diff --git a/src/i18n/locales/ko/translation.json b/src/i18n/locales/ko/translation.json
index 2a2e6244..ef1b72c5 100644
--- a/src/i18n/locales/ko/translation.json
+++ b/src/i18n/locales/ko/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "좋은 정확도지만 느립니다."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "영어 전용. 영어 사용자를 위한 최고의 모델."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "빠르고 정확함"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "매우 빠름, 영어 전용. 억양을 잘 처리합니다."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "초고속, 영어 전용"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "빠름, 영어 전용. 속도와 정확도의 균형이 좋음."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "영어 전용. 높은 품질."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "대만 만다린에 최적화. 코드 스위칭 지원."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "매우 빠름. 중국어, 영어, 일본어, 한국어, 광둥어."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "러시아어 음성 인식. 빠르고 정확함."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "매우 빠름. 영어, 독일어, 스페인어, 프랑스어. 번역 지원."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "정확한 다국어 지원. 25개 유럽 언어. 번역 지원."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "크고 느리지만 매우 정확한 다국어 모델."
}
},
"errors": {
@@ -140,9 +96,6 @@
"noModelsAvailable": "사용 가능한 모델이 없습니다",
"verifying": "{{modelName}} 검증 중...",
"verifyingGeneric": "검증 중...",
- "extracting": "{{modelName}} 압축 해제 중...",
- "extractingMultiple": "{{count}}개 모델 압축 해제 중...",
- "extractingGeneric": "압축 해제 중...",
"downloading": "다운로드 중 {{percentage}}%",
"downloadingMultiple": "{{count}}개 모델 다운로드 중...",
"modelReady": "모델 준비 완료",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "Whisper 가속",
- "description": "Whisper 모델의 하드웨어 가속. 자동 모드는 GPU를 사용합니다 (macOS에서는 Metal, Windows/Linux에서는 Vulkan)."
- },
- "ort": {
- "title": "ONNX 가속",
- "description": "ONNX 모델의 하드웨어 가속 (Parakeet, Canary, Moonshine 등). Windows의 DirectML은 실험적입니다. 모델이 전사에 실패할 수 있습니다."
+ "title": "하드웨어 가속",
+ "description": "음성 인식에 사용할 하드웨어를 선택합니다. 자동 모드는 GPU를 사용할 수 있으면 GPU를, 그렇지 않으면 CPU를 사용합니다."
},
"gpuDevice": {
"auto": "자동"
diff --git a/src/i18n/locales/ne/translation.json b/src/i18n/locales/ne/translation.json
index 5a89c189..6d78fa63 100644
--- a/src/i18n/locales/ne/translation.json
+++ b/src/i18n/locales/ne/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "राम्रो शुद्धता, तर ढिलो।"
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "अङ्ग्रेजी मात्र। अङ्ग्रेजी वक्ताहरूका लागि उत्कृष्ट मोडेल।"
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "छिटो र सटीक"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "धेरै छिटो, अङ्ग्रेजी मात्र। उच्चारण शैलीहरू राम्रोसँग सम्हाल्छ।"
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "अति छिटो, अङ्ग्रेजी मात्र"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "छिटो, अङ्ग्रेजी मात्र। गति र शुद्धताको राम्रो सन्तुलन।"
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "अङ्ग्रेजी मात्र। उच्च गुणस्तर।"
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "ताइवानी मन्डारिनका लागि अनुकूलित। कोड-स्विचिङ समर्थन।"
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "धेरै छिटो। चिनियाँ, अङ्ग्रेजी, जापानी, कोरियाली, क्यान्टोनिज।"
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "रुसी वाक् पहिचान। छिटो र सटीक।"
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "धेरै छिटो। अङ्ग्रेजी, जर्मन, स्पेनी, फ्रान्सेली। अनुवाद समर्थन गर्छ।"
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "सटीक बहुभाषिक। 25 युरोपेली भाषाहरू। अनुवाद समर्थन गर्छ।"
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "ठूलो, अलि ढिलो, तर धेरै सटीक बहुभाषिक मोडेल।"
}
},
"errors": {
@@ -141,9 +97,6 @@
"noModelsAvailable": "कुनै मोडेल उपलब्ध छैन",
"verifying": "{{modelName}} प्रमाणित गरिँदैछ...",
"verifyingGeneric": "प्रमाणित गरिँदैछ...",
- "extracting": "{{modelName}} एक्स्ट्र्याक्ट गरिँदैछ...",
- "extractingMultiple": "{{count}} वटा मोडेल एक्स्ट्र्याक्ट गरिँदैछ...",
- "extractingGeneric": "एक्स्ट्र्याक्ट गरिँदैछ...",
"downloading": "डाउनलोड गरिँदैछ {{percentage}}%",
"downloadingMultiple": "{{count}} वटा मोडेल डाउनलोड गरिँदैछ...",
"modelReady": "मोडेल तयार छ",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "transcribe.cpp एक्सेलेरेसन",
- "description": "transcribe.cpp (Whisper परिवार) मोडेलहरूका लागि हार्डवेयर एक्सेलेरेसन। Auto ले उपलब्ध भए GPU प्रयोग गर्छ (macOS मा Metal, Windows/Linux मा Vulkan)।"
- },
- "ort": {
- "title": "ONNX एक्सेलेरेसन",
- "description": "ONNX मोडेलहरू (Parakeet, Canary, Moonshine, आदि) का लागि हार्डवेयर एक्सेलेरेसन। Windows मा DirectML प्रयोगात्मक छ। मोडेलहरूले ट्रान्सक्राइब गर्न नसक्न सक्छन्।"
+ "title": "हार्डवेयर एक्सेलेरेसन",
+ "description": "ट्रान्सक्रिप्सनका लागि प्रयोग हुने हार्डवेयर छान्नुहोस्। 'स्वतः' ले उपलब्ध भए GPU प्रयोग गर्छ, नभए CPU प्रयोग गर्छ।"
},
"gpuDevice": {
"auto": "स्वतः"
diff --git a/src/i18n/locales/nl/translation.json b/src/i18n/locales/nl/translation.json
index 2bdb243b..7f7e00fb 100644
--- a/src/i18n/locales/nl/translation.json
+++ b/src/i18n/locales/nl/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "Hoge nauwkeurigheid, maar traag."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "Alleen Engels. Het beste model voor Engelstaligen."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "Snel en nauwkeurig."
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "Zeer snel, alleen Engels. Gaat goed om met accenten."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "Ultrasnel, alleen Engels."
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "Snel, alleen Engels. Goede balans tussen snelheid en nauwkeurigheid."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "Alleen Engels. Hoge kwaliteit."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "Geoptimaliseerd voor Taiwanees-Mandarijn. Ondersteunt codewisseling."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "Zeer snel. Chinees, Engels, Japans, Koreaans, Kantonees."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "Russische spraakherkenning. Snel en nauwkeurig."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "Zeer snel. Engels, Duits, Spaans, Frans. Ondersteunt vertaling."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "Nauwkeurig meertalig. 25 Europese talen. Ondersteunt vertaling."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "Een groot, trager, maar zeer nauwkeurig meertalig model."
}
},
"errors": {
@@ -141,9 +97,6 @@
"noModelsAvailable": "Geen modellen beschikbaar",
"verifying": "Verifiëren van {{modelName}}...",
"verifyingGeneric": "Verifiëren...",
- "extracting": "Uitpakken van {{modelName}}...",
- "extractingMultiple": "Uitpakken van {{count}} modellen...",
- "extractingGeneric": "Uitpakken...",
"downloading": "Downloaden {{percentage}}%",
"downloadingMultiple": "Downloaden van {{count}} modellen...",
"modelReady": "Model gereed",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "transcribe.cpp-versnelling",
- "description": "Hardwareversnelling voor transcribe.cpp-modellen (Whisper-familie). 'Automatisch' gebruikt de GPU indien beschikbaar (Metal op macOS, Vulkan op Windows/Linux)."
- },
- "ort": {
- "title": "ONNX-versnelling",
- "description": "Hardwareversnelling voor ONNX-modellen (Parakeet, Canary, Moonshine, etc.). DirectML op Windows is experimenteel; modellen kunnen daardoor haperen."
+ "title": "Hardwareversnelling",
+ "description": "Kies de hardware die voor transcriptie wordt gebruikt. 'Automatisch' gebruikt de GPU indien beschikbaar en valt anders terug op de CPU."
},
"gpuDevice": {
"auto": "Automatisch"
diff --git a/src/i18n/locales/pl/translation.json b/src/i18n/locales/pl/translation.json
index b1657d1e..1a5a8ba9 100644
--- a/src/i18n/locales/pl/translation.json
+++ b/src/i18n/locales/pl/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "Dobra dokładność, ale wolny."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "Tylko angielski. Najlepszy model dla osób mówiących po angielsku."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "Szybki i dokładny"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "Bardzo szybki, tylko angielski. Dobrze radzi sobie z akcentami."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "Ultraszybki, tylko angielski"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "Szybki, tylko angielski. Dobra równowaga między szybkością a dokładnością."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "Tylko angielski. Wysoka jakość."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "Zoptymalizowany dla tajwańskiego mandaryńskiego. Obsługa przełączania języków."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "Bardzo szybki. Chiński, angielski, japoński, koreański, kantoński."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "Rozpoznawanie mowy rosyjskiej. Szybkie i dokładne."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "Bardzo szybki. Angielski, niemiecki, hiszpański, francuski. Obsługuje tłumaczenie."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "Dokładny wielojęzyczny. 25 języków europejskich. Obsługuje tłumaczenie."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "Duży, wolniejszy, ale bardzo dokładny model wielojęzyczny."
}
},
"errors": {
@@ -140,9 +96,6 @@
"noModelsAvailable": "Brak dostępnych modeli",
"verifying": "Weryfikacja {{modelName}}...",
"verifyingGeneric": "Weryfikacja...",
- "extracting": "Rozpakowywanie {{modelName}}...",
- "extractingMultiple": "Rozpakowywanie {{count}} modeli...",
- "extractingGeneric": "Rozpakowywanie...",
"downloading": "Pobieranie {{percentage}}%",
"downloadingMultiple": "Pobieranie {{count}} modeli...",
"modelReady": "Model gotowy",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "Akceleracja Whisper",
- "description": "Akceleracja sprzętowa dla modeli Whisper. Tryb automatyczny używa GPU, jeśli jest dostępny (Metal na macOS, Vulkan na Windows/Linux)."
- },
- "ort": {
- "title": "Akceleracja ONNX",
- "description": "Akceleracja sprzętowa dla modeli ONNX (Parakeet, Canary, Moonshine itp.). DirectML na Windows jest eksperymentalne. Modele mogą nie transkrybować poprawnie."
+ "title": "Akceleracja sprzętowa",
+ "description": "Wybierz sprzęt używany do transkrypcji. Tryb automatyczny używa GPU, jeśli jest dostępny, a w przeciwnym razie przełącza się na CPU."
},
"gpuDevice": {
"auto": "Automatycznie"
diff --git a/src/i18n/locales/pt/translation.json b/src/i18n/locales/pt/translation.json
index e30b3f3c..5b14cee5 100644
--- a/src/i18n/locales/pt/translation.json
+++ b/src/i18n/locales/pt/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "Boa precisão, mas lento."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "Apenas inglês. O melhor modelo para falantes de inglês."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "Rápido e preciso"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "Muito rápido, apenas inglês. Lida bem com sotaques."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "Ultrarrápido, apenas inglês"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "Rápido, apenas inglês. Bom equilíbrio entre velocidade e precisão."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "Apenas inglês. Alta qualidade."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "Otimizado para mandarim taiwanês. Suporte para alternância de código."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "Muito rápido. Chinês, inglês, japonês, coreano, cantonês."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "Reconhecimento de voz em russo. Rápido e preciso."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "Muito rápido. Inglês, alemão, espanhol, francês. Suporta tradução."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "Multilíngue preciso. 25 idiomas europeus. Suporta tradução."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "Um modelo grande, mais lento, mas muito preciso e multilíngue."
}
},
"errors": {
@@ -139,9 +95,6 @@
"noModelsAvailable": "Nenhum modelo disponível",
"verifying": "Verificando {{modelName}}...",
"verifyingGeneric": "Verificando...",
- "extracting": "Extraindo {{modelName}}...",
- "extractingMultiple": "Extraindo {{count}} modelos...",
- "extractingGeneric": "Extraindo...",
"downloading": "Baixando {{percentage}}%",
"downloadingMultiple": "Baixando {{count}} modelos...",
"modelReady": "Modelo Pronto",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "Aceleração Whisper",
- "description": "Aceleração por hardware para modelos Whisper. Auto usa GPU se disponível (Metal no macOS, Vulkan no Windows/Linux)."
- },
- "ort": {
- "title": "Aceleração ONNX",
- "description": "Aceleração por hardware para modelos ONNX (Parakeet, Canary, Moonshine, etc.). DirectML no Windows é experimental. Os modelos podem falhar na transcrição."
+ "title": "Aceleração por hardware",
+ "description": "Escolha o hardware usado para a transcrição. Automático usa a GPU quando disponível e, caso contrário, recorre à CPU."
},
"gpuDevice": {
"auto": "Automático"
diff --git a/src/i18n/locales/ru/translation.json b/src/i18n/locales/ru/translation.json
index ad6d8221..49dc72de 100644
--- a/src/i18n/locales/ru/translation.json
+++ b/src/i18n/locales/ru/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "Хорошая точность, но медленная."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "Только английский. Лучшая модель для англоговорящих."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "Быстрая и точная"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "Очень быстрая, только английский. Хорошо справляется с акцентами."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "Сверхбыстрая, только английский"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "Быстрая, только английский. Хороший баланс скорости и точности."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "Только английский. Высокое качество."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "Оптимизирована для тайваньского мандаринского. Поддержка переключения языков."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "Очень быстрая. Китайский, английский, японский, корейский, кантонский."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "Распознавание русской речи. Быстро и точно."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "Очень быстрая. Английский, немецкий, испанский, французский. Поддержка перевода."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "Точная многоязычная. 25 европейских языков. Поддержка перевода."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "Большая, медленная, но очень точная многоязычная модель."
}
},
"errors": {
@@ -140,9 +96,6 @@
"noModelsAvailable": "Нет доступных моделей",
"verifying": "Проверка {{modelName}}...",
"verifyingGeneric": "Проверка...",
- "extracting": "Извлечение {{modelName}}...",
- "extractingMultiple": "Извлечение моделей {{count}}...",
- "extractingGeneric": "Извлечение...",
"downloading": "Загрузка {{percentage}} %",
"downloadingMultiple": "Загрузка моделей {{count}}...",
"modelReady": "Модель готова",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "Ускорение Whisper",
- "description": "Аппаратное ускорение для моделей Whisper. Автоматический режим использует GPU при наличии (Metal на macOS, Vulkan на Windows/Linux)."
- },
- "ort": {
- "title": "Ускорение ONNX",
- "description": "Аппаратное ускорение для моделей ONNX (Parakeet, Canary, Moonshine и др.). DirectML на Windows является экспериментальным. Модели могут не выполнять транскрипцию."
+ "title": "Аппаратное ускорение",
+ "description": "Выберите оборудование для транскрипции. Автоматический режим использует GPU при наличии, а иначе переключается на CPU."
},
"gpuDevice": {
"auto": "Авто"
diff --git a/src/i18n/locales/sv/translation.json b/src/i18n/locales/sv/translation.json
index 5f4516a3..5513cc92 100644
--- a/src/i18n/locales/sv/translation.json
+++ b/src/i18n/locales/sv/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "Bra noggrannhet, men långsam."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "Endast engelska. Den bästa modellen för engelsktalande."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "Snabb och noggrann"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "Mycket snabb, endast engelska. Hanterar accenter bra."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "Blixtsnabb, endast engelska"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "Snabb, endast engelska. Bra balans mellan hastighet och noggrannhet."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "Endast engelska. Hög kvalitet."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "Optimerad för taiwanesisk mandarin. Stöd för kodväxling."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "Mycket snabb. Kinesiska, engelska, japanska, koreanska, kantonesiska."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "Rysk taligenkänning. Snabb och noggrann."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "Mycket snabb. Engelska, tyska, spanska, franska. Stöder översättning."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "Noggrann flerspråkig. 25 europeiska språk. Stöder översättning."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "En stor, långsammare, men mycket noggrann flerspråkig modell."
}
},
"errors": {
@@ -140,9 +96,6 @@
"noModelsAvailable": "Inga modeller tillgängliga",
"verifying": "Verifierar {{modelName}}...",
"verifyingGeneric": "Verifierar...",
- "extracting": "Extraherar {{modelName}}...",
- "extractingMultiple": "Extraherar {{count}} modeller...",
- "extractingGeneric": "Extraherar...",
"downloading": "Laddar ner {{percentage}}%",
"downloadingMultiple": "Laddar ner {{count}} modeller...",
"modelReady": "Modell klar",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "Whisper-acceleration",
- "description": "Hårdvaruacceleration för Whisper-modeller. Auto använder GPU om tillgängligt (Metal på macOS, Vulkan på Windows/Linux)."
- },
- "ort": {
- "title": "ONNX-acceleration",
- "description": "Hårdvaruacceleration för ONNX-modeller (Parakeet, Canary, Moonshine, etc.). DirectML på Windows är experimentellt. Modeller kan misslyckas med att transkribera."
+ "title": "Hårdvaruacceleration",
+ "description": "Välj vilken hårdvara som används för transkription. Automatiskt använder GPU:n när den finns tillgänglig och faller annars tillbaka på CPU:n."
},
"gpuDevice": {
"auto": "Automatiskt"
diff --git a/src/i18n/locales/tr/translation.json b/src/i18n/locales/tr/translation.json
index 905e7094..584655ab 100644
--- a/src/i18n/locales/tr/translation.json
+++ b/src/i18n/locales/tr/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "İyi doğruluk, ancak yavaş."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "Yalnızca İngilizce. İngilizce konuşanlar için en iyi model."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "Hızlı ve doğru."
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "Çok hızlı, yalnızca İngilizce. Aksanları iyi işler."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "Ultra hızlı, yalnızca İngilizce"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "Hızlı, yalnızca İngilizce. Hız ve doğruluk arasında iyi denge."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "Yalnızca İngilizce. Yüksek kalite."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "Tayvan Mandarin Çincesi için optimize edilmiş. Dil değiştirme desteği."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "Çok hızlı. Çince, İngilizce, Japonca, Korece, Kantonca."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "Rusça konuşma tanıma. Hızlı ve doğru."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "Çok hızlı. İngilizce, Almanca, İspanyolca, Fransızca. Çeviri desteği."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "Doğru çok dilli. 25 Avrupa dili. Çeviri desteği."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "Büyük, daha yavaş, ancak çok doğru çok dilli bir model."
}
},
"errors": {
@@ -139,9 +95,6 @@
"noModelsAvailable": "Kullanılabilir model yok",
"verifying": "{{modelName}} doğrulanıyor...",
"verifyingGeneric": "Doğrulanıyor...",
- "extracting": "{{modelName}} çıkarılıyor...",
- "extractingMultiple": "{{count}} model çıkarılıyor...",
- "extractingGeneric": "Çıkarılıyor...",
"downloading": "%{{percentage}} indiriliyor",
"downloadingMultiple": "{{count}} model indiriliyor...",
"modelReady": "Model Hazır",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "transcribe.cpp Hızlandırması",
- "description": "transcribe.cpp (Whisper ailesi) modelleri için donanım hızlandırması. Otomatik mod, mevcutsa GPU kullanır (macOS'ta Metal, Windows/Linux'ta Vulkan)."
- },
- "ort": {
- "title": "ONNX Hızlandırma",
- "description": "ONNX modelleri için donanım hızlandırma (Parakeet, Canary, Moonshine vb.). Windows'ta DirectML deneyseldir. Modeller transkripsiyon yapamayabilir."
+ "title": "Donanım Hızlandırma",
+ "description": "Transkripsiyon için kullanılacak donanımı seçin. Otomatik mod, mevcutsa GPU'yu kullanır; değilse CPU'ya geçer."
},
"gpuDevice": {
"auto": "Otomatik"
diff --git a/src/i18n/locales/uk/translation.json b/src/i18n/locales/uk/translation.json
index 157f4cf5..d406199f 100644
--- a/src/i18n/locales/uk/translation.json
+++ b/src/i18n/locales/uk/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "Хороша точність, але повільна"
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "Лише англійська. Найкраща модель для англомовних"
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "Швидка та точна"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "Дуже швидкий, лише англійська. Добре справляється з акцентами."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "Надшвидкий, лише англійська"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "Швидкий, лише англійська. Добрий баланс швидкості та точності."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "Лише англійська. Висока якість."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "Оптимізовано для тайванської мандаринської. Підтримка перемикання мов."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "Дуже швидкий. Китайська, англійська, японська, корейська, кантонська."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "Розпізнавання російського мовлення. Швидко і точно."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "Дуже швидка. Англійська, німецька, іспанська, французька. Підтримує переклад."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "Точна багатомовна. 25 європейських мов. Підтримує переклад."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "Велика, повільніша, але дуже точна багатомовна модель."
}
},
"errors": {
@@ -139,9 +95,6 @@
"noModelsAvailable": "Немає доступних моделей",
"verifying": "Перевірка {{modelName}}...",
"verifyingGeneric": "Перевірка...",
- "extracting": "Розпакування {{modelName}}...",
- "extractingMultiple": "Розпакування {{count}} моделей...",
- "extractingGeneric": "Розпакування...",
"downloading": "Завантаження {{percentage}}%",
"downloadingMultiple": "Завантаження {{count}} моделей...",
"modelReady": "Модель готова",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "Прискорення Whisper",
- "description": "Апаратне прискорення для моделей Whisper. Автоматичний режим використовує GPU за наявності (Metal на macOS, Vulkan на Windows/Linux)."
- },
- "ort": {
- "title": "Прискорення ONNX",
- "description": "Апаратне прискорення для моделей ONNX (Parakeet, Canary, Moonshine тощо). DirectML на Windows є експериментальним. Моделі можуть не виконувати транскрипцію."
+ "title": "Апаратне прискорення",
+ "description": "Оберіть обладнання для транскрипції. Автоматичний режим використовує GPU за наявності, а інакше перемикається на CPU."
},
"gpuDevice": {
"auto": "Авто"
diff --git a/src/i18n/locales/vi/translation.json b/src/i18n/locales/vi/translation.json
index d43d7958..72538b11 100644
--- a/src/i18n/locales/vi/translation.json
+++ b/src/i18n/locales/vi/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "Độ chính xác tốt, nhưng chậm."
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "Chỉ tiếng Anh. Mô hình tốt nhất cho người nói tiếng Anh."
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "Nhanh và chính xác"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "Rất nhanh, chỉ tiếng Anh. Xử lý tốt các giọng nói."
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "Cực nhanh, chỉ tiếng Anh"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "Nhanh, chỉ tiếng Anh. Cân bằng tốt giữa tốc độ và độ chính xác."
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "Chỉ tiếng Anh. Chất lượng cao."
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "Tối ưu hóa cho tiếng Quan Thoại Đài Loan. Hỗ trợ chuyển đổi ngôn ngữ."
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "Rất nhanh. Tiếng Trung, tiếng Anh, tiếng Nhật, tiếng Hàn, tiếng Quảng Đông."
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "Nhận dạng giọng nói tiếng Nga. Nhanh và chính xác."
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "Rất nhanh. Tiếng Anh, tiếng Đức, tiếng Tây Ban Nha, tiếng Pháp. Hỗ trợ dịch thuật."
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "Đa ngôn ngữ chính xác. 25 ngôn ngữ châu Âu. Hỗ trợ dịch thuật."
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "Mô hình lớn, chậm hơn, nhưng rất chính xác và đa ngôn ngữ."
}
},
"errors": {
@@ -140,9 +96,6 @@
"noModelsAvailable": "Không có mô hình nào",
"verifying": "Đang xác minh {{modelName}}...",
"verifyingGeneric": "Đang xác minh...",
- "extracting": "Đang giải nén {{modelName}}...",
- "extractingMultiple": "Đang giải nén {{count}} mô hình...",
- "extractingGeneric": "Đang giải nén...",
"downloading": "Đang tải xuống {{percentage}}%",
"downloadingMultiple": "Đang tải xuống {{count}} mô hình...",
"modelReady": "Mô Hình Sẵn Sàng",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "Tăng tốc Whisper",
- "description": "Tăng tốc phần cứng cho các mô hình Whisper. Chế độ tự động sử dụng GPU nếu có (Metal trên macOS, Vulkan trên Windows/Linux)."
- },
- "ort": {
- "title": "Tăng tốc ONNX",
- "description": "Tăng tốc phần cứng cho các mô hình ONNX (Parakeet, Canary, Moonshine, v.v.). DirectML trên Windows là thử nghiệm. Các mô hình có thể không chuyển đổi giọng nói được."
+ "title": "Tăng tốc phần cứng",
+ "description": "Chọn phần cứng dùng để chuyển đổi giọng nói. Chế độ tự động sử dụng GPU nếu có, nếu không sẽ chuyển sang CPU."
},
"gpuDevice": {
"auto": "Tự động"
diff --git a/src/i18n/locales/zh-TW/translation.json b/src/i18n/locales/zh-TW/translation.json
index daddf52a..54503e36 100644
--- a/src/i18n/locales/zh-TW/translation.json
+++ b/src/i18n/locales/zh-TW/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "準確度高,但速度較慢"
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "僅支援英語,英語使用者的最佳模型"
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "快速且準確"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "速度極快,僅支援英語,擅長處理各種口音"
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "超快速,僅支援英語"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "快速,僅支援英語。速度與準確度的良好平衡。"
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "僅支援英語。高品質。"
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "針對臺灣華語最佳化。支援語碼轉換。"
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "速度極快。支援中文、英語、日語、韓語、粵語。"
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "俄語語音辨識。快速且準確。"
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "速度極快。支援英語、德語、西班牙語、法語。支援翻譯。"
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "準確的多語言模型。25種歐洲語言。支援翻譯。"
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "大型模型,速度較慢,但多語言辨識非常準確。"
}
},
"errors": {
@@ -140,9 +96,6 @@
"noModelsAvailable": "沒有可用的模型",
"verifying": "正在驗證 {{modelName}}...",
"verifyingGeneric": "正在驗證...",
- "extracting": "正在解壓 {{modelName}}...",
- "extractingMultiple": "正在解壓 {{count}} 個模型...",
- "extractingGeneric": "解壓中...",
"downloading": "下載中 {{percentage}}%",
"downloadingMultiple": "正在下載 {{count}} 個模型...",
"modelReady": "模型已就緒",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "Whisper 加速",
- "description": "Whisper 模型的硬體加速。自動模式在可用時使用 GPU(macOS 上使用 Metal,Windows/Linux 上使用 Vulkan)。"
- },
- "ort": {
- "title": "ONNX 加速",
- "description": "ONNX 模型的硬體加速(Parakeet、Canary、Moonshine 等)。Windows 上的 DirectML 為實驗性功能。模型可能無法正常轉錄。"
+ "title": "硬體加速",
+ "description": "選擇用於轉錄的硬體。自動模式在可用時使用 GPU,否則改用 CPU。"
},
"gpuDevice": {
"auto": "自動"
diff --git a/src/i18n/locales/zh/translation.json b/src/i18n/locales/zh/translation.json
index a3134354..4982f4fe 100644
--- a/src/i18n/locales/zh/translation.json
+++ b/src/i18n/locales/zh/translation.json
@@ -59,53 +59,9 @@
"name": "Whisper Large",
"description": "准确度高,但速度较慢。"
},
- "parakeet-tdt-0.6b-v2": {
- "name": "Parakeet V2",
- "description": "仅支持英语。英语用户的最佳模型。"
- },
- "parakeet-tdt-0.6b-v3": {
- "name": "Parakeet V3",
- "description": "快速且准确"
- },
- "moonshine-base": {
- "name": "Moonshine Base",
- "description": "非常快速,仅支持英语。口音处理良好。"
- },
- "moonshine-tiny-streaming-en": {
- "name": "Moonshine V2 Tiny",
- "description": "超快速,仅支持英语"
- },
- "moonshine-small-streaming-en": {
- "name": "Moonshine V2 Small",
- "description": "快速,仅支持英语。速度与准确度的良好平衡。"
- },
- "moonshine-medium-streaming-en": {
- "name": "Moonshine V2 Medium",
- "description": "仅支持英语。高质量。"
- },
"breeze-asr": {
"name": "Breeze ASR",
"description": "针对台湾国语优化。支持语码转换。"
- },
- "sense-voice-int8": {
- "name": "SenseVoice",
- "description": "非常快速。支持中文、英语、日语、韩语、粤语。"
- },
- "gigaam-v3-e2e-ctc": {
- "name": "GigaAM v3",
- "description": "俄语语音识别。快速且准确。"
- },
- "canary-180m-flash": {
- "name": "Canary 180M Flash",
- "description": "非常快速。支持英语、德语、西班牙语、法语。支持翻译。"
- },
- "canary-1b-v2": {
- "name": "Canary 1B v2",
- "description": "准确的多语言模型。25种欧洲语言。支持翻译。"
- },
- "cohere-int8": {
- "name": "Cohere",
- "description": "大型模型,速度较慢,但多语言识别非常准确。"
}
},
"errors": {
@@ -140,9 +96,6 @@
"noModelsAvailable": "没有可用的模型",
"verifying": "正在验证 {{modelName}}...",
"verifyingGeneric": "正在验证...",
- "extracting": "正在解压 {{modelName}}...",
- "extractingMultiple": "正在解压 {{count}} 个模型...",
- "extractingGeneric": "解压中...",
"downloading": "下载中 {{percentage}}%",
"downloadingMultiple": "正在下载 {{count}} 个模型...",
"modelReady": "模型已就绪",
@@ -295,12 +248,8 @@
},
"acceleration": {
"transcribe": {
- "title": "Whisper 加速",
- "description": "Whisper 模型的硬件加速。自动模式在可用时使用 GPU(macOS 上使用 Metal,Windows/Linux 上使用 Vulkan)。"
- },
- "ort": {
- "title": "ONNX 加速",
- "description": "ONNX 模型的硬件加速(Parakeet、Canary、Moonshine 等)。Windows 上的 DirectML 为实验性功能。模型可能无法正常转录。"
+ "title": "硬件加速",
+ "description": "选择用于转录的硬件。自动模式在可用时使用 GPU,否则回退到 CPU。"
},
"gpuDevice": {
"auto": "自动"
diff --git a/src/stores/modelStore.ts b/src/stores/modelStore.ts
index 47908fe7..db946c22 100644
--- a/src/stores/modelStore.ts
+++ b/src/stores/modelStore.ts
@@ -25,7 +25,6 @@ interface ModelsStore {
currentModel: string;
downloadingModels: Record<string, true>;
verifyingModels: Record<string, true>;
- extractingModels: Record<string, true>;
downloadProgress: Record<string, DownloadProgress>;
downloadStats: Record<string, DownloadStats>;
loading: boolean;
@@ -45,7 +44,6 @@ interface ModelsStore {
getModelInfo: (modelId: string) => ModelInfo | undefined;
isModelDownloading: (modelId: string) => boolean;
isModelVerifying: (modelId: string) => boolean;
- isModelExtracting: (modelId: string) => boolean;
getDownloadProgress: (modelId: string) => DownloadProgress | undefined;
// Internal setters
@@ -61,7 +59,6 @@ export const useModelStore = create<ModelsStore>()(
currentModel: "",
downloadingModels: {},
verifyingModels: {},
- extractingModels: {},
downloadProgress: {},
downloadStats: {},
loading: true,
@@ -257,10 +254,6 @@ export const useModelStore = create<ModelsStore>()(
return modelId in get().verifyingModels;
},
- isModelExtracting: (modelId: string) => {
- return modelId in get().extractingModels;
- },
-
getDownloadProgress: (modelId: string) => {
return get().downloadProgress[modelId];
},
@@ -367,38 +360,6 @@ export const useModelStore = create<ModelsStore>()(
);
});
- listen<string>("model-extraction-started", (event) => {
- const modelId = event.payload;
- set(
- produce((state) => {
- state.extractingModels[modelId] = true;
- }),
- );
- });
-
- listen<string>("model-extraction-completed", (event) => {
- const modelId = event.payload;
- set(
- produce((state) => {
- delete state.extractingModels[modelId];
- }),
- );
- get().loadModels();
- });
-
- listen<{ model_id: string; error: string }>(
- "model-extraction-failed",
- (event) => {
- const modelId = event.payload.model_id;
- set(
- produce((state) => {
- delete state.extractingModels[modelId];
- state.error = `Failed to extract model: ${event.payload.error}`;
- }),
- );
- },
- );
-
listen<string>("model-download-cancelled", (event) => {
const modelId = event.payload;
set(
diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.ts
index ccefe12d..ece9bdf1 100644
--- a/src/stores/settingsStore.ts
+++ b/src/stores/settingsStore.ts
@@ -7,7 +7,6 @@ import type {
PostProcessApiFormat,
ChineseScript,
TranscribeAcceleratorSetting,
- OrtAcceleratorSetting,
ShortcutActivation,
VadBackend,
} from "@/bindings";
@@ -196,8 +195,6 @@ const settingUpdaters: {
commands.changeTranscribeAcceleratorSetting(
value as TranscribeAcceleratorSetting,
),
- ort_accelerator: (value) =>
- commands.changeOrtAcceleratorSetting(value as OrtAcceleratorSetting),
transcribe_gpu_device: (value) =>
commands.changeTranscribeGpuDevice(value as string | null),
extra_recording_buffer_ms: (value) =>