A free, open source, and extensible speech-to-text application that works completely offline.
introduce transcribe.cpp (#1529)
CJ Pais31d8fc2442c2
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 530addf6..4100321e 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -43,6 +43,10 @@ on:required: falsetype: booleandefault: false+ no-cache:+ required: false+ type: boolean+ default: falseenv:TSC_VERSION: "0.9.0"@@ -62,7 +66,7 @@ jobs:git config --system core.longpaths true- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v5with:repository: ${{ inputs.repository }}ref: ${{ inputs.ref }}@@ -98,6 +102,10 @@ jobs:targets: ${{ contains(inputs.platform, 'macos') && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}- name: Rust cache+ # Release builds skip the cache (no-cache: true) so the artifact is+ # always compiled clean — no risk of a stale cached native lib being+ # linked. PR/test builds keep caching for speed.+ if: ${{ !inputs.no-cache }}uses: swatinem/rust-cache@v2with:workspaces: "./src-tauri -> target"@@ -133,6 +141,9 @@ jobs:dpkg-query -W -f='${Status}\n' libgtk-layer-shell0 | grep -q "install ok installed"ldconfig -p | grep -q "libgtk-layer-shell.so.0"+ # x86_64 only — Windows-on-ARM links transcribe-cpp statically CPU-only+ # (no `vulkan` feature; see src-tauri/Cargo.toml), so ggml-vulkan is never+ # built there and no Vulkan SDK, headers, or glslc are needed.- name: Install Vulkan SDK (Windows x64)if: contains(inputs.platform, 'windows') && !contains(inputs.target, 'aarch64')uses: humbletim/[email protected]@@ -140,51 +151,10 @@ jobs:version: 1.4.309.0cache: true- # humbletim/[email protected] cannot target Windows ARM64 yet.- # Download prebuilt binaries (Bin) + build headers/libs from source.- # See https://github.com/humbletim/install-vulkan-sdk/pull/22 for prebuilt ARM64 support progress.- - name: Prepare Vulkan SDK env (Windows ARM64)- if: contains(inputs.platform, 'windows') && contains(inputs.target, 'aarch64')- shell: pwsh- run: |- $sdkDir = Join-Path $env:GITHUB_WORKSPACE "VULKAN_SDK"- New-Item -ItemType Directory -Force -Path $sdkDir | Out-Null- Add-Content -Path $env:GITHUB_ENV -Value "VULKAN_SDK=$sdkDir"-- - name: Download Vulkan SDK binaries (Windows ARM64)- if: contains(inputs.platform, 'windows') && contains(inputs.target, 'aarch64')- shell: pwsh- run: |- $url = "https://sdk.lunarg.com/sdk/download/1.4.309.0/warm/InstallVulkanARM64-1.4.309.0.exe"- $outFile = "vulkan_sdk_arm.exe"- Write-Host "Downloading Vulkan SDK binaries from $url"- Invoke-WebRequest -Uri $url -OutFile $outFile-- - name: Extract Vulkan SDK binaries (Windows ARM64)- if: contains(inputs.platform, 'windows') && contains(inputs.target, 'aarch64')- shell: pwsh- run: |- $sdkDir = $env:VULKAN_SDK- $sevenZip = (Get-Command 7z.exe -ErrorAction Stop).Source- Write-Host "Extracting binaries to $sdkDir"- & $sevenZip x "./vulkan_sdk_arm.exe" "-o$sdkDir" -aoa- $binPath = Join-Path $sdkDir "Bin"- Add-Content -Path $env:GITHUB_PATH -Value $binPath- Write-Host "Verifying glslc..."- & (Join-Path $binPath "glslc.exe") --version-- - name: Build Vulkan SDK headers and libs (Windows ARM64)- if: contains(inputs.platform, 'windows') && contains(inputs.target, 'aarch64')- uses: humbletim/[email protected]- with:- vulkan-query-version: 1.4.309.0- vulkan-components: Vulkan-Headers, Vulkan-Loader- vulkan-use-cache: true-- name: Cache trusted-signing-cliif: contains(inputs.platform, 'windows') && inputs.sign-binariesid: cache-tsc- uses: actions/cache@v4+ uses: actions/cache@v5with:path: ~/.cargo/bin/trusted-signing-cli*key: trusted-signing-cli-${{ env.TSC_VERSION }}-${{ runner.os }}-${{ runner.arch }}@@ -273,7 +243,7 @@ jobs:fiecho "platform=${patched_platform}" >> $GITHUB_OUTPUT- # whisper-rs-sys cmake builds create paths that exceed Windows MAX_PATH+ # transcribe-cpp-sys cmake builds create paths that exceed Windows MAX_PATH# (260 chars). Shorten the target dir to keep paths under the limit.- name: Shorten build path (Windows)if: runner.os == 'Windows'@@ -284,19 +254,63 @@ jobs:New-Item -ItemType Directory -Force -Path $targetDir | Out-Nullecho "CARGO_TARGET_DIR=$targetDir" >> $env:GITHUB_ENV- # ggml requires clang for ARM. The VS generator determines the compiler- # via the toolset (-T flag) which can't be overridden from env vars.- # Use Ninja + clang-cl instead, which respects CMAKE_C_COMPILER.+ # ggml refuses to build its ARM CPU backend under MSVC (upstream check in+ # ggml/src/ggml-cpu/CMakeLists.txt: "MSVC is not supported for ARM, use+ # clang"), so the Windows-ARM build must use clang-cl. transcribe-cpp-sys+ # drives CMake via the cmake crate, which resolves the compiler through the+ # cc crate — i.e. the CC/CXX env vars, NOT CMAKE_C_COMPILER (which is why an+ # earlier CMAKE_C_COMPILER-only attempt still configured with MSVC cl.exe).+ # Ninja (honored by the cmake crate) sidesteps the VS generator's toolset.- name: Configure cmake for ARM64 (Windows)if: contains(inputs.platform, 'windows') && contains(inputs.target, 'aarch64')shell: pwshrun: |echo "CMAKE_GENERATOR=Ninja" >> $env:GITHUB_ENV+ echo "CC=clang-cl" >> $env:GITHUB_ENV+ echo "CXX=clang-cl" >> $env:GITHUB_ENVecho "CMAKE_C_COMPILER=clang-cl" >> $env:GITHUB_ENVecho "CMAKE_CXX_COMPILER=clang-cl" >> $env:GITHUB_ENVecho "CMAKE_C_COMPILER_TARGET=aarch64-pc-windows-msvc" >> $env:GITHUB_ENVecho "CMAKE_CXX_COMPILER_TARGET=aarch64-pc-windows-msvc" >> $env:GITHUB_ENVecho "CL=/EHsc" >> $env:GITHUB_ENV+ # Link uses lld-link + llvm-mt; use llvm-rc for resources too. Microsoft's+ # rc.exe fails the manifest with "RC2136" under this clang-cl/lld toolchain+ # (seen in ggml-vulkan's vulkan-shaders-gen host sub-build). CMake honors+ # the RC env var, and the ExternalProject sub-build inherits it.+ echo "RC=llvm-rc" >> $env:GITHUB_ENV+ # Two ARM-static CMake overrides, forwarded by src-tauri/build.rs to the+ # transcribe-cpp-sys configure via TRANSCRIBE_CMAKE_ARGS (applied AFTER+ # the crate's own -D's, so ours win):+ #+ # GGML_NATIVE=OFF — only the dynamic-backends path force-sets this; a+ # plain static build inherits ggml's default GGML_NATIVE=ON+ # (= -mcpu=native), tuning the binary to THIS runner's CPU — a+ # distribution hazard. Pin OFF for a portable ARM baseline.+ #+ # GGML_OPENMP=OFF — transcribe-cpp-sys force-sets GGML_OPENMP=ON on+ # Windows, assuming MSVC auto-links vcomp via the /openmp pragma. But+ # ARM builds with clang-cl, whose /openmp emits LLVM-OMP refs+ # (__kmpc_*/omp_*) with no auto-linked runtime, so the static final+ # link fails with LNK2019 unresolved externals. The crate's CENTRAL+ # POLICY notes ggml's non-OpenMP barrier only deadlocks under MSVC+ # *codegen* ("works on every other compiler"), and clang-cl is LLVM+ # codegen — so disabling OpenMP is safe here and avoids shipping or+ # statically linking libomp.+ echo "TRANSCRIBE_CMAKE_ARGS=-DGGML_NATIVE=OFF -DGGML_OPENMP=OFF" >> $env:GITHUB_ENV++ # The static ARM build ships no transcribe-cpp DLLs, so build.rs stages+ # nothing into src-tauri/transcribe-libs/ and that dir never gets created.+ # tauri.windows.conf.json exists only to bundle that dir as a resource for+ # the x86 dynamic-backends posture; on ARM it would point Tauri at a missing+ # path and fail bundling. Removing it falls back to the base tauri.conf.json+ # resources (the models) — exactly what the static ARM build wants. Gated to+ # ARM, so the x86 Windows build keeps the file and still bundles its DLLs.+ - name: Drop Windows DLL bundle config (Windows ARM64, static)+ if: contains(inputs.platform, 'windows') && contains(inputs.target, 'aarch64')+ shell: pwsh+ run: |+ Remove-Item "src-tauri/tauri.windows.conf.json"+ Write-Host "Removed tauri.windows.conf.json (static ARM build ships no DLLs)"- name: Install ONNX Runtime (x86_64 macOS)if: inputs.target == 'x86_64-apple-darwin'@@ -337,6 +351,99 @@ jobs:'.bundle.linux.deb.files["/usr/lib/libonnxruntime.so"] = $so | .bundle.linux.deb.files["/usr/lib/libonnxruntime.so.1"] = $so1 | .bundle.linux.deb.files["/usr/lib/libonnxruntime.so.1.24.2"] = $sov' \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 posture+ # and drops tauri.windows.conf.json anyway).+ # 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,+ # but the CI Vulkan SDK install does not expose a findable+ # SPIRV-HeadersConfig.cmake, so the configure fails. Provide the+ # header-only package via vcpkg and put its prefix on CMAKE_PREFIX_PATH+ # (the cmake crate forwards it as -DCMAKE_PREFIX_PATH). x86_64 only — the+ # Windows ARM64 build is CPU-only, so ggml-vulkan is never built there.+ # SPIRV-Headers is header-only, so the triplet is immaterial;+ # SPIRV-HeadersConfig.cmake is a CONFIG package, so plain CMAKE_PREFIX_PATH+ # resolves it with no vcpkg toolchain.+ - name: Install SPIRV-Headers for transcribe-cpp Vulkan build (Windows x64)+ if: contains(inputs.platform, 'windows') && !contains(inputs.target, 'aarch64')+ shell: pwsh+ run: |+ vcpkg install spirv-headers:x64-windows+ if ($LASTEXITCODE -ne 0) { throw "vcpkg install spirv-headers failed" }+ $prefix = "$env:VCPKG_INSTALLATION_ROOT/installed/x64-windows" -replace '\\','/'+ $combined = if ($env:CMAKE_PREFIX_PATH) { "$prefix;$env:CMAKE_PREFIX_PATH" } else { $prefix }+ Add-Content $env:GITHUB_ENV "CMAKE_PREFIX_PATH=$combined"+ Write-Host "CMAKE_PREFIX_PATH=$combined"++ # transcribe-cpp ships as a shared libtranscribe + loadable ggml backend+ # modules on Linux (the `dynamic-backends` posture). They are produced by+ # transcribe-cpp-sys's CMake install during the cargo build, but nothing+ # ships them. Pre-build the app so that install dir exists, then expose it+ # via LD_LIBRARY_PATH so the AppImage's linuxdeploy can resolve+ # libtranscribe.so (a NEEDED of `handy`) while bundling. tauri-action+ # reuses this compile incrementally. TRANSCRIBE_LIBDIR is consumed by the+ # AppImage post-processing step to co-locate the dlopen'd ggml modules.+ - name: Pre-build and locate transcribe-cpp backend libs (Linux)+ if: contains(inputs.platform, 'ubuntu')+ shell: bash+ run: |+ set -euo pipefail+ PROFILE="${{ steps.build-profile.outputs.profile }}"+ # Frontend must exist for the app crate to compile (generate_context!).+ bun run build+ (+ cd src-tauri+ if [ "$PROFILE" = "release" ]; then cargo build --release; else cargo build; fi+ )+ # The install manifest sits next to libtranscribe in <crate-out>/lib.+ # Pick the newest match in case a stale build dir lingers in the cache.+ LIBDIR="$(find "src-tauri/target/$PROFILE/build" \+ -type f -name transcribe-link.json -path '*transcribe-cpp-sys*/out/lib/*' \+ -printf '%T@ %h\n' 2>/dev/null | sort -rn | head -1 | cut -d' ' -f2-)"+ if [ -z "${LIBDIR:-}" ] || [ ! -d "$LIBDIR" ]; then+ echo "ERROR: could not locate transcribe-cpp-sys install lib dir" >&2+ find src-tauri/target \( -name 'libtranscribe*' -o -name 'libggml*' \) 2>/dev/null >&2 || true+ exit 1+ fi+ LIBDIR="$(cd "$LIBDIR" && pwd)"+ echo "Located transcribe-cpp libs in: $LIBDIR"+ ls -la "$LIBDIR"+ echo "TRANSCRIBE_LIBDIR=$LIBDIR" >> "$GITHUB_ENV"+ echo "LD_LIBRARY_PATH=$LIBDIR${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" >> "$GITHUB_ENV"+ # linuxdeploy resolves `handy`'s NEEDED libs via `ldd` and HARD-FAILS+ # on an unresolved one (it does not warn-and-skip). libtranscribe.so+ # lives only in the cargo build tree, so also publish it (and the ggml+ # libs it pulls in) to the system linker cache — belt-and-suspenders+ # with LD_LIBRARY_PATH so resolution never hinges on env propagation+ # into the bundler subprocess. (Only affects the CI host; the AppImage+ # gets its own co-located copies.)+ sudo cp -vL "$LIBDIR"/libtranscribe.so* "$LIBDIR"/libggml*.so* /usr/local/lib/ 2>/dev/null || true+ sudo ldconfig+- name: Build with Tauriuses: tauri-apps/tauri-action@v0env:@@ -353,15 +460,6 @@ jobs:AZURE_TENANT_ID: ${{ inputs.sign-binaries && secrets.AZURE_TENANT_ID || '' }}TAURI_SIGNING_PRIVATE_KEY: ${{ inputs.sign-binaries && secrets.TAURI_SIGNING_PRIVATE_KEY || '' }}TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ inputs.sign-binaries && secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD || '' }}- # Disable -march=native and all SIMD instruction sets above SSE4.2 for- # x86_64 builds. Without this, CPUs lacking AVX/FMA (e.g. Celeron N2920,- # FX-8350) crash with SIGILL. The Vulkan backend handles heavy compute- # so disabling these has negligible performance impact.- GGML_NATIVE: ${{ !contains(inputs.platform, 'macos') && !contains(inputs.platform, 'arm') && !contains(inputs.target, 'aarch64') && 'OFF' || '' }}- GGML_AVX: ${{ !contains(inputs.platform, 'macos') && !contains(inputs.platform, 'arm') && !contains(inputs.target, 'aarch64') && 'OFF' || '' }}- GGML_AVX2: ${{ !contains(inputs.platform, 'macos') && !contains(inputs.platform, 'arm') && !contains(inputs.target, 'aarch64') && 'OFF' || '' }}- GGML_FMA: ${{ !contains(inputs.platform, 'macos') && !contains(inputs.platform, 'arm') && !contains(inputs.target, 'aarch64') && 'OFF' || '' }}- GGML_F16C: ${{ !contains(inputs.platform, 'macos') && !contains(inputs.platform, 'arm') && !contains(inputs.target, 'aarch64') && 'OFF' || '' }}with:tagName: ${{ inputs.release-id && format('v{0}', steps.get-version.outputs.version) || '' }}releaseName: ${{ inputs.release-id && format('v{0}', steps.get-version.outputs.version) || '' }}@@ -392,7 +490,7 @@ jobs:- name: Upload artifacts (macOS)if: inputs.upload-artifacts && contains(inputs.platform, 'macos')- uses: actions/upload-artifact@v4+ uses: actions/upload-artifact@v7with:name: ${{ inputs.asset-prefix }}-${{ inputs.target }}path: |@@ -436,6 +534,20 @@ jobs:ls "$dir" | grep -E "(wayland|fuse)" || echo " No wayland/fuse libraries found"done+ # Co-locate transcribe-cpp's dynamic backends in the AppImage.+ # linuxdeploy bundles the NEEDED libtranscribe.so (resolved at build+ # time via LD_LIBRARY_PATH) but NOT the dlopen'd ggml backend modules+ # that init_backends_default() loads at runtime from libtranscribe's+ # own directory — stage those (and backfill the core libs) into+ # usr/lib, next to libtranscribe. Fails loudly if libs are missing.+ if [ -n "${TRANSCRIBE_LIBDIR:-}" ]; then+ bash "$GITHUB_WORKSPACE/scripts/ci/stage-transcribe-libs.sh" \+ "$TRANSCRIBE_LIBDIR" "squashfs-root/usr/lib"+ else+ echo "ERROR: TRANSCRIBE_LIBDIR not set; transcribe-cpp backends would be missing from the AppImage" >&2+ exit 1+ fi+# Detect architecture and get appropriate appimagetoolif [[ "$(uname -m)" == "aarch64" ]]; thenAPPIMAGETOOL_ARCH="aarch64"@@ -457,9 +569,115 @@ jobs:echo "No AppImage found to process"fi+ - name: Audit Linux package runtime contents+ if: contains(inputs.platform, 'ubuntu')+ shell: bash+ run: |+ set -euo pipefail++ # The runtime smoke test launches the packaged handy binary, which links+ # GTK (via tao) even for the headless --list-devices path and therefore+ # needs a display to start. CI runners are headless, so provide a virtual+ # X server via xvfb-run.+ if ! command -v xvfb-run >/dev/null 2>&1; then+ sudo apt-get update+ sudo apt-get install -y xvfb+ fi++ PROFILE="${{ steps.build-profile.outputs.profile }}"+ BUNDLE_DIR="src-tauri/target/${PROFILE}/bundle"++ require_pattern() {+ local listing="$1"+ local pattern="$2"+ local label="$3"+ if ! grep -Eq "$pattern" "$listing"; then+ echo "ERROR: missing ${label} (${pattern}) in ${listing}" >&2+ cat "$listing" >&2+ exit 1+ fi+ }++ require_path() {+ local path="$1"+ local label="$2"+ if [ ! -e "$path" ]; then+ echo "ERROR: missing ${label}: ${path}" >&2+ find "$(dirname "$path")" -maxdepth 2 -type f 2>/dev/null >&2 || true+ exit 1+ fi+ }++ smoke_binary() {+ local root="$1"+ local label="$2"+ # Run under a virtual X server: handy initializes GTK on startup even+ # on the headless --list-devices path, which fails without a display.+ HANDY_NO_GTK_LAYER_SHELL=1 \+ LD_LIBRARY_PATH="${root}/usr/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" \+ xvfb-run -a "${root}/usr/bin/handy" --list-devices >/tmp/handy-package-smoke.log+ echo "${label} --list-devices smoke passed"+ }++ if compgen -G "${BUNDLE_DIR}/deb/*.deb" > /dev/null; then+ for deb in "${BUNDLE_DIR}"/deb/*.deb; do+ echo "Auditing deb package: ${deb}"+ listing="$(mktemp)"+ dpkg-deb -c "$deb" > "$listing"+ require_pattern "$listing" 'usr/bin/handy$' "handy binary"+ require_pattern "$listing" 'usr/lib/libtranscribe\.so' "transcribe runtime library"+ require_pattern "$listing" 'usr/lib/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/libonnxruntime\.so' "ONNX Runtime library"+ fi+ root="$(mktemp -d)"+ dpkg-deb -x "$deb" "$root"+ smoke_binary "$root" "deb"+ rm -rf "$root" "$listing"+ done+ fi++ if compgen -G "${BUNDLE_DIR}/rpm/*.rpm" > /dev/null; then+ if ! command -v rpm >/dev/null 2>&1; then+ sudo apt-get update+ sudo apt-get install -y rpm+ fi+ for rpm_pkg in "${BUNDLE_DIR}"/rpm/*.rpm; do+ echo "Auditing rpm package: ${rpm_pkg}"+ listing="$(mktemp)"+ rpm -qpl "$rpm_pkg" > "$listing"+ require_pattern "$listing" '/usr/bin/handy$' "handy binary"+ require_pattern "$listing" '/usr/lib/libtranscribe\.so' "transcribe runtime library"+ require_pattern "$listing" '/usr/lib/libggml-cpu.*\.so' "ggml CPU backend module"+ rm -f "$listing"+ done+ fi++ if compgen -G "${BUNDLE_DIR}/appimage/*.AppImage" > /dev/null; then+ for appimage in "${BUNDLE_DIR}"/appimage/*.AppImage; do+ echo "Auditing AppImage package: ${appimage}"+ workdir="$(mktemp -d)"+ cp "$appimage" "${workdir}/Handy.AppImage"+ chmod +x "${workdir}/Handy.AppImage"+ (+ cd "$workdir"+ ./Handy.AppImage --appimage-extract >/dev/null+ require_path "squashfs-root/usr/bin/handy" "AppImage handy binary"+ require_path "squashfs-root/usr/lib/libtranscribe.so" "AppImage transcribe runtime library"+ if ! find "squashfs-root/usr/lib" -name 'libggml-cpu*.so*' | grep -q .; then+ echo "ERROR: missing AppImage ggml CPU backend module" >&2+ find "squashfs-root/usr/lib" -maxdepth 1 -type f >&2+ exit 1+ fi+ smoke_binary "$(pwd)/squashfs-root" "AppImage"+ )+ rm -rf "$workdir"+ done+ fi+- name: Upload artifacts (Linux)if: inputs.upload-artifacts && contains(inputs.platform, 'ubuntu')- uses: actions/upload-artifact@v4+ uses: actions/upload-artifact@v7with:name: ${{ inputs.asset-prefix }}-${{ inputs.platform }}-${{ inputs.target }}path: |@@ -476,9 +694,95 @@ jobs:$base = if ($env:CARGO_TARGET_DIR) { $env:CARGO_TARGET_DIR } else { "src-tauri/target" }echo "base=$base" >> $env:GITHUB_OUTPUT+ - name: Audit Windows package runtime contents+ if: inputs.upload-artifacts && contains(inputs.platform, 'windows')+ shell: pwsh+ run: |+ $profile = "${{ steps.build-profile.outputs.profile }}"+ $target = "${{ inputs.target }}"+ $base = "${{ steps.win-artifact-path.outputs.base }}"+ if ($target -and $target -ne "x86_64-pc-windows-msvc") {+ $bundleBase = Join-Path $base (Join-Path $target (Join-Path $profile "bundle"))+ } else {+ $bundleBase = Join-Path $base (Join-Path $profile "bundle")+ }++ $stagedDlls = Get-ChildItem "src-tauri/transcribe-libs" -Filter "*.dll" -ErrorAction SilentlyContinue+ if (-not $stagedDlls) {+ Write-Host "No staged transcribe DLLs; skipping Windows runtime DLL package audit."+ exit 0+ }++ # Assert an installed/extracted package layout ships the runtime DLLs+ # and a launchable handy.exe. Shared by the NSIS and MSI audits below so+ # both installers are held to the same bar.+ function Assert-PackageContents {+ param([string]$Root, [string]$Label)++ $handy = Get-ChildItem $Root -Filter "handy.exe" -Recurse -ErrorAction SilentlyContinue | Select-Object -First 1+ if (-not $handy) {+ throw "$Label package is missing handy.exe"+ }+ if (-not (Get-ChildItem $Root -Filter "*transcribe*.dll" -Recurse -ErrorAction SilentlyContinue)) {+ throw "$Label package is missing transcribe runtime DLLs"+ }+ if (-not (Get-ChildItem $Root -Filter "*ggml*.dll" -Recurse -ErrorAction SilentlyContinue)) {+ throw "$Label package is missing ggml runtime DLLs"+ }++ & $handy.FullName --list-devices | Out-Host+ if ($LASTEXITCODE -ne 0) {+ throw "$Label handy.exe --list-devices failed"+ }+ }++ $nsisPackages = Get-ChildItem (Join-Path $bundleBase "nsis") -Filter "*.exe" -ErrorAction SilentlyContinue+ if (-not $nsisPackages) {+ throw "No NSIS packages found under $bundleBase for runtime DLL audit"+ }++ foreach ($pkg in $nsisPackages) {+ Write-Host "Auditing NSIS package: $($pkg.FullName)"+ $installDir = Join-Path ([System.IO.Path]::GetTempPath()) ([System.Guid]::NewGuid().ToString())+ New-Item -ItemType Directory -Path $installDir | Out-Null+ $proc = Start-Process -FilePath $pkg.FullName -ArgumentList @("/S", "/PORTABLE", "/D=$installDir") -Wait -PassThru+ if ($proc.ExitCode -ne 0) {+ throw "Silent portable install failed for $($pkg.FullName) with exit code $($proc.ExitCode)"+ }+ Assert-PackageContents -Root $installDir -Label "Installed NSIS"+ Remove-Item -Recurse -Force $installDir+ }++ # WiX MSI: an administrative install (`/a`) lays out the packaged file+ # tree into TARGETDIR without a real install — no elevation, no registry+ # writes, no machine state to clean up — the MSI analog of NSIS's+ # /S /PORTABLE. The same DLL + smoke checks then apply.+ $msiPackages = Get-ChildItem (Join-Path $bundleBase "msi") -Filter "*.msi" -ErrorAction SilentlyContinue+ if (-not $msiPackages) {+ throw "No MSI packages found under $bundleBase for runtime DLL audit"+ }++ foreach ($pkg in $msiPackages) {+ Write-Host "Auditing MSI package: $($pkg.FullName)"+ $installDir = Join-Path ([System.IO.Path]::GetTempPath()) ([System.Guid]::NewGuid().ToString())+ New-Item -ItemType Directory -Path $installDir | Out-Null+ $logFile = Join-Path $installDir "msi-admin-install.log"+ # Single-string ArgumentList so quoting of paths is explicit and not+ # subject to Start-Process array-join quirks. Public properties+ # (TARGETDIR) go last per msiexec convention.+ $msiArgs = "/a `"$($pkg.FullName)`" /qn /L*v `"$logFile`" TARGETDIR=`"$installDir`""+ $proc = Start-Process -FilePath "msiexec.exe" -ArgumentList $msiArgs -Wait -PassThru+ if ($proc.ExitCode -ne 0) {+ if (Test-Path $logFile) { Get-Content $logFile | Out-Host }+ throw "Administrative install failed for $($pkg.FullName) with exit code $($proc.ExitCode)"+ }+ Assert-PackageContents -Root $installDir -Label "Installed MSI"+ Remove-Item -Recurse -Force $installDir+ }+- name: Upload artifacts (Windows)if: inputs.upload-artifacts && contains(inputs.platform, 'windows')- uses: actions/upload-artifact@v4+ uses: actions/upload-artifact@v7with:name: ${{ inputs.asset-prefix }}-${{ inputs.target }}path: |diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.ymlindex ae8e8649..68782217 100644--- a/.github/workflows/code-quality.yml+++ b/.github/workflows/code-quality.yml@@ -33,7 +33,7 @@ jobs:code-quality:runs-on: ubuntu-lateststeps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- uses: oven-sh/setup-bun@v2with:diff --git a/.github/workflows/nix-check.yml b/.github/workflows/nix-check.ymlindex 5814b4a6..1d802e02 100644--- a/.github/workflows/nix-check.yml+++ b/.github/workflows/nix-check.yml@@ -38,13 +38,13 @@ jobs:runs-on: ubuntu-24.04continue-on-error: falsesteps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- uses: oven-sh/setup-bun@v2with:bun-version: latest- - uses: cachix/install-nix-action@v30+ - uses: cachix/install-nix-action@v31with:nix_path: nixpkgs=channel:nixos-unstablediff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.ymlindex 02fde6eb..2e657fd7 100644--- a/.github/workflows/playwright.yml+++ b/.github/workflows/playwright.yml@@ -17,7 +17,7 @@ jobs:playwright:runs-on: ubuntu-lateststeps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- uses: oven-sh/setup-bun@v2with:@@ -34,7 +34,7 @@ jobs:- name: Upload test resultsif: failure()- uses: actions/upload-artifact@v4+ uses: actions/upload-artifact@v7with:name: playwright-reportpath: playwright-report/diff --git a/.github/workflows/pr-test-build.yml b/.github/workflows/pr-test-build.ymlindex 3e214ea5..c6019881 100644--- a/.github/workflows/pr-test-build.yml+++ b/.github/workflows/pr-test-build.yml@@ -57,7 +57,7 @@ jobs:pull-requests: writesteps:- name: Post artifact links to PR- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: |const runUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 739c278c..9df002d7 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -12,7 +12,7 @@ jobs:version: ${{ steps.get-version.outputs.version }}steps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v5- name: Get version from tauri.conf.jsonid: get-version@@ -24,7 +24,7 @@ jobs:- name: Create Draft Releaseid: create-release- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: |const { data } = await github.rest.repos.createRelease({@@ -77,4 +77,7 @@ jobs:asset-prefix: "handy"upload-artifacts: falserelease-id: ${{ needs.create-release.outputs.release-id }}+ # Releases always build from scratch — never restore the Rust cache, so a+ # stale cached native lib can never be linked into a shipped artifact.+ no-cache: truesecrets: inheritdiff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlindex 4598eba6..457a9f7f 100644--- a/.github/workflows/test.yml+++ b/.github/workflows/test.yml@@ -17,24 +17,21 @@ jobs:rust-tests:runs-on: ubuntu-24.04steps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v5- name: Install system dependenciesrun: |sudo apt-get update- sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev libasound2-dev libssl-dev libgtk-layer-shell-dev+ # libvulkan-dev + glslc + spirv-headers let transcribe-cpp-sys build+ # ggml's Vulkan backend (the Linux `vulkan` feature). Mirrors the apt+ # set transcribe.cpp's native-ci uses to build -DTRANSCRIBE_VULKAN=ON.+ sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev libasound2-dev libssl-dev libgtk-layer-shell-dev \+ libvulkan-dev glslc spirv-headers- uses: swatinem/rust-cache@v2with:workspaces: "./src-tauri -> target"- - name: Use mock TranscriptionManager (CI only)- working-directory: src-tauri- run: |- # Swap to mock adapter - avoids compiling whisper/Vulkan- cp src/managers/transcription_mock.rs src/managers/transcription.rs- sed -i '/^transcribe-rs/d' Cargo.toml-- name: Run Rust testsworking-directory: src-taurirun: cargo testdiff --git a/.nix/bun-lock-hash b/.nix/bun-lock-hashindex a34f7555..1eb7f650 100644--- a/.nix/bun-lock-hash+++ b/.nix/bun-lock-hash@@ -1 +1 @@-e00b12c719a762004194cec01f2ad0b78ae483c41452bcca8537179d28e704b1+1715a5b6f2595d9f0e5fab94e8a8bfadad54f82b2c2acf9b0ca8b2e19e83a3a8diff --git a/.nix/bun.nix b/.nix/bun.nixindex 55ffb844..8332e517 100644--- a/.nix/bun.nix+++ b/.nix/bun.nix@@ -617,14 +617,34 @@url = "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz";hash = "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==";};+ "@types/[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz";+ hash = "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==";+ };+ "@types/[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.5.tgz";+ hash = "sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==";+ };"@types/[email protected]" = fetchurl {url = "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz";hash = "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==";};+ "@types/[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz";+ hash = "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==";+ };"@types/[email protected]" = fetchurl {url = "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz";hash = "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==";};+ "@types/[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz";+ hash = "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==";+ };+ "@types/[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz";+ hash = "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==";+ };"@types/[email protected]" = fetchurl {url = "https://registry.npmjs.org/@types/node/-/node-24.9.1.tgz";hash = "sha512-QoiaXANRkSXK6p0Duvt56W208du4P9Uye9hWLWgGMDTEoKPhuenzNcC4vGUmrNkiOKTlIrBoyNQYNpSwfEZXSg==";@@ -653,6 +673,14 @@url = "https://registry.npmjs.org/@types/react/-/react-18.3.26.tgz";hash = "sha512-RFA/bURkcKzx/X9oumPG9Vp3D3JUgus/d0b67KB0t5S/raciymilkOa66olh78MUI92QLbEJevO7rvqU/kjwKA==";};+ "@types/[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz";+ hash = "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==";+ };+ "@types/[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz";+ hash = "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==";+ };"@typescript-eslint/[email protected]" = fetchurl {url = "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.49.0.tgz";hash = "sha512-JXij0vzIaTtCwu6SxTh8qBc66kmf1xs7pI4UOiMDFVct6q86G0Zs7KRcEoJgY3Cav3x5Tq0MF5jwgpgLqgKG3A==";@@ -693,6 +721,10 @@url = "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.49.0.tgz";hash = "sha512-LlKaciDe3GmZFphXIc79THF/YYBugZ7FS1pO581E/edlVVNbZKDy93evqmrfQ9/Y4uN0vVhX4iuchq26mK/iiA==";};+ "@ungap/[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.2.tgz";+ hash = "sha512-5jsZFwgR5rTdKwidH9Qmat75RKwqfpKlWWB1frDkljN127mwqBu8K0PYo7/hFpF03IEJpfVPpCQDY/eDx3iHvA==";+ };"@vitejs/[email protected]" = fetchurl {url = "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz";hash = "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==";@@ -721,6 +753,10 @@url = "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz";hash = "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz";+ hash = "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz";hash = "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==";@@ -749,10 +785,30 @@url = "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001751.tgz";hash = "sha512-A0QJhug0Ly64Ii3eIqHu5X51ebln3k4yTUkY1j8drqpWHVreg/VLijN48cZ1bYPiqOQuqpkIKnzr/Ul8V+p6Cw==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz";+ hash = "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz";hash = "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz";+ hash = "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz";+ hash = "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz";+ hash = "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz";+ hash = "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz";hash = "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==";@@ -761,6 +817,10 @@url = "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz";hash = "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz";+ hash = "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz";hash = "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==";@@ -789,14 +849,26 @@url = "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz";hash = "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz";+ hash = "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz";hash = "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz";+ hash = "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz";hash = "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz";+ hash = "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz";hash = "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==";@@ -825,6 +897,10 @@url = "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz";hash = "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz";+ hash = "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/eslint-plugin-i18next/-/eslint-plugin-i18next-6.1.3.tgz";hash = "sha512-z/h4oBRd9wI1ET60HqcLSU6XPeAh/EPOrBBTyCdkWeMoYrWAaUVA+DOQkWTiNIyCltG4NTmy62SQisVXxoXurw==";@@ -861,10 +937,18 @@url = "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz";hash = "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz";+ hash = "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz";hash = "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz";+ hash = "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz";hash = "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==";@@ -937,6 +1021,14 @@url = "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz";hash = "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.6.tgz";+ hash = "sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz";+ hash = "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz";hash = "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==";@@ -945,6 +1037,10 @@url = "https://registry.npmjs.org/html-parse-stringify/-/html-parse-stringify-3.0.1.tgz";hash = "sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.1.tgz";+ hash = "sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/i18next/-/i18next-25.7.2.tgz";hash = "sha512-58b4kmLpLv1buWUEwegMDUqZVR5J+rT+WTRFaBGL7lxDuJQQ0NrJFrq+eT2N94aYVR1k1Sr13QITNOL88tZCuw==";@@ -969,6 +1065,18 @@url = "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz";hash = "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.7.tgz";+ hash = "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz";+ hash = "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz";+ hash = "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz";hash = "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==";@@ -977,6 +1085,10 @@url = "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz";hash = "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz";+ hash = "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz";hash = "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==";@@ -985,6 +1097,14 @@url = "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz";hash = "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz";+ hash = "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz";+ hash = "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz";hash = "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==";@@ -1097,6 +1217,10 @@url = "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz";hash = "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz";+ hash = "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz";hash = "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==";@@ -1113,10 +1237,186 @@url = "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz";hash = "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.4.tgz";+ hash = "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.2.tgz";+ hash = "sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.3.tgz";+ hash = "sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.1.tgz";+ hash = "sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-2.1.0.tgz";+ hash = "sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.0.tgz";+ hash = "sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.0.tgz";+ hash = "sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz";+ hash = "sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-3.1.0.tgz";+ hash = "sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz";+ hash = "sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.0.tgz";+ hash = "sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz";+ hash = "sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz";+ hash = "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz";+ hash = "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz";+ hash = "sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz";+ hash = "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/memoize-one/-/memoize-one-6.0.0.tgz";hash = "sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz";+ hash = "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.1.0.tgz";+ hash = "sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.1.0.tgz";+ hash = "sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.1.0.tgz";+ hash = "sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.1.tgz";+ hash = "sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-2.0.0.tgz";+ hash = "sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-2.1.0.tgz";+ hash = "sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-3.0.0.tgz";+ hash = "sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz";+ hash = "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz";+ hash = "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz";+ hash = "sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz";+ hash = "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz";+ hash = "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz";+ hash = "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz";+ hash = "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz";+ hash = "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz";+ hash = "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz";+ hash = "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz";+ hash = "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz";+ hash = "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz";+ hash = "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz";+ hash = "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz";+ hash = "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz";+ hash = "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz";+ hash = "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz";+ hash = "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz";+ hash = "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/micromark/-/micromark-4.0.2.tgz";+ hash = "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz";hash = "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==";@@ -1161,6 +1461,10 @@url = "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz";hash = "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.2.tgz";+ hash = "sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz";hash = "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==";@@ -1213,6 +1517,10 @@url = "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz";hash = "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/property-information/-/property-information-7.2.0.tgz";+ hash = "sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz";hash = "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==";@@ -1229,6 +1537,10 @@url = "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz";hash = "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/react-markdown/-/react-markdown-10.1.0.tgz";+ hash = "sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz";hash = "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==";@@ -1245,6 +1557,22 @@url = "https://registry.npmjs.org/react/-/react-18.3.1.tgz";hash = "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/remark-gfm/-/remark-gfm-4.0.1.tgz";+ hash = "sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz";+ hash = "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.1.2.tgz";+ hash = "sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/remark-stringify/-/remark-stringify-11.0.0.tgz";+ hash = "sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/requireindex/-/requireindex-1.1.0.tgz";hash = "sha512-LBnkqsDE7BZKvqylbmn7lTIVdpx4K/QCduRATpO5R+wtPmky/a8pN1bO2D6wXppn1497AJF9mNjqAXr6bdl9jg==";@@ -1293,10 +1621,26 @@url = "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz";hash = "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz";+ hash = "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz";+ hash = "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz";hash = "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.21.tgz";+ hash = "sha512-RjQetxJrrUJLQPHbLku6U/ocGtzyjbJMP9lCNK7Ag0CNh690nSH8woqWH9u16nMjYBAok+i7JO1NP2pOy8IsPQ==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.14.tgz";+ hash = "sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/stylis/-/stylis-4.2.0.tgz";hash = "sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw==";@@ -1325,6 +1669,14 @@url = "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz";hash = "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz";+ hash = "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz";+ hash = "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz";hash = "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==";@@ -1345,6 +1697,30 @@url = "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz";hash = "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz";+ hash = "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz";+ hash = "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz";+ hash = "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz";+ hash = "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz";+ hash = "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.1.0.tgz";+ hash = "sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.4.tgz";hash = "sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A==";@@ -1361,6 +1737,14 @@url = "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz";hash = "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz";+ hash = "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==";+ };+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz";+ hash = "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==";+ };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/vite/-/vite-6.4.1.tgz";hash = "sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==";@@ -1397,4 +1781,8 @@url = "https://registry.npmjs.org/zustand/-/zustand-5.0.8.tgz";hash = "sha512-gyPKpIaxY9XcO2vSMrLbiER7QMAMGOQZVRdJ6Zi782jkbzZygq5GI9nG8g+sMgitRtndwaBSl7uiqC49o1SSiw==";};+ "[email protected]" = fetchurl {+ url = "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz";+ hash = "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==";+ };}diff --git a/.prettierignore b/.prettierignoreindex aa64a9da..29bc0e78 100644--- a/.prettierignore+++ b/.prettierignore@@ -14,6 +14,7 @@ src-tauri/gen# Generated filessrc/bindings.ts+src-tauri/src/catalog/catalog.json# Misc.DS_Storediff --git a/AGENTS.md b/AGENTS.mdindex d2a6c1d3..2b37bea4 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -102,7 +102,8 @@ Handy is a cross-platform desktop speech-to-text application built with Tauri 2.**Core Libraries:**-- `whisper-rs` - Local Whisper inference with GPU acceleration+- `transcribe-cpp` - Local Whisper-family inference (GGML/GGUF) with GPU acceleration+- `transcribe-rs` - ONNX speech recognition (Parakeet, Moonshine, SenseVoice, etc.)- `cpal` - Cross-platform audio I/O- `vad-rs` - Voice Activity Detection- `rdev` - Global keyboard shortcutsdiff --git a/BUILD.md b/BUILD.mdindex 65203043..21095854 100644--- a/BUILD.md+++ b/BUILD.md@@ -38,6 +38,13 @@ ORT_LIB_LOCATION=$(brew --prefix onnxruntime)/lib ORT_PREFER_DYNAMIC_LINK=1 bun- Visual Studio 2019/2022 with C++ development tools- Or Visual Studio Build Tools 2019/2022+> [!IMPORTANT]+> Windows' 260-character path limit can break the native build (the Vulkan+> shader generator nests very deep). If `bun run tauri build` fails with+> `MSB3491` / "path exceeds the OS max path limit", see+> [Windows build fails with `MSB3491`](#windows-build-fails-with-msb3491--path-exceeds-260-characters)+> in Troubleshooting.+#### Linux- Build essentials@@ -47,17 +54,19 @@ ORT_LIB_LOCATION=$(brew --prefix onnxruntime)/lib ORT_PREFER_DYNAMIC_LINK=1 bun```bash# Ubuntu/Debiansudo apt update- sudo apt install build-essential libasound2-dev pkg-config libssl-dev libvulkan-dev vulkan-tools glslc libgtk-3-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev libgtk-layer-shell0 libgtk-layer-shell-dev patchelf cmake+ sudo apt install build-essential libasound2-dev pkg-config libssl-dev libvulkan-dev vulkan-tools glslc spirv-headers glslang-tools libgtk-3-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev libgtk-layer-shell0 libgtk-layer-shell-dev patchelf cmake# Fedora/RHELsudo dnf groupinstall "Development Tools"sudo dnf install alsa-lib-devel pkgconf openssl-devel vulkan-devel \+ spirv-headers-devel spirv-tools-devel glslang glslc \gtk3-devel webkit2gtk4.1-devel libappindicator-gtk3-devel librsvg2-devel \gtk-layer-shell gtk-layer-shell-devel \cmake# Arch Linuxsudo pacman -S base-devel alsa-lib pkgconf openssl vulkan-devel \+ spirv-headers glslang shaderc \gtk3 webkit2gtk-4.1 libappindicator-gtk3 librsvg gtk-layer-shell \cmake```@@ -102,18 +111,21 @@ cd /tmpar x /path/to/Handy/src-tauri/target/release/bundle/deb/Handy_*_amd64.deb data.tar.gztar xzf data.tar.gzsudo cp usr/bin/handy /usr/bin/-sudo cp -r usr/lib/Handy /usr/lib/+sudo cp -a usr/lib/. /usr/lib/sudo cp -r usr/share/icons/hicolor/* /usr/share/icons/hicolor/sudo cp usr/share/applications/Handy.desktop /usr/share/applications/+sudo ldconfig```-After subsequent rebuilds, only the binary needs re-copying:+After subsequent rebuilds, copy the binary and any refreshed runtime libraries:```bashsudo cp src-tauri/target/release/handy /usr/bin/+sudo cp -a src-tauri/transcribe-libs/. /usr/lib/+sudo ldconfig```-Resources only need re-copying if they change upstream (new icons, sounds, etc.).+Resources only need re-copying if they change upstream (new icons, sounds, models, etc.).## Troubleshooting@@ -143,3 +155,44 @@ bun run tauri build -- --bundles deb```Then install using the deb extraction method above.++### Windows build fails with `MSB3491` / path exceeds 260 characters++On Windows the native build can fail partway through with an error like:++```+error MSB3491: Could not write lines to file "...VCTargetsPath.tlog\VCTargetsPath.lastbuildstate".+Path: ... exceeds the OS max path limit. The fully qualified file name must be less than 260 characters.+```++This is **not** a code or toolchain problem — it's Windows' legacy 260-character+path limit (`MAX_PATH`). The Vulkan shader generator builds as a nested CMake+sub-project (`...\vulkan-shaders-gen-prefix\src\vulkan-shaders-gen-build\...`),+which alone adds ~140 characters on top of Cargo's already-deep+`target\release\build\<crate>-<hash>\out\build\...` directory. If your checkout+isn't very shallow, MSBuild's `.tlog` write overflows the limit. (CI doesn't hit+this because it builds from a short root such as `D:\a\Handy`.)++Either fix works; the first is the most reliable:++**1. Build with a shorter target directory** (no admin, fixes it immediately):++```powershell+$env:CARGO_TARGET_DIR = "C:\h"+bun run tauri build+```++Artifacts then land in `C:\h\release\...` instead of the repo's `src-tauri\target\`.+Alternatively, clone the repo to a short root (e.g. `C:\Handy`).++**2. Enable Windows long paths** (one-time, machine-wide; needs an Administrator+PowerShell, and modern Visual Studio 2022). This removes the limit for every+build, not just Handy:++```powershell+Set-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' LongPathsEnabled 1+git config --global core.longpaths true+```++Restart your shell (or reboot) afterward so the change takes effect. If a build+still trips on the limit, fall back to option 1.diff --git a/CONTRIBUTING_TRANSLATIONS.md b/CONTRIBUTING_TRANSLATIONS.mdindex 8d856eda..071e858b 100644--- a/CONTRIBUTING_TRANSLATIONS.md+++ b/CONTRIBUTING_TRANSLATIONS.md@@ -120,7 +120,7 @@ Found a typo or better translation?### Don't:-- Translate brand names (Handy, Whisper.cpp, OpenAI)+- Translate brand names (Handy, transcribe.cpp, ggml, OpenAI)- Change or remove `{{variables}}`- Modify JSON keys- Add extra spaces or formattingdiff --git a/README.md b/README.mdindex e89cb57e..19483d63 100644--- a/README.md+++ b/README.md@@ -64,7 +64,7 @@ Handy is built as a Tauri application combining:- **Frontend**: React + TypeScript with Tailwind CSS for the settings UI- **Backend**: Rust for system integration, audio processing, and ML inference- **Core Libraries**:- - `whisper-rs`: Local speech recognition with Whisper models+ - `transcribe-cpp`: Local speech recognition with Whisper-family models (GGML/GGUF)- `transcribe-rs`: CPU-optimized speech recognition with Parakeet models- `cpal`: Cross-platform audio I/O- `vad-rs`: Voice Activity Detection@@ -502,7 +502,7 @@ Handy is open-source software, but the Handy name, logo, icon, and brand assets## Acknowledgments- **Whisper** by OpenAI for the speech recognition model-- **whisper.cpp and ggml** for amazing cross-platform whisper inference/acceleration+- **ggml and transcribe.cpp** for amazing cross-platform speech-to-text inference/acceleration- **Silero** for great lightweight VAD- **Tauri** team for the excellent Rust-based app framework- **Community contributors** helping make Handy betterdiff --git a/bun.lock b/bun.lockindex 9dc4589d..6d4c929d 100644--- a/bun.lock+++ b/bun.lock@@ -24,7 +24,9 @@"react": "^18.3.1","react-dom": "^18.3.1","react-i18next": "^16.4.1",+ "react-markdown": "^10.1.0","react-select": "^5.8.0",+ "remark-gfm": "^4.0.1","sonner": "^2.0.7","tailwindcss": "^4.1.16","tauri-plugin-macos-permissions-api": "2.3.0",@@ -340,10 +342,20 @@"@types/babel__traverse": ["@types/[email protected]", "", { "dependencies": { "@babel/types": "^7.28.2" } }, "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q=="],+ "@types/debug": ["@types/[email protected]", "", { "dependencies": { "@types/ms": "*" } }, "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw=="],+"@types/estree": ["@types/[email protected]", "", {}, "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w=="],+ "@types/estree-jsx": ["@types/[email protected]", "", { "dependencies": { "@types/estree": "*" } }, "sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg=="],++ "@types/hast": ["@types/[email protected]", "", { "dependencies": { "@types/unist": "*" } }, "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ=="],+"@types/json-schema": ["@types/[email protected]", "", {}, "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA=="],+ "@types/mdast": ["@types/[email protected]", "", { "dependencies": { "@types/unist": "*" } }, "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA=="],++ "@types/ms": ["@types/[email protected]", "", {}, "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA=="],+"@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~7.16.0" } }, "sha512-QoiaXANRkSXK6p0Duvt56W208du4P9Uye9hWLWgGMDTEoKPhuenzNcC4vGUmrNkiOKTlIrBoyNQYNpSwfEZXSg=="],"@types/parse-json": ["@types/[email protected]", "", {}, "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw=="],@@ -358,6 +370,8 @@"@types/react-transition-group": ["@types/[email protected]", "", { "peerDependencies": { "@types/react": "*" } }, "sha512-8TV6R3h2j7a91c+1DXdJi3Syo69zzIZbz7Lg5tORM5LEJG7X/E6a1V3drRyBRZq7/utz7A+c4OgYLiLcYGHG6w=="],+ "@types/unist": ["@types/[email protected]", "", {}, "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="],+"@typescript-eslint/eslint-plugin": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@eslint-community/regexpp": "^4.10.0", "@typescript-eslint/scope-manager": "8.49.0", "@typescript-eslint/type-utils": "8.49.0", "@typescript-eslint/utils": "8.49.0", "@typescript-eslint/visitor-keys": "8.49.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "@typescript-eslint/parser": "^8.49.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-JXij0vzIaTtCwu6SxTh8qBc66kmf1xs7pI4UOiMDFVct6q86G0Zs7KRcEoJgY3Cav3x5Tq0MF5jwgpgLqgKG3A=="],"@typescript-eslint/parser": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/scope-manager": "8.49.0", "@typescript-eslint/types": "8.49.0", "@typescript-eslint/typescript-estree": "8.49.0", "@typescript-eslint/visitor-keys": "8.49.0", "debug": "^4.3.4" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-N9lBGA9o9aqb1hVMc9hzySbhKibHmB+N3IpoShyV6HyQYRGIhlrO5rQgttypi+yEeKsKI4idxC8Jw6gXKD4THA=="],@@ -378,6 +392,8 @@"@typescript-eslint/visitor-keys": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.49.0", "eslint-visitor-keys": "^4.2.1" } }, "sha512-LlKaciDe3GmZFphXIc79THF/YYBugZ7FS1pO581E/edlVVNbZKDy93evqmrfQ9/Y4uN0vVhX4iuchq26mK/iiA=="],+ "@ungap/structured-clone": ["@ungap/[email protected]", "", {}, "sha512-5jsZFwgR5rTdKwidH9Qmat75RKwqfpKlWWB1frDkljN127mwqBu8K0PYo7/hFpF03IEJpfVPpCQDY/eDx3iHvA=="],+"@vitejs/plugin-react": ["@vitejs/[email protected]", "", { "dependencies": { "@babel/core": "^7.28.0", "@babel/plugin-transform-react-jsx-self": "^7.27.1", "@babel/plugin-transform-react-jsx-source": "^7.27.1", "@rolldown/pluginutils": "1.0.0-beta.27", "@types/babel__core": "^7.20.5", "react-refresh": "^0.17.0" }, "peerDependencies": { "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" } }, "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA=="],"acorn": ["[email protected]", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg=="],@@ -392,6 +408,8 @@"babel-plugin-macros": ["[email protected]", "", { "dependencies": { "@babel/runtime": "^7.12.5", "cosmiconfig": "^7.0.0", "resolve": "^1.19.0" } }, "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg=="],+ "bail": ["[email protected]", "", {}, "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw=="],+"balanced-match": ["[email protected]", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="],"baseline-browser-mapping": ["[email protected]", "", { "bin": { "baseline-browser-mapping": "dist/cli.js" } }, "sha512-JMWsdF+O8Orq3EMukbUN1QfbLK9mX2CkUmQBcW2T0s8OmdAUL5LLM/6wFwSrqXzlXB13yhyK9gTKS1rIizOduQ=="],@@ -404,12 +422,24 @@"caniuse-lite": ["[email protected]", "", {}, "sha512-A0QJhug0Ly64Ii3eIqHu5X51ebln3k4yTUkY1j8drqpWHVreg/VLijN48cZ1bYPiqOQuqpkIKnzr/Ul8V+p6Cw=="],+ "ccount": ["[email protected]", "", {}, "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg=="],+"chalk": ["[email protected]", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="],+ "character-entities": ["[email protected]", "", {}, "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ=="],++ "character-entities-html4": ["[email protected]", "", {}, "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA=="],++ "character-entities-legacy": ["[email protected]", "", {}, "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ=="],++ "character-reference-invalid": ["[email protected]", "", {}, "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw=="],+"color-convert": ["[email protected]", "", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="],"color-name": ["[email protected]", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="],+ "comma-separated-tokens": ["[email protected]", "", {}, "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg=="],+"concat-map": ["[email protected]", "", {}, "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="],"convert-source-map": ["[email protected]", "", {}, "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg=="],@@ -422,10 +452,16 @@"debug": ["[email protected]", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="],+ "decode-named-character-reference": ["[email protected]", "", { "dependencies": { "character-entities": "^2.0.0" } }, "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q=="],+"deep-is": ["[email protected]", "", {}, "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ=="],+ "dequal": ["[email protected]", "", {}, "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA=="],+"detect-libc": ["[email protected]", "", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="],+ "devlop": ["[email protected]", "", { "dependencies": { "dequal": "^2.0.0" } }, "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA=="],+"dom-helpers": ["[email protected]", "", { "dependencies": { "@babel/runtime": "^7.8.7", "csstype": "^3.0.2" } }, "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA=="],"electron-to-chromium": ["[email protected]", "", {}, "sha512-OBwbZjWgrCOH+g6uJsA2/7Twpas2OlepS9uvByJjR2datRDuKGYeD+nP8lBBks2qnB7bGJNHDUx7c/YLaT3QMQ=="],@@ -456,8 +492,12 @@"estraverse": ["[email protected]", "", {}, "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA=="],+ "estree-util-is-identifier-name": ["[email protected]", "", {}, "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg=="],+"esutils": ["[email protected]", "", {}, "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g=="],+ "extend": ["[email protected]", "", {}, "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="],+"fast-deep-equal": ["[email protected]", "", {}, "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="],"fast-json-stable-stringify": ["[email protected]", "", {}, "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="],@@ -492,10 +532,16 @@"hasown": ["[email protected]", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ=="],+ "hast-util-to-jsx-runtime": ["[email protected]", "", { "dependencies": { "@types/estree": "^1.0.0", "@types/hast": "^3.0.0", "@types/unist": "^3.0.0", "comma-separated-tokens": "^2.0.0", "devlop": "^1.0.0", "estree-util-is-identifier-name": "^3.0.0", "hast-util-whitespace": "^3.0.0", "mdast-util-mdx-expression": "^2.0.0", "mdast-util-mdx-jsx": "^3.0.0", "mdast-util-mdxjs-esm": "^2.0.0", "property-information": "^7.0.0", "space-separated-tokens": "^2.0.0", "style-to-js": "^1.0.0", "unist-util-position": "^5.0.0", "vfile-message": "^4.0.0" } }, "sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg=="],++ "hast-util-whitespace": ["[email protected]", "", { "dependencies": { "@types/hast": "^3.0.0" } }, "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw=="],+"hoist-non-react-statics": ["[email protected]", "", { "dependencies": { "react-is": "^16.7.0" } }, "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw=="],"html-parse-stringify": ["[email protected]", "", { "dependencies": { "void-elements": "3.1.0" } }, "sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg=="],+ "html-url-attributes": ["[email protected]", "", {}, "sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ=="],+"i18next": ["[email protected]", "", { "dependencies": { "@babel/runtime": "^7.28.4" }, "peerDependencies": { "typescript": "^5" }, "optionalPeers": ["typescript"] }, "sha512-58b4kmLpLv1buWUEwegMDUqZVR5J+rT+WTRFaBGL7lxDuJQQ0NrJFrq+eT2N94aYVR1k1Sr13QITNOL88tZCuw=="],"ignore": ["[email protected]", "", {}, "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg=="],@@ -506,14 +552,26 @@"imurmurhash": ["[email protected]", "", {}, "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA=="],+ "inline-style-parser": ["[email protected]", "", {}, "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA=="],++ "is-alphabetical": ["[email protected]", "", {}, "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ=="],++ "is-alphanumerical": ["[email protected]", "", { "dependencies": { "is-alphabetical": "^2.0.0", "is-decimal": "^2.0.0" } }, "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw=="],+"is-arrayish": ["[email protected]", "", {}, "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg=="],"is-core-module": ["[email protected]", "", { "dependencies": { "hasown": "^2.0.2" } }, "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w=="],+ "is-decimal": ["[email protected]", "", {}, "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A=="],+"is-extglob": ["[email protected]", "", {}, "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ=="],"is-glob": ["[email protected]", "", { "dependencies": { "is-extglob": "^2.1.1" } }, "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg=="],+ "is-hexadecimal": ["[email protected]", "", {}, "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg=="],++ "is-plain-obj": ["[email protected]", "", {}, "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg=="],+"isexe": ["[email protected]", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="],"jiti": ["[email protected]", "", { "bin": { "jiti": "lib/jiti-cli.mjs" } }, "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ=="],@@ -570,6 +628,8 @@"lodash.merge": ["[email protected]", "", {}, "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ=="],+ "longest-streak": ["[email protected]", "", {}, "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g=="],+"loose-envify": ["[email protected]", "", { "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, "bin": { "loose-envify": "cli.js" } }, "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q=="],"lru-cache": ["[email protected]", "", { "dependencies": { "yallist": "^3.0.2" } }, "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w=="],@@ -578,8 +638,96 @@"magic-string": ["[email protected]", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="],+ "markdown-table": ["[email protected]", "", {}, "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw=="],++ "mdast-util-find-and-replace": ["[email protected]", "", { "dependencies": { "@types/mdast": "^4.0.0", "escape-string-regexp": "^5.0.0", "unist-util-is": "^6.0.0", "unist-util-visit-parents": "^6.0.0" } }, "sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg=="],++ "mdast-util-from-markdown": ["[email protected]", "", { "dependencies": { "@types/mdast": "^4.0.0", "@types/unist": "^3.0.0", "decode-named-character-reference": "^1.0.0", "devlop": "^1.0.0", "mdast-util-to-string": "^4.0.0", "micromark": "^4.0.0", "micromark-util-decode-numeric-character-reference": "^2.0.0", "micromark-util-decode-string": "^2.0.0", "micromark-util-normalize-identifier": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0", "unist-util-stringify-position": "^4.0.0" } }, "sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q=="],++ "mdast-util-gfm": ["[email protected]", "", { "dependencies": { "mdast-util-from-markdown": "^2.0.0", "mdast-util-gfm-autolink-literal": "^2.0.0", "mdast-util-gfm-footnote": "^2.0.0", "mdast-util-gfm-strikethrough": "^2.0.0", "mdast-util-gfm-table": "^2.0.0", "mdast-util-gfm-task-list-item": "^2.0.0", "mdast-util-to-markdown": "^2.0.0" } }, "sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ=="],++ "mdast-util-gfm-autolink-literal": ["[email protected]", "", { "dependencies": { "@types/mdast": "^4.0.0", "ccount": "^2.0.0", "devlop": "^1.0.0", "mdast-util-find-and-replace": "^3.0.0", "micromark-util-character": "^2.0.0" } }, "sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ=="],++ "mdast-util-gfm-footnote": ["[email protected]", "", { "dependencies": { "@types/mdast": "^4.0.0", "devlop": "^1.1.0", "mdast-util-from-markdown": "^2.0.0", "mdast-util-to-markdown": "^2.0.0", "micromark-util-normalize-identifier": "^2.0.0" } }, "sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ=="],++ "mdast-util-gfm-strikethrough": ["[email protected]", "", { "dependencies": { "@types/mdast": "^4.0.0", "mdast-util-from-markdown": "^2.0.0", "mdast-util-to-markdown": "^2.0.0" } }, "sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg=="],++ "mdast-util-gfm-table": ["[email protected]", "", { "dependencies": { "@types/mdast": "^4.0.0", "devlop": "^1.0.0", "markdown-table": "^3.0.0", "mdast-util-from-markdown": "^2.0.0", "mdast-util-to-markdown": "^2.0.0" } }, "sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg=="],++ "mdast-util-gfm-task-list-item": ["[email protected]", "", { "dependencies": { "@types/mdast": "^4.0.0", "devlop": "^1.0.0", "mdast-util-from-markdown": "^2.0.0", "mdast-util-to-markdown": "^2.0.0" } }, "sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ=="],++ "mdast-util-mdx-expression": ["[email protected]", "", { "dependencies": { "@types/estree-jsx": "^1.0.0", "@types/hast": "^3.0.0", "@types/mdast": "^4.0.0", "devlop": "^1.0.0", "mdast-util-from-markdown": "^2.0.0", "mdast-util-to-markdown": "^2.0.0" } }, "sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ=="],++ "mdast-util-mdx-jsx": ["[email protected]", "", { "dependencies": { "@types/estree-jsx": "^1.0.0", "@types/hast": "^3.0.0", "@types/mdast": "^4.0.0", "@types/unist": "^3.0.0", "ccount": "^2.0.0", "devlop": "^1.1.0", "mdast-util-from-markdown": "^2.0.0", "mdast-util-to-markdown": "^2.0.0", "parse-entities": "^4.0.0", "stringify-entities": "^4.0.0", "unist-util-stringify-position": "^4.0.0", "vfile-message": "^4.0.0" } }, "sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q=="],++ "mdast-util-mdxjs-esm": ["[email protected]", "", { "dependencies": { "@types/estree-jsx": "^1.0.0", "@types/hast": "^3.0.0", "@types/mdast": "^4.0.0", "devlop": "^1.0.0", "mdast-util-from-markdown": "^2.0.0", "mdast-util-to-markdown": "^2.0.0" } }, "sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg=="],++ "mdast-util-phrasing": ["[email protected]", "", { "dependencies": { "@types/mdast": "^4.0.0", "unist-util-is": "^6.0.0" } }, "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w=="],++ "mdast-util-to-hast": ["[email protected]", "", { "dependencies": { "@types/hast": "^3.0.0", "@types/mdast": "^4.0.0", "@ungap/structured-clone": "^1.0.0", "devlop": "^1.0.0", "micromark-util-sanitize-uri": "^2.0.0", "trim-lines": "^3.0.0", "unist-util-position": "^5.0.0", "unist-util-visit": "^5.0.0", "vfile": "^6.0.0" } }, "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA=="],++ "mdast-util-to-markdown": ["[email protected]", "", { "dependencies": { "@types/mdast": "^4.0.0", "@types/unist": "^3.0.0", "longest-streak": "^3.0.0", "mdast-util-phrasing": "^4.0.0", "mdast-util-to-string": "^4.0.0", "micromark-util-classify-character": "^2.0.0", "micromark-util-decode-string": "^2.0.0", "unist-util-visit": "^5.0.0", "zwitch": "^2.0.0" } }, "sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA=="],++ "mdast-util-to-string": ["[email protected]", "", { "dependencies": { "@types/mdast": "^4.0.0" } }, "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg=="],+"memoize-one": ["[email protected]", "", {}, "sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw=="],+ "micromark": ["[email protected]", "", { "dependencies": { "@types/debug": "^4.0.0", "debug": "^4.0.0", "decode-named-character-reference": "^1.0.0", "devlop": "^1.0.0", "micromark-core-commonmark": "^2.0.0", "micromark-factory-space": "^2.0.0", "micromark-util-character": "^2.0.0", "micromark-util-chunked": "^2.0.0", "micromark-util-combine-extensions": "^2.0.0", "micromark-util-decode-numeric-character-reference": "^2.0.0", "micromark-util-encode": "^2.0.0", "micromark-util-normalize-identifier": "^2.0.0", "micromark-util-resolve-all": "^2.0.0", "micromark-util-sanitize-uri": "^2.0.0", "micromark-util-subtokenize": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA=="],++ "micromark-core-commonmark": ["[email protected]", "", { "dependencies": { "decode-named-character-reference": "^1.0.0", "devlop": "^1.0.0", "micromark-factory-destination": "^2.0.0", "micromark-factory-label": "^2.0.0", "micromark-factory-space": "^2.0.0", "micromark-factory-title": "^2.0.0", "micromark-factory-whitespace": "^2.0.0", "micromark-util-character": "^2.0.0", "micromark-util-chunked": "^2.0.0", "micromark-util-classify-character": "^2.0.0", "micromark-util-html-tag-name": "^2.0.0", "micromark-util-normalize-identifier": "^2.0.0", "micromark-util-resolve-all": "^2.0.0", "micromark-util-subtokenize": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg=="],++ "micromark-extension-gfm": ["[email protected]", "", { "dependencies": { "micromark-extension-gfm-autolink-literal": "^2.0.0", "micromark-extension-gfm-footnote": "^2.0.0", "micromark-extension-gfm-strikethrough": "^2.0.0", "micromark-extension-gfm-table": "^2.0.0", "micromark-extension-gfm-tagfilter": "^2.0.0", "micromark-extension-gfm-task-list-item": "^2.0.0", "micromark-util-combine-extensions": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w=="],++ "micromark-extension-gfm-autolink-literal": ["[email protected]", "", { "dependencies": { "micromark-util-character": "^2.0.0", "micromark-util-sanitize-uri": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw=="],++ "micromark-extension-gfm-footnote": ["[email protected]", "", { "dependencies": { "devlop": "^1.0.0", "micromark-core-commonmark": "^2.0.0", "micromark-factory-space": "^2.0.0", "micromark-util-character": "^2.0.0", "micromark-util-normalize-identifier": "^2.0.0", "micromark-util-sanitize-uri": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw=="],++ "micromark-extension-gfm-strikethrough": ["[email protected]", "", { "dependencies": { "devlop": "^1.0.0", "micromark-util-chunked": "^2.0.0", "micromark-util-classify-character": "^2.0.0", "micromark-util-resolve-all": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw=="],++ "micromark-extension-gfm-table": ["[email protected]", "", { "dependencies": { "devlop": "^1.0.0", "micromark-factory-space": "^2.0.0", "micromark-util-character": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg=="],++ "micromark-extension-gfm-tagfilter": ["[email protected]", "", { "dependencies": { "micromark-util-types": "^2.0.0" } }, "sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg=="],++ "micromark-extension-gfm-task-list-item": ["[email protected]", "", { "dependencies": { "devlop": "^1.0.0", "micromark-factory-space": "^2.0.0", "micromark-util-character": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw=="],++ "micromark-factory-destination": ["[email protected]", "", { "dependencies": { "micromark-util-character": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA=="],++ "micromark-factory-label": ["[email protected]", "", { "dependencies": { "devlop": "^1.0.0", "micromark-util-character": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg=="],++ "micromark-factory-space": ["[email protected]", "", { "dependencies": { "micromark-util-character": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg=="],++ "micromark-factory-title": ["[email protected]", "", { "dependencies": { "micromark-factory-space": "^2.0.0", "micromark-util-character": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw=="],++ "micromark-factory-whitespace": ["[email protected]", "", { "dependencies": { "micromark-factory-space": "^2.0.0", "micromark-util-character": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ=="],++ "micromark-util-character": ["[email protected]", "", { "dependencies": { "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q=="],++ "micromark-util-chunked": ["[email protected]", "", { "dependencies": { "micromark-util-symbol": "^2.0.0" } }, "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA=="],++ "micromark-util-classify-character": ["[email protected]", "", { "dependencies": { "micromark-util-character": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q=="],++ "micromark-util-combine-extensions": ["[email protected]", "", { "dependencies": { "micromark-util-chunked": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg=="],++ "micromark-util-decode-numeric-character-reference": ["[email protected]", "", { "dependencies": { "micromark-util-symbol": "^2.0.0" } }, "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw=="],++ "micromark-util-decode-string": ["[email protected]", "", { "dependencies": { "decode-named-character-reference": "^1.0.0", "micromark-util-character": "^2.0.0", "micromark-util-decode-numeric-character-reference": "^2.0.0", "micromark-util-symbol": "^2.0.0" } }, "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ=="],++ "micromark-util-encode": ["[email protected]", "", {}, "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw=="],++ "micromark-util-html-tag-name": ["[email protected]", "", {}, "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA=="],++ "micromark-util-normalize-identifier": ["[email protected]", "", { "dependencies": { "micromark-util-symbol": "^2.0.0" } }, "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q=="],++ "micromark-util-resolve-all": ["[email protected]", "", { "dependencies": { "micromark-util-types": "^2.0.0" } }, "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg=="],++ "micromark-util-sanitize-uri": ["[email protected]", "", { "dependencies": { "micromark-util-character": "^2.0.0", "micromark-util-encode": "^2.0.0", "micromark-util-symbol": "^2.0.0" } }, "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ=="],++ "micromark-util-subtokenize": ["[email protected]", "", { "dependencies": { "devlop": "^1.0.0", "micromark-util-chunked": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA=="],++ "micromark-util-symbol": ["[email protected]", "", {}, "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q=="],++ "micromark-util-types": ["[email protected]", "", {}, "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA=="],+"minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^1.1.7" } }, "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw=="],"ms": ["[email protected]", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="],@@ -600,6 +748,8 @@"parent-module": ["[email protected]", "", { "dependencies": { "callsites": "^3.0.0" } }, "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g=="],+ "parse-entities": ["[email protected]", "", { "dependencies": { "@types/unist": "^2.0.0", "character-entities-legacy": "^3.0.0", "character-reference-invalid": "^2.0.0", "decode-named-character-reference": "^1.0.0", "is-alphanumerical": "^2.0.0", "is-decimal": "^2.0.0", "is-hexadecimal": "^2.0.0" } }, "sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw=="],+"parse-json": ["[email protected]", "", { "dependencies": { "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", "json-parse-even-better-errors": "^2.3.0", "lines-and-columns": "^1.1.6" } }, "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg=="],"path-exists": ["[email protected]", "", {}, "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="],@@ -626,6 +776,8 @@"prop-types": ["[email protected]", "", { "dependencies": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", "react-is": "^16.13.1" } }, "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg=="],+ "property-information": ["[email protected]", "", {}, "sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg=="],+"punycode": ["[email protected]", "", {}, "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg=="],"react": ["[email protected]", "", { "dependencies": { "loose-envify": "^1.1.0" } }, "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ=="],@@ -636,12 +788,22 @@"react-is": ["[email protected]", "", {}, "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="],+ "react-markdown": ["[email protected]", "", { "dependencies": { "@types/hast": "^3.0.0", "@types/mdast": "^4.0.0", "devlop": "^1.0.0", "hast-util-to-jsx-runtime": "^2.0.0", "html-url-attributes": "^3.0.0", "mdast-util-to-hast": "^13.0.0", "remark-parse": "^11.0.0", "remark-rehype": "^11.0.0", "unified": "^11.0.0", "unist-util-visit": "^5.0.0", "vfile": "^6.0.0" }, "peerDependencies": { "@types/react": ">=18", "react": ">=18" } }, "sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ=="],+"react-refresh": ["[email protected]", "", {}, "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ=="],"react-select": ["[email protected]", "", { "dependencies": { "@babel/runtime": "^7.12.0", "@emotion/cache": "^11.4.0", "@emotion/react": "^11.8.1", "@floating-ui/dom": "^1.0.1", "@types/react-transition-group": "^4.4.0", "memoize-one": "^6.0.0", "prop-types": "^15.6.0", "react-transition-group": "^4.3.0", "use-isomorphic-layout-effect": "^1.2.0" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-Z33nHdEFWq9tfnfVXaiM12rbJmk+QjFEztWLtmXqQhz6Al4UZZ9xc0wiatmGtUOCCnHN0WizL3tCMYRENX4rVQ=="],"react-transition-group": ["[email protected]", "", { "dependencies": { "@babel/runtime": "^7.5.5", "dom-helpers": "^5.0.1", "loose-envify": "^1.4.0", "prop-types": "^15.6.2" }, "peerDependencies": { "react": ">=16.6.0", "react-dom": ">=16.6.0" } }, "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g=="],+ "remark-gfm": ["[email protected]", "", { "dependencies": { "@types/mdast": "^4.0.0", "mdast-util-gfm": "^3.0.0", "micromark-extension-gfm": "^3.0.0", "remark-parse": "^11.0.0", "remark-stringify": "^11.0.0", "unified": "^11.0.0" } }, "sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg=="],++ "remark-parse": ["[email protected]", "", { "dependencies": { "@types/mdast": "^4.0.0", "mdast-util-from-markdown": "^2.0.0", "micromark-util-types": "^2.0.0", "unified": "^11.0.0" } }, "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA=="],++ "remark-rehype": ["[email protected]", "", { "dependencies": { "@types/hast": "^3.0.0", "@types/mdast": "^4.0.0", "mdast-util-to-hast": "^13.0.0", "unified": "^11.0.0", "vfile": "^6.0.0" } }, "sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw=="],++ "remark-stringify": ["[email protected]", "", { "dependencies": { "@types/mdast": "^4.0.0", "mdast-util-to-markdown": "^2.0.0", "unified": "^11.0.0" } }, "sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw=="],+"requireindex": ["[email protected]", "", {}, "sha512-LBnkqsDE7BZKvqylbmn7lTIVdpx4K/QCduRATpO5R+wtPmky/a8pN1bO2D6wXppn1497AJF9mNjqAXr6bdl9jg=="],"resolve": ["[email protected]", "", { "dependencies": { "is-core-module": "^2.16.1", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" } }, "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ=="],@@ -664,8 +826,16 @@"source-map-js": ["[email protected]", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="],+ "space-separated-tokens": ["[email protected]", "", {}, "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q=="],++ "stringify-entities": ["[email protected]", "", { "dependencies": { "character-entities-html4": "^2.0.0", "character-entities-legacy": "^3.0.0" } }, "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg=="],+"strip-json-comments": ["[email protected]", "", {}, "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig=="],+ "style-to-js": ["[email protected]", "", { "dependencies": { "style-to-object": "1.0.14" } }, "sha512-RjQetxJrrUJLQPHbLku6U/ocGtzyjbJMP9lCNK7Ag0CNh690nSH8woqWH9u16nMjYBAok+i7JO1NP2pOy8IsPQ=="],++ "style-to-object": ["[email protected]", "", { "dependencies": { "inline-style-parser": "0.2.7" } }, "sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw=="],+"stylis": ["[email protected]", "", {}, "sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw=="],"supports-color": ["[email protected]", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],@@ -680,6 +850,10 @@"tinyglobby": ["[email protected]", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.3" } }, "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ=="],+ "trim-lines": ["[email protected]", "", {}, "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg=="],++ "trough": ["[email protected]", "", {}, "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw=="],+"ts-api-utils": ["[email protected]", "", { "peerDependencies": { "typescript": ">=4.8.4" } }, "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ=="],"type-check": ["[email protected]", "", { "dependencies": { "prelude-ls": "^1.2.1" } }, "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew=="],@@ -688,6 +862,18 @@"undici-types": ["[email protected]", "", {}, "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw=="],+ "unified": ["[email protected]", "", { "dependencies": { "@types/unist": "^3.0.0", "bail": "^2.0.0", "devlop": "^1.0.0", "extend": "^3.0.0", "is-plain-obj": "^4.0.0", "trough": "^2.0.0", "vfile": "^6.0.0" } }, "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA=="],++ "unist-util-is": ["[email protected]", "", { "dependencies": { "@types/unist": "^3.0.0" } }, "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g=="],++ "unist-util-position": ["[email protected]", "", { "dependencies": { "@types/unist": "^3.0.0" } }, "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA=="],++ "unist-util-stringify-position": ["[email protected]", "", { "dependencies": { "@types/unist": "^3.0.0" } }, "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ=="],++ "unist-util-visit": ["[email protected]", "", { "dependencies": { "@types/unist": "^3.0.0", "unist-util-is": "^6.0.0", "unist-util-visit-parents": "^6.0.0" } }, "sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg=="],++ "unist-util-visit-parents": ["[email protected]", "", { "dependencies": { "@types/unist": "^3.0.0", "unist-util-is": "^6.0.0" } }, "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ=="],+"update-browserslist-db": ["[email protected]", "", { "dependencies": { "escalade": "^3.2.0", "picocolors": "^1.1.1" }, "peerDependencies": { "browserslist": ">= 4.21.0" }, "bin": { "update-browserslist-db": "cli.js" } }, "sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A=="],"uri-js": ["[email protected]", "", { "dependencies": { "punycode": "^2.1.0" } }, "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg=="],@@ -696,6 +882,10 @@"use-sync-external-store": ["[email protected]", "", { "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w=="],+ "vfile": ["[email protected]", "", { "dependencies": { "@types/unist": "^3.0.0", "vfile-message": "^4.0.0" } }, "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q=="],++ "vfile-message": ["[email protected]", "", { "dependencies": { "@types/unist": "^3.0.0", "unist-util-stringify-position": "^4.0.0" } }, "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw=="],+"vite": ["[email protected]", "", { "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.4.4", "picomatch": "^4.0.2", "postcss": "^8.5.3", "rollup": "^4.34.9", "tinyglobby": "^0.2.13" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", "jiti": ">=1.21.0", "less": "*", "lightningcss": "^1.21.0", "sass": "*", "sass-embedded": "*", "stylus": "*", "sugarss": "*", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["@types/node", "jiti", "less", "lightningcss", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx", "yaml"], "bin": { "vite": "bin/vite.js" } }, "sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g=="],"void-elements": ["[email protected]", "", {}, "sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w=="],@@ -714,6 +904,8 @@"zustand": ["[email protected]", "", { "peerDependencies": { "@types/react": ">=18.0.0", "immer": ">=9.0.6", "react": ">=18.0.0", "use-sync-external-store": ">=1.2.0" }, "optionalPeers": ["@types/react", "immer", "react", "use-sync-external-store"] }, "sha512-gyPKpIaxY9XcO2vSMrLbiER7QMAMGOQZVRdJ6Zi782jkbzZygq5GI9nG8g+sMgitRtndwaBSl7uiqC49o1SSiw=="],+ "zwitch": ["[email protected]", "", {}, "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A=="],+"@babel/core/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],"@babel/helper-compilation-targets/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],@@ -758,6 +950,10 @@"eslint/ignore": ["[email protected]", "", {}, "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g=="],+ "mdast-util-find-and-replace/escape-string-regexp": ["[email protected]", "", {}, "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw=="],++ "parse-entities/@types/unist": ["@types/[email protected]", "", {}, "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA=="],+"playwright/fsevents": ["[email protected]", "", { "os": "darwin" }, "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA=="],"tauri-plugin-macos-permissions-api/@tauri-apps/api": ["@tauri-apps/[email protected]", "", {}, "sha512-qD5tMjh7utwBk9/5PrTA/aGr3i5QaJ/Mlt7p8NilQ45WgbifUNPyKWsA63iQ8YfQq6R8ajMapU+/Q8nMcPRLNw=="],diff --git a/package.json b/package.jsonindex 47747c9c..40aa2d72 100644--- a/package.json+++ b/package.json@@ -1,7 +1,7 @@{"name": "handy-app","private": true,- "version": "0.8.3",+ "version": "0.9.0","type": "module","scripts": {"dev": "vite",@@ -39,7 +39,9 @@"react": "^18.3.1","react-dom": "^18.3.1","react-i18next": "^16.4.1",+ "react-markdown": "^10.1.0","react-select": "^5.8.0",+ "remark-gfm": "^4.0.1","sonner": "^2.0.7","tailwindcss": "^4.1.16","tauri-plugin-macos-permissions-api": "2.3.0",diff --git a/public/release-notes/0.9.0/overlay.png b/public/release-notes/0.9.0/overlay.pngnew file mode 100644index 00000000..e5cae224Binary files /dev/null and b/public/release-notes/0.9.0/overlay.png differdiff --git a/scripts/ci/stage-transcribe-libs.sh b/scripts/ci/stage-transcribe-libs.shnew file mode 100755index 00000000..29875746--- /dev/null+++ b/scripts/ci/stage-transcribe-libs.sh@@ -0,0 +1,54 @@+#!/usr/bin/env bash+#+# Stage transcribe-cpp's dynamic backend libraries into a destination directory.+#+# On Linux/Windows, Handy builds transcribe-cpp in its `dynamic-backends`+# posture: a shared `libtranscribe` plus loadable per-ISA ggml backend modules+# (`libggml-cpu-<isa>.so`, `libggml-vulkan.so`, ...). These are produced by the+# transcribe-cpp-sys CMake install during the cargo build, but nothing ships+# them. This script copies them, as a co-located set, next to where the `handy`+# binary will find them at runtime:+# - the loader resolves `libtranscribe` via the $ORIGIN-relative rpath baked+# into `handy` (see src-tauri/build.rs);+# - transcribe's init_backends_default() then loads the ggml modules from+# libtranscribe's own directory (a strictly package-local scan), so the+# modules MUST sit beside it.+#+# Usage: stage-transcribe-libs.sh <src-lib-dir> <dest-dir>+# <src-lib-dir> the transcribe-cpp-sys install lib dir (contains+# libtranscribe.so* + libggml*.so* + transcribe-link.json)+# <dest-dir> where to place them (e.g. an AppImage's usr/lib)+set -euo pipefail++SRC="${1:?usage: stage-transcribe-libs.sh <src-lib-dir> <dest-dir>}"+DEST="${2:?usage: stage-transcribe-libs.sh <src-lib-dir> <dest-dir>}"++if [ ! -d "$SRC" ]; then+ echo "ERROR: source lib dir does not exist: $SRC" >&2+ exit 1+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).+# `|| 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++# Fail loudly if the core lib or the CPU backend modules are absent — a missing+# CPU module means no usable compute device on machines without a GPU backend,+# which is exactly the SIGILL-safe baseline this whole posture exists to deliver.+if ! ls "$DEST"/libtranscribe.so* >/dev/null 2>&1; then+ echo "ERROR: libtranscribe.so missing from $DEST (nothing copied from $SRC)" >&2+ ls -la "$SRC" >&2 || true+ exit 1+fi+if ! ls "$DEST"/libggml-cpu*.so* >/dev/null 2>&1; then+ echo "ERROR: no ggml CPU backend modules (libggml-cpu*.so) staged into $DEST" >&2+ ls -la "$SRC" >&2 || true+ exit 1+fi++echo "Staged transcribe-cpp dynamic backends into $DEST:"+ls -la "$DEST" | grep -E "libtranscribe|libggml" || truediff --git a/scripts/gen_catalog.py b/scripts/gen_catalog.pynew file mode 100644index 00000000..b91992f6--- /dev/null+++ b/scripts/gen_catalog.py@@ -0,0 +1,251 @@+# /// script+# requires-python = ">=3.10"+# dependencies = ["huggingface_hub", "fsspec"]+# ///+"""+Handy model catalog generator.++Merges three sources into one catalog.json:+ 1. HF card `transcribe_cpp` block -> capabilities + benchmarks (canonical)+ 2. a tiny GGUF header range-read -> display labels only+ 3. local CURATION (this file) -> recommended set, editorial descriptions++Emits catalog.json to be committed and `include_str!`'d into the Rust binary.+Run: HF_TOKEN=$(hf auth token) uv run gen_catalog.py [out_path]+"""+import json, os, re, sys, math, struct, datetime+from concurrent.futures import ThreadPoolExecutor, as_completed+from huggingface_hub import HfApi, HfFileSystem++ORG = "handy-computer"+CATALOG_VERSION = 1++# ───────────────────────── scoring (one constant each) ──────────────────────+SPEED_SCALE = 8.0 # speed = 100·(1 − e^(−rtf/8)) grows toward 100+ACC_SCALE = 15.0 # accuracy = 100·e^(−wer/15) decays from 100+SPEED_FLOOR = 10 # no reference-machine rtf (too heavy to benchmark) → floor, it's slow+def speed_from_rtf(rtf):+ return SPEED_FLOOR if not rtf or rtf <= 0 else round(100 * (1 - math.exp(-rtf / SPEED_SCALE)))+def acc_from_wer(wer):+ return None if wer is None else round(100 * math.exp(-wer / ACC_SCALE))++# ───────────────────────── curation (CJ owns; editorial, not derivable) ──────+# slug -> {rank?, desc?, use_case?, default_quant?, hidden?}. All optional.+# desc is hand-written UI copy; models without one use factual generated summaries.+CURATION = {+ "parakeet-unified-en-0.6b": {"rank": 1, "desc": "Fast, accurate English with live transcription."},+ "nemotron-3.5-asr-streaming-0.6b": {"rank": 2, "desc": "Live multilingual transcription across 28 languages."},+ "canary-180m-flash": {"rank": 3, "desc": "Tiny and instant — runs well on any hardware."},+ "cohere-transcribe-03-2026": {"rank": 4, "desc": "Highest accuracy, 14 languages."},+ "whisper-medium": {"rank": 5, "desc": "Broadest language coverage, with translation to English."},+ "Voxtral-Mini-4B-Realtime-2602": {"rank": 6, "desc": "Live multilingual, excellent on Apple Silicon."},+ # description-only (not recommended) — carried over from the legacy .bin entry+ "Breeze-ASR-25": {"desc": "Optimized for Taiwanese Mandarin. Code-switching support."},+}+# temporary capability corrections pending a card re-push (remove once cards fixed)+OVERRIDES = {+ "granite-4.0-1b-speech": {"timestamps": "none"},+ "granite-speech-4.1-2b": {"timestamps": "none"},+}++# ───────────────────────── helpers ──────────────────────────────────────────+ARCH = ["whisper","moonshine-streaming","moonshine","parakeet","canary-qwen","canary","voxtral",+ "granite-speech","granite","qwen3","gigaam","sensevoice","cohere","fun-asr","nemotron","medasr"]+ACR = {"asr":"ASR","ctc":"CTC","rnnt":"RNNT","tdt":"TDT","nar":"NAR","mlt":"MLT"}+SCALAR = {0:("<B",1),1:("<b",1),2:("<H",2),3:("<h",2),4:("<I",4),5:("<i",4),+ 6:("<f",4),7:("<?",1),10:("<Q",8),11:("<q",8),12:("<d",8)}++def slug(repo): return repo.split("/")[1].replace("-gguf", "")+def family(s, tags):+ for f in ARCH:+ if f in s.lower(): return "moonshine" if f.startswith("moonshine") else f.split("-")[0]+ for t in tags or []:+ if t in ("whisper","moonshine","parakeet","canary","voxtral","granite","qwen3","gigaam","sensevoice","cohere"):+ return t+ return "other"+def pretty(s):+ return " ".join(ACR.get(p.lower(), p if (p.isupper() or any(c.isdigit() for c in p)) else p.capitalize())+ for p in s.split("-"))+def quant_of(fn):+ m = re.search(r"-(F32|F16|BF16|Q\d[\w_]*?)\.gguf$", fn); return m.group(1) if m else "?"+def parse_params(size_label):+ """`general.size_label` ("0.6B" / "1.7B" / "62M") -> count in billions, or None."""+ m = re.match(r"([\d.]+)\s*([BM])", str(size_label or "").strip(), re.I)+ if not m: return None+ v = float(m.group(1)); return v if m.group(2).upper() == "B" else v / 1000+def pick_wer(b):+ if "wer_librispeech_test_clean" in b: return "librispeech", b["wer_librispeech_test_clean"]+ if "wer_fleurs_en" in b: return "fleurs_en", b["wer_fleurs_en"]+ fl = [k for k in b if k.startswith("wer_fleurs")]+ return (fl[0].replace("wer_", ""), b[fl[0]]) if fl else (None, {})+def headline_wer(d):+ for q in ("q8_0","f16","q5_k_m","q6_k","q4_k_m","f32","bf16"):+ if isinstance(d, dict) and q in d: return d[q], q+ return None, None+def auto_desc(langn, caps):+ feats = []+ if caps["translate"]: feats.append("translation")+ if caps["lang_detect"]: feats.append("auto language detection")+ if caps["streaming"]: feats.append("streaming")+ if caps["timestamps"] != "none": feats.append(f"{caps['timestamps']}-level timestamps")+ base = f"{langn}-language speech-to-text" if langn > 1 else "English speech-to-text"+ return base + (" with " + ", ".join(feats) + "." if feats else ".")++api = HfApi(token=os.environ.get("HF_TOKEN"))+fs = HfFileSystem(token=os.environ.get("HF_TOKEN"))++GGUF_WANT = {"general.architecture", "general.name", "general.basename", "general.size_label"}+def probe_header(repo, filename, nbytes=65536):+ """Range-read only friendly general.* labels (no tensors, no capabilities).++ Capabilities come from HF card data here and from Rust's GGUF probe at+ runtime. Keep this as a narrow display-label reader so the catalog generator+ does not become a second source of truth for model behavior.+ """+ out = {}+ try:+ with fs.open(f"{repo}/{filename}", "rb", block_size=nbytes) as f:+ buf = f.read(nbytes)+ except Exception:+ return out+ if buf[:4] != b"GGUF": return out+ u32 = lambda o: struct.unpack_from("<I", buf, o)[0]+ u64 = lambda o: struct.unpack_from("<Q", buf, o)[0]+ def rstr(o): n = u64(o); return buf[o+8:o+8+n].decode("utf-8","replace"), o+8+n+ def skip(o, vt):+ if vt in SCALAR: return o + SCALAR[vt][1]+ if vt == 8: return o + 8 + u64(o)+ if vt == 9:+ et = u32(o); cnt = u64(o+4); o += 12+ if et in SCALAR: return o + SCALAR[et][1]*cnt+ if et == 8:+ for _ in range(cnt): o += 8 + u64(o)+ return o+ raise ValueError+ off = 24 # magic+ver+n_tensors+n_kv+ n_kv = u64(16)+ try:+ for _ in range(n_kv):+ key, off = rstr(off); vt = u32(off); off += 4+ if key in GGUF_WANT and vt == 8:+ out[key], off = rstr(off)+ elif key in GGUF_WANT and vt in SCALAR:+ fmt, sz = SCALAR[vt]; out[key] = struct.unpack_from(fmt, buf, off)[0]; off += sz+ else:+ off = skip(off, vt)+ if GGUF_WANT.issubset(out): break+ except Exception:+ pass # ran past the buffer (hit tokenizer) — keep what we got+ return out++def gguf_files(repo, siblings):+ """Return GGUF files with mandatory size metadata.++ `QuantFile.size_bytes` is a non-null `u64` in Rust. Failing generation here+ keeps a transient/malformed HF listing from producing a catalog that panics+ at app startup when deserialized by `include_str!("catalog.json")`.+ """+ files = []+ invalid = []+ for x in siblings:+ if not x.rfilename.endswith(".gguf"):+ continue+ if type(x.size) is not int or x.size <= 0:+ invalid.append(x.rfilename)+ continue+ files.append({+ "filename": x.rfilename,+ "quant": quant_of(x.rfilename),+ "size_bytes": x.size,+ })+ if invalid:+ raise ValueError(f"{repo}: missing/invalid size metadata for {', '.join(invalid)}")+ return sorted(files, key=lambda f: f["size_bytes"])++def build(repo):+ info = api.model_info(repo, files_metadata=True)+ cd = info.card_data.to_dict() if info.card_data else {}+ s = slug(repo)+ cur = CURATION.get(s, {})+ b = dict(cd.get("transcribe_cpp") or {}); b.update(OVERRIDES.get(s, {}))+ langs = cd.get("language") or []++ files = gguf_files(repo, info.siblings)+ q8 = next((f for f in files if "Q8" in f["quant"]), files[-1] if files else None)+ gg = probe_header(repo, q8["filename"]) if q8 else {}++ caps = {"streaming": bool(b.get("streaming")), "translate": bool(b.get("translate")),+ "lang_detect": bool(b.get("lang_detect")), "timestamps": b.get("timestamps", "none")}+ ryz = b.get("rtf_ryzen_4750u") or {}; rtf = ryz.get("vulkan", ryz.get("cpu"))+ eval_set, werd = pick_wer(b); hw, hwq = headline_wer(werd)++ # Default-quant policy by model size (params from general.size_label):+ # >=1B -> Q5_K_M (large models tolerate it; ~30% less download/RAM)+ # <1B -> Q8_0 (already small; keep reference quality)+ # A per-model CURATION `default_quant` overrides the policy. If the policy+ # quant is absent for a model, fall back: Q8_0 → any Q8 → Q5_K_M → smallest.+ params = parse_params(gg.get("general.size_label"))+ policy = "Q5_K_M" if (params is not None and params >= 1.0) else "Q8_0"+ have = lambda q: next((f["quant"] for f in files if f["quant"] == q), None)+ default_quant = (cur.get("default_quant")+ or have(policy)+ or have("Q8_0")+ or next((f["quant"] for f in files if "Q8" in f["quant"]), None)+ or have("Q5_K_M")+ or (files[0]["quant"] if files else None))++ return {+ "id": repo,+ "slug": s,+ "name": gg.get("general.name") or pretty(s), # friendly name (from GGUF)+ "architecture": gg.get("general.architecture"),+ "family": family(s, info.tags),+ "parameters": gg.get("general.size_label"), # "0.6B" / "1.7B" / "62M"+ "description": cur.get("desc") or auto_desc(len(langs), caps),+ "base_model": cd.get("base_model"),+ "license": cd.get("license"),+ "language_count": len(langs),+ "languages": langs,+ "capabilities": caps,+ "speed_score": speed_from_rtf(rtf),+ "accuracy_score": acc_from_wer(hw),+ "files": files,+ "default_quant": default_quant,+ "recommended": "rank" in cur,+ "recommended_rank": cur.get("rank"),+ }++def main():+ repos = [m.id for m in api.list_models(author=ORG, limit=500)]+ models = []+ failures = []+ with ThreadPoolExecutor(max_workers=10) as ex:+ futs = {ex.submit(build, r): r for r in repos}+ for f in as_completed(futs):+ try:+ m = f.result()+ if not CURATION.get(m["slug"], {}).get("hidden"): models.append(m)+ except Exception as e:+ failures.append((futs[f], e))+ print(f"!! {futs[f]}: {e}", file=sys.stderr)+ if failures:+ print(f"catalog generation failed for {len(failures)} repo(s)", file=sys.stderr)+ raise SystemExit(1)+ models.sort(key=lambda m: (not m["recommended"], m["recommended_rank"] or 1e9,+ m["family"], -(m["speed_score"] or 0)))+ catalog = {+ "catalog_version": CATALOG_VERSION,+ "generated_at": datetime.datetime.now(datetime.timezone.utc).isoformat(timespec="seconds"),+ "models": models,+ }+ text = json.dumps(catalog, indent=2, ensure_ascii=False)+ # print each `languages` array on a single line for readability+ text = re.sub(r'"languages": \[(.*?)\]',+ lambda m: '"languages": [' + ", ".join(re.findall(r'"[^"]*"', m.group(1))) + ']',+ text, flags=re.S)+ out = sys.argv[1] if len(sys.argv) > 1 else os.path.join(os.path.dirname(__file__), "catalog.json")+ open(out, "w").write(text)+ print(f"wrote {out}: {len(models)} models, {os.path.getsize(out)/1024:.1f} KB", file=sys.stderr)++if __name__ == "__main__":+ main()diff --git a/src-tauri/.gitignore b/src-tauri/.gitignoreindex b21bd681..ec2ffc6b 100644--- a/src-tauri/.gitignore+++ b/src-tauri/.gitignore@@ -5,3 +5,8 @@# Generated by Tauri# will have schema files for capabilities auto-completion/gen/schemas++# Staged by build.rs: transcribe-cpp shared runtime libraries (Windows DLLs /+# Linux .so), bundled next to the executable — to the install root via+# tauri.windows.conf.json on Windows, into /usr/lib via tauri.conf.json on Linux.+/transcribe-libs/diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lockindex b2d9e2af..2c81af82 100644--- a/src-tauri/Cargo.lock+++ b/src-tauri/Cargo.lock@@ -404,26 +404,6 @@ dependencies = ["virtue",]-[[package]]-name = "bindgen"-version = "0.72.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"-dependencies = [- "bitflags 2.11.0",- "cexpr",- "clang-sys",- "itertools",- "log",- "prettyplease",- "proc-macro2",- "quote",- "regex",- "rustc-hash",- "shlex",- "syn 2.0.117",-]-[[package]]name = "bitflags"version = "1.3.2"@@ -707,15 +687,6 @@ version = "1.1.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"-[[package]]-name = "cexpr"-version = "0.6.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"-dependencies = [- "nom 7.1.3",-]-[[package]]name = "cfb"version = "0.7.3"@@ -773,17 +744,6 @@ dependencies = ["windows-link 0.2.1",]-[[package]]-name = "clang-sys"-version = "1.8.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4"-dependencies = [- "glob",- "libc",- "libloading 0.8.9",-]-[[package]]name = "clap"version = "4.5.60"@@ -912,6 +872,18 @@ dependencies = ["crossbeam-utils",]+[[package]]+name = "console"+version = "0.16.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d64e8af5551369d19cf50138de61f1c42074ab970f74e99be916646777f8fc87"+dependencies = [+ "encode_unicode",+ "libc",+ "unicode-width",+ "windows-sys 0.61.2",+]+[[package]]name = "convert_case"version = "0.4.0"@@ -924,10 +896,29 @@ version = "0.18.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747"dependencies = [+ "percent-encoding","time","version_check",]+[[package]]+name = "cookie_store"+version = "0.22.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "15b2c103cf610ec6cae3da84a766285b42fd16aad564758459e6ecf128c75206"+dependencies = [+ "cookie",+ "document-features",+ "idna",+ "indexmap 2.13.0",+ "log",+ "serde",+ "serde_derive",+ "serde_json",+ "time",+ "url",+]+[[package]]name = "core-foundation"version = "0.7.0"@@ -1435,6 +1426,15 @@ dependencies = ["syn 2.0.117",]+[[package]]+name = "document-features"+version = "0.2.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61"+dependencies = [+ "litrs",+]+[[package]]name = "downcast-rs"version = "1.2.1"@@ -1477,12 +1477,6 @@ version = "1.0.20"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"-[[package]]-name = "either"-version = "1.15.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"-[[package]]name = "embed-resource"version = "3.0.6"@@ -1503,6 +1497,12 @@ version = "1.2.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7"+[[package]]+name = "encode_unicode"+version = "1.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0"+[[package]]name = "encoding_rs"version = "0.8.35"@@ -1529,7 +1529,7 @@ dependencies = ["foreign-types-shared 0.3.1","libc","log",- "nom 8.0.0",+ "nom","objc2","objc2-app-kit","objc2-foundation",@@ -1900,12 +1900,6 @@ dependencies = ["percent-encoding",]-[[package]]-name = "fs_extra"-version = "1.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"-[[package]]name = "fst"version = "0.4.7"@@ -1928,6 +1922,21 @@ dependencies = ["new_debug_unreachable",]+[[package]]+name = "futures"+version = "0.3.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d"+dependencies = [+ "futures-channel",+ "futures-core",+ "futures-executor",+ "futures-io",+ "futures-sink",+ "futures-task",+ "futures-util",+]+[[package]]name = "futures-channel"version = "0.3.32"@@ -1935,6 +1944,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d"dependencies = ["futures-core",+ "futures-sink",][[package]]@@ -2002,6 +2012,7 @@ version = "0.3.32"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"dependencies = [+ "futures-channel","futures-core","futures-io","futures-macro",@@ -2413,7 +2424,7 @@ dependencies = [[[package]]name = "handy"-version = "0.8.3"+version = "0.9.0"dependencies = ["anyhow","chrono",@@ -2427,6 +2438,7 @@ dependencies = ["gtk","gtk-layer-shell","handy-keys",+ "hf-hub","hound","log","natural",@@ -2466,6 +2478,7 @@ dependencies = ["tauri-specta","tempfile","tokio",+ "transcribe-cpp","transcribe-rs","vad-rs","windows 0.61.3",@@ -2548,6 +2561,30 @@ version = "0.4.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"+[[package]]+name = "hf-hub"+version = "0.5.0"+source = "git+https://github.com/cjpais/hf-hub?branch=cancellable-downloads#63b60347570622bf898f49e7f10c2429b8dd21b6"+dependencies = [+ "dirs 6.0.0",+ "futures",+ "http",+ "indicatif",+ "libc",+ "log",+ "native-tls",+ "num_cpus",+ "rand 0.9.4",+ "reqwest 0.12.28",+ "serde",+ "serde_json",+ "thiserror 2.0.18",+ "tokio",+ "tokio-util",+ "ureq",+ "windows-sys 0.61.2",+]+[[package]]name = "hmac-sha256"version = "1.1.14"@@ -2893,6 +2930,19 @@ dependencies = ["serde_core",]+[[package]]+name = "indicatif"+version = "0.18.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "25470f23803092da7d239834776d653104d551bc4d7eacaf31e6837854b8e9eb"+dependencies = [+ "console",+ "portable-atomic",+ "unicode-width",+ "unit-prefix",+ "web-time",+]+[[package]]name = "infer"version = "0.19.0"@@ -2985,15 +3035,6 @@ version = "1.70.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"-[[package]]-name = "itertools"-version = "0.12.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"-dependencies = [- "either",-]-[[package]]name = "itoa"version = "1.0.17"@@ -3132,7 +3173,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6e9ec52138abedcc58dc17a7c6c0c00a2bdb4f3427c7f63fa97fd0d859155caf"dependencies = ["gtk-sys",- "libloading 0.7.4",+ "libloading","once_cell",]@@ -3152,16 +3193,6 @@ dependencies = ["winapi",]-[[package]]-name = "libloading"-version = "0.8.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"-dependencies = [- "cfg-if",- "windows-link 0.2.1",-]-[[package]]name = "libm"version = "0.2.16"@@ -3202,6 +3233,12 @@ version = "0.8.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77"+[[package]]+name = "litrs"+version = "1.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092"+[[package]]name = "lock_api"version = "0.4.14"@@ -3341,12 +3378,6 @@ dependencies = ["walkdir",]-[[package]]-name = "minimal-lexical"-version = "0.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"-[[package]]name = "minisign-verify"version = "0.2.4"@@ -3512,16 +3543,6 @@ version = "0.1.14"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb"-[[package]]-name = "nom"-version = "7.1.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"-dependencies = [- "memchr",- "minimal-lexical",-]-[[package]]name = "nom"version = "8.0.0"@@ -3606,6 +3627,16 @@ dependencies = ["libm",]+[[package]]+name = "num_cpus"+version = "1.17.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b"+dependencies = [+ "hermit-abi",+ "libc",+]+[[package]]name = "num_enum"version = "0.7.5"@@ -4642,6 +4673,16 @@ dependencies = ["rand_core 0.6.4",]+[[package]]+name = "rand"+version = "0.9.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "44c5af06bb1b7d3216d91932aed5265164bf384dc89cd6ba05cf59a35f5f76ea"+dependencies = [+ "rand_chacha 0.9.0",+ "rand_core 0.9.5",+]+[[package]]name = "rand_chacha"version = "0.2.2"@@ -4662,6 +4703,16 @@ dependencies = ["rand_core 0.6.4",]+[[package]]+name = "rand_chacha"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"+dependencies = [+ "ppv-lite86",+ "rand_core 0.9.5",+]+[[package]]name = "rand_core"version = "0.5.1"@@ -4680,6 +4731,15 @@ dependencies = ["getrandom 0.2.17",]+[[package]]+name = "rand_core"+version = "0.9.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"+dependencies = [+ "getrandom 0.3.4",+]+[[package]]name = "rand_hc"version = "0.2.0"@@ -5088,12 +5148,6 @@ dependencies = ["serde_json",]-[[package]]-name = "rustc-hash"-version = "2.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"-[[package]]name = "rustc_version"version = "0.4.1"@@ -5136,6 +5190,7 @@ version = "0.23.36"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c665f33d38cea657d9614f766881e4d510e0eda4239891eea56b4cadcf01801b"dependencies = [+ "log","once_cell","ring","rustls-pki-types",@@ -6990,6 +7045,27 @@ dependencies = ["once_cell",]+[[package]]+name = "transcribe-cpp"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "13b4a8ff896f7099716286aabaf9df0f78f26f7e3707d33dcd1c82a2ca0563b6"+dependencies = [+ "log",+ "thiserror 2.0.18",+ "transcribe-cpp-sys",+]++[[package]]+name = "transcribe-cpp-sys"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e06fff0397caf8032bfa911209be2ac542f5d52440832c24a6ffdf47b3788911"+dependencies = [+ "cmake",+ "serde_json",+]+[[package]]name = "transcribe-rs"version = "0.3.8"@@ -7009,7 +7085,6 @@ dependencies = ["serde","serde_json","thiserror 2.0.18",- "whisper-rs",][[package]]@@ -7051,7 +7126,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b8765b90061cba6c22b5831f675da109ae5561588290f9fa2317adab2714d5a6"dependencies = ["memchr",- "nom 8.0.0",+ "nom","petgraph",]@@ -7137,12 +7212,24 @@ version = "1.12.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"+[[package]]+name = "unicode-width"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"+[[package]]name = "unicode-xid"version = "0.2.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"+[[package]]+name = "unit-prefix"+version = "0.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "81e544489bf3d8ef66c953931f56617f423cd4b5494be343d9b9d3dda037b9a3"+[[package]]name = "untrusted"version = "0.9.0"@@ -7162,15 +7249,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "fdc97a28575b85cfedf2a7e7d3cc64b3e11bd8ac766666318003abbacc7a21fc"dependencies = ["base64 0.22.1",+ "cookie_store","der",+ "flate2","log","native-tls","percent-encoding",+ "rustls","rustls-pki-types",+ "serde",+ "serde_json","socks","ureq-proto","utf-8","webpki-root-certs",+ "webpki-roots",][[package]]@@ -7594,6 +7687,16 @@ dependencies = ["wasm-bindgen",]+[[package]]+name = "web-time"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"+dependencies = [+ "js-sys",+ "wasm-bindgen",+]+[[package]]name = "webkit2gtk"version = "2.0.2"@@ -7647,6 +7750,15 @@ dependencies = ["rustls-pki-types",]+[[package]]+name = "webpki-roots"+version = "1.0.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bf85cb06032201fa7c6f829d7db5a7e5aa45bcc0655327713065f6f0576731bf"+dependencies = [+ "rustls-pki-types",+]+[[package]]name = "webview2-com"version = "0.38.2"@@ -7689,29 +7801,6 @@ version = "0.1.12"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88"-[[package]]-name = "whisper-rs"-version = "0.16.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2088172d00f936c348d6a72f488dc2660ab3f507263a195df308a3c2383229f6"-dependencies = [- "libc",- "whisper-rs-sys",-]--[[package]]-name = "whisper-rs-sys"-version = "0.15.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6986c0fe081241d391f09b9a071fbcbb59720c3563628c3c829057cf69f2a56f"-dependencies = [- "bindgen",- "cfg-if",- "cmake",- "fs_extra",- "semver",-]-[[package]]name = "widestring"version = "1.2.1"diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.tomlindex 21783698..89620921 100644--- a/src-tauri/Cargo.toml+++ b/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "handy"-version = "0.8.3"+version = "0.9.0"description = "Handy"authors = ["cjpais"]edition = "2021"@@ -69,7 +69,11 @@ rusqlite = { version = "0.37", features = ["bundled"] }tar = "0.4.44"flate2 = "1.0"sha2 = "0.10"-transcribe-rs = { version = "0.3.8", features = ["whisper-cpp", "onnx"] }+# 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.+transcribe-rs = { version = "0.3.8", features = ["onnx"] }+transcribe-cpp = { version = "0.1.0", default-features = false }handy-keys = "0.2.4"ferrous-opencc = "0.2.3"clap = { version = "4", features = ["derive"] }@@ -77,6 +81,9 @@ specta = "=2.0.0-rc.22"specta-typescript = "0.0.9"tauri-specta = { version = "=2.0.0-rc.21", features = ["derive", "typescript"] }tauri-plugin-dialog = "2.6"+hf-hub = { git = "https://github.com/cjpais/hf-hub", branch = "cancellable-downloads", features = [+ "tokio",+] }[target.'cfg(unix)'.dependencies]signal-hook = "0.3"@@ -88,7 +95,14 @@ tauri-plugin-single-instance = "2.3.2"tauri-plugin-updater = "2.10.0"[target.'cfg(windows)'.dependencies]-transcribe-rs = { version = "0.3.3", features = ["whisper-vulkan", "ort-directml"] }+# 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",@@ -98,14 +112,39 @@ windows = { version = "0.61.3", features = [] }winreg = "0.55"+# Whisper backend per Windows arch. x86_64 ships the Vulkan GPU backend and+# keeps the dynamic-backends posture (loadable per-ISA CPU modules + Vulkan),+# where runtime ISA scoring (GGML_CPU_ALL_VARIANTS) earns the extra shipped DLLs.+#+# Windows-on-ARM is CPU-only: its Adreno Vulkan drivers are immature, and+# ggml-vulkan's shader generator (vulkan-shaders-gen) does not build under the+# clang-cl/lld toolchain that ggml's ARM CPU backend requires. dynamic-backends+# buys nothing on ARM — ALL_VARIANTS is an x86 concept, so a DL build there is+# just a single portable CPU module shipped as a DLL. So ARM links transcribe-cpp+# STATICALLY (no features = static CPU-only): the one CPU backend is compiled into+# handy.exe and we ship zero DLLs, which sidesteps the installer's per-DLL+# signtool verify entirely. CI pins -DGGML_NATIVE=OFF (see build.yml) so the+# static build targets a portable ARM baseline, not the build runner's CPU.+[target.'cfg(all(windows, target_arch = "x86_64"))'.dependencies]+transcribe-cpp = { version = "0.1.0", default-features = false, features = [+ "dynamic-backends",+ "vulkan",+] }++[target.'cfg(all(windows, target_arch = "aarch64"))'.dependencies]+transcribe-cpp = { version = "0.1.0", default-features = false }+[target.'cfg(target_os = "macos")'.dependencies]tauri-nspanel = { git = "https://github.com/ahkohd/tauri-nspanel", branch = "v2.1" }-transcribe-rs = { version = "0.3.3", features = ["whisper-metal"] }+transcribe-cpp = { version = "0.1.0", default-features = false, features = ["metal"] }[target.'cfg(target_os = "linux")'.dependencies]gtk-layer-shell = { version = "0.8", features = ["v0_6"] }gtk = "0.18"-transcribe-rs = { version = "0.3.3", features = ["whisper-vulkan"] }+transcribe-cpp = { version = "0.1.0", default-features = false, features = [+ "dynamic-backends",+ "vulkan",+] }[patch.crates-io]tauri-runtime = { git = "https://github.com/cjpais/tauri.git", branch = "handy-2.10.2" }diff --git a/src-tauri/build.rs b/src-tauri/build.rsindex e43baf65..bd378506 100644--- a/src-tauri/build.rs+++ b/src-tauri/build.rs@@ -4,9 +4,159 @@ fn main() {generate_tray_translations();+ // Linux ships transcribe-cpp as a shared libtranscribe + loadable ggml+ // backend modules (the `dynamic-backends` posture in Cargo.toml). Bake an+ // $ORIGIN-relative rpath into the `handy` binary so it finds libtranscribe+ // next to it in the package — AppImage `usr/bin/handy` -> `usr/lib`, and+ // deb/rpm `/usr/bin/handy` -> `/usr/lib`. transcribe's+ // init_backends_default() then loads the ggml modules co-located there.+ // (Windows resolves DLLs from the exe directory, so it needs no rpath;+ // macOS links transcribe-cpp statically via the `metal` feature.)+ if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("linux") {+ println!("cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN/../lib");+ }++ // Stage transcribe-cpp's shared runtime libraries (and the dlopen'd ggml+ // backend modules) for the installer. Self-gates on the shared /+ // dynamic-backends posture used by Linux and Windows; it's a no-op for the+ // 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();+tauri_build::build()}+/// 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+/// both naming schemes.+///+/// Source dirs arrive as `DEP_TRANSCRIBE_CPP_*`: the sys crate (`links =+/// "transcribe"`) emits its install dirs and the wrapper (`links =+/// "transcribe_cpp"`) forwards them one hop to us — the only way that metadata+/// crosses cargo's one-hop `links` boundary. The keys exist only in a shared /+/// dynamic-backends build; a static build (macOS `metal`) leaves them unset, so+/// this is a no-op there. `RUNTIME_DIR` (core libs) and `MODULE_DIR` (dlopen'd+/// ggml modules) may be the same dir — the `BTreeSet` below dedups them.+///+/// Where the staged dir lands: Windows bundles it beside `handy.exe` (DLLs resolve+/// from the exe dir); Linux maps it into `/usr/lib`, on the binary's+/// `$ORIGIN/../lib` rpath.+fn stage_transcribe_runtime_libs() {+ use std::collections::BTreeSet;+ use std::path::PathBuf;++ println!("cargo:rerun-if-env-changed=DEP_TRANSCRIBE_CPP_RUNTIME_DIR");+ println!("cargo:rerun-if-env-changed=DEP_TRANSCRIBE_CPP_MODULE_DIR");++ // Present only in a shared posture. A static build has nothing to ship.+ let Some(runtime_dir) = std::env::var_os("DEP_TRANSCRIBE_CPP_RUNTIME_DIR") else {+ return;+ };++ // transcribe-cpp publishes its runtime layout in up to two directories:+ // RUNTIME_DIR : the shared libs to load (transcribe + core ggml / ggml-base)+ // MODULE_DIR : the dlopen'd ggml backend modules (the per-ISA ggml-cpu-*+ // and ggml-vulkan), dynamic-backends only. Often — but not+ // always — the SAME directory as RUNTIME_DIR (it is on Linux).+ // BOTH must sit next to the executable, or init_backends_default() finds the+ // core libs but zero loadable compute backends and registers no devices.+ let mut dirs = BTreeSet::new();+ dirs.insert(PathBuf::from(runtime_dir));+ if let Some(module_dir) = std::env::var_os("DEP_TRANSCRIBE_CPP_MODULE_DIR") {+ dirs.insert(PathBuf::from(module_dir));+ }++ let dest = PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap()).join("transcribe-libs");+ // Recreate clean so a renamed or dropped ggml module can never linger in the+ // package from a previous build.+ let _ = std::fs::remove_dir_all(&dest);+ std::fs::create_dir_all(&dest).expect("create transcribe-libs staging dir");++ let mut copied = 0usize;+ for dir in &dirs {+ println!("cargo:rerun-if-changed={}", dir.display());+ for entry in std::fs::read_dir(dir)+ .unwrap_or_else(|e| panic!("read {}: {e}", dir.display()))+ .flatten()+ {+ let src = entry.path();+ let name = src.file_name().and_then(|s| s.to_str()).unwrap_or("");+ // Match by NAME, not extension: Linux versions its libs+ // (libtranscribe.so.0, .so.0.0.7) and the loader needs the SONAME, so+ // an extension-only filter would copy just the bare dev symlink and+ // ship a broken package. `fs::copy` dereferences the version symlinks+ // into real files.+ let is_lib = name.ends_with(".dll")+ || name.ends_with(".dylib")+ || name.ends_with(".so")+ || name.contains(".so.");+ if is_lib {+ std::fs::copy(&src, dest.join(name))+ .unwrap_or_else(|e| panic!("copy {}: {e}", src.display()));+ copied += 1;+ }+ }+ }+ if copied == 0 {+ panic!(+ "no transcribe-cpp runtime libraries found under {dirs:?}; a shared / \+ dynamic-backends build must ship them or the app registers zero \+ compute devices"+ );+ }+ println!("cargo:warning=Staged {copied} transcribe-cpp runtime library file(s)");+}+/// Generate tray menu translations from frontend locale files.////// Source of truth: src/i18n/locales/*/translation.jsondiff --git a/src-tauri/src/actions.rs b/src-tauri/src/actions.rsindex 320bd9be..dbc83baa 100644--- a/src-tauri/src/actions.rs+++ b/src-tauri/src/actions.rs@@ -1,11 +1,13 @@#[cfg(all(target_os = "macos", target_arch = "aarch64"))]use crate::apple_intelligence;use crate::audio_feedback::{play_feedback_sound, play_feedback_sound_blocking, SoundType};-use crate::audio_toolkit::{is_microphone_access_denied, is_no_input_device_error};+use crate::audio_toolkit::{is_microphone_access_denied, is_no_input_device_error, VadPolicy};use crate::managers::audio::AudioRecordingManager;use crate::managers::history::HistoryManager;+use crate::managers::model::ModelManager;+use crate::managers::transcription::StreamWorkKind;use crate::managers::transcription::TranscriptionManager;-use crate::settings::{get_settings, AppSettings, APPLE_INTELLIGENCE_PROVIDER_ID};+use crate::settings::{get_settings, AppSettings, OverlayStyle, APPLE_INTELLIGENCE_PROVIDER_ID};use crate::shortcut;use crate::tray::{change_tray_icon, TrayIconState};use crate::utils::{@@ -311,21 +313,25 @@ async fn post_process_transcription(settings: &AppSettings, transcription: &str)}async fn maybe_convert_chinese_variant(- settings: &AppSettings,+ effective_language: &str,transcription: &str,) -> Option<String> {- // Check if language is set to Simplified or Traditional Chinese- let is_simplified = settings.selected_language == "zh-Hans";- let is_traditional = settings.selected_language == "zh-Hant";+ // Gate on the language the model actually transcribed in (the effective+ // language), not the persisted intent. A leftover zh-Hans/zh-Hant intent+ // from a previously selected model must not run OpenCC S2T/T2S over output a+ // non-Chinese model produced — that would silently rewrite any shared CJK+ // characters (e.g. Japanese kanji) in the result.+ let is_simplified = effective_language == "zh-Hans";+ let is_traditional = effective_language == "zh-Hant";if !is_simplified && !is_traditional {- debug!("selected_language is not Simplified or Traditional Chinese; skipping translation");+ debug!("effective language is not Simplified or Traditional Chinese; skipping conversion");return None;}debug!(- "Starting Chinese translation using OpenCC for language: {}",- settings.selected_language+ "Starting Chinese variant conversion using OpenCC for language: {}",+ effective_language);// Use OpenCC to convert based on selected language@@ -360,6 +366,27 @@ pub(crate) struct ProcessedTranscription {pub post_process_prompt: Option<String>,}+/// Resolve the persisted language *intent* into the language the currently-loaded+/// model will actually use — the same capability-aware coercion the transcription+/// paths apply (see [`crate::managers::model::effective_language`]). Post-processing+/// resolves it independently so it agrees with the language the transcription ran+/// in, without threading a value through the pipeline.+fn resolve_effective_language(app: &AppHandle, settings: &AppSettings) -> String {+ let tm = app.state::<Arc<TranscriptionManager>>();+ let model_manager = app.state::<Arc<ModelManager>>();+ let active_model = tm+ .get_current_model()+ .unwrap_or_else(|| settings.selected_model.clone());+ match model_manager.get_model_info(&active_model) {+ Some(info) => crate::managers::model::effective_language(+ &settings.selected_language,+ &info.supported_languages,+ info.supports_language_detection,+ ),+ None => settings.selected_language.clone(),+ }+}+pub(crate) async fn process_transcription_output(app: &AppHandle,transcription: &str,@@ -370,7 +397,13 @@ pub(crate) async fn process_transcription_output(let mut post_processed_text: Option<String> = None;let mut post_process_prompt: Option<String> = None;- if let Some(converted_text) = maybe_convert_chinese_variant(&settings, transcription).await {+ // Resolve the language the transcription actually ran in (the persisted+ // intent coerced against the loaded model's capabilities) so OpenCC keys off+ // the effective language rather than a possibly-stale intent.+ let effective_language = resolve_effective_language(app, &settings);+ if let Some(converted_text) =+ maybe_convert_chinese_variant(&effective_language, transcription).await+ {final_text = converted_text;}@@ -420,11 +453,41 @@ impl ShortcutAction for TranscribeAction {let binding_id = binding_id.to_string();change_tray_icon(app, TrayIconState::Recording);- show_recording_overlay(app);// Get the microphone mode to determine audio feedback timinglet settings = get_settings(app);let is_always_on = settings.always_on_microphone;++ let selected_model_info = app+ .state::<Arc<ModelManager>>()+ .get_model_info(&settings.selected_model);++ // Use the app-facing model capability as the single pre-recording source+ // for live streaming decisions. Unknown support is represented as false+ // until the model registry is updated by discovery or runtime load.+ let model_supports_streaming = selected_model_info+ .as_ref()+ .map(|m| m.supports_streaming)+ .unwrap_or(false);+ let vad_policy = if !settings.vad_enabled {+ VadPolicy::Disabled+ } else if model_supports_streaming {+ VadPolicy::Streaming+ } else {+ VadPolicy::Offline+ };+ if model_supports_streaming {+ tm.start_stream();+ }++ // Sizing the overlay follows the same advertised capability. A model that+ // doesn't stream (or whose capability is not known yet) gets the compact+ // pill instead of an oversized transparent live window.+ match settings.overlay_style {+ OverlayStyle::Live if model_supports_streaming => utils::show_streaming_overlay(app),+ OverlayStyle::Live | OverlayStyle::Minimal => show_recording_overlay(app),+ OverlayStyle::None => {} // show_overlay_state no-ops on None anyway+ }debug!("Microphone mode - always_on: {}", is_always_on);let mut recording_error: Option<String> = None;@@ -440,7 +503,7 @@ impl ShortcutAction for TranscribeAction {rm_clone.apply_mute();});- if let Err(e) = rm.try_start_recording(&binding_id) {+ if let Err(e) = rm.try_start_recording(&binding_id, vad_policy) {debug!("Recording failed: {}", e);recording_error = Some(e);}@@ -449,7 +512,7 @@ impl ShortcutAction for TranscribeAction {// This allows the microphone to be activated before playing the sounddebug!("On-demand mode: Starting recording first, then audio feedback");let recording_start_time = Instant::now();- match rm.try_start_recording(&binding_id) {+ match rm.try_start_recording(&binding_id, vad_policy) {Ok(()) => {debug!("Recording started in {:?}", recording_start_time.elapsed());// Small delay to ensure microphone stream is active@@ -477,6 +540,7 @@ impl ShortcutAction for TranscribeAction {} else {// Starting failed (for example due to blocked microphone permissions).// Revert UI state so we don't stay stuck in the recording overlay.+ tm.cancel_stream();utils::hide_recording_overlay(app);change_tray_icon(app, TrayIconState::Idle);if let Some(err) = recording_error {@@ -516,7 +580,17 @@ impl ShortcutAction for TranscribeAction {let hm = Arc::clone(&app.state::<Arc<HistoryManager>>());change_tray_icon(app, TrayIconState::Transcribing);- show_transcribing_overlay(app);+ // Stop should give immediate visual feedback. Live streaming can keep+ // the larger panel, but it still switches from listening to a working+ // spinner while the stream finalizes. Non-streaming paths use the+ // compact transcribing pill (None no-ops in show_*).+ let style = get_settings(app).overlay_style;+ match (style, tm.is_streaming()) {+ (OverlayStyle::Live, true) => {+ tm.emit_stream_working(StreamWorkKind::Transcribing);+ }+ _ => show_transcribing_overlay(app),+ }// Unmute before playing audio feedback so the stop sound is audiblerm.remove_mute();@@ -526,6 +600,7 @@ impl ShortcutAction for TranscribeAction {let binding_id = binding_id.to_string(); // Clone binding_id for the async tasklet post_process = self.post_process;+ let cancel_generation = rm.cancel_generation();tauri::async_runtime::spawn(async move {let _guard = FinishGuard(ah.clone());@@ -535,15 +610,26 @@ impl ShortcutAction for TranscribeAction {);let stop_recording_time = Instant::now();- if let Some(samples) = rm.stop_recording(&binding_id) {+ if let Some(samples) = rm.stop_recording(&binding_id, cancel_generation) {debug!("Recording stopped and samples retrieved in {:?}, sample count: {}",stop_recording_time.elapsed(),samples.len());+ if rm.was_cancelled_since(cancel_generation) {+ debug!("Transcription operation cancelled after recording stop");+ tm.cancel_stream();+ utils::hide_recording_overlay(&ah);+ change_tray_icon(&ah, TrayIconState::Idle);+ return;+ }+if samples.is_empty() {debug!("Recording produced no audio samples; skipping persistence");+ // Tear down any streaming worker so its channel doesn't leak+ // and block the next start_stream.+ tm.cancel_stream();utils::hide_recording_overlay(&ah);change_tray_icon(&ah, TrayIconState::Idle);} else {@@ -557,9 +643,21 @@ impl ShortcutAction for TranscribeAction {crate::audio_toolkit::save_wav_file(&wav_path, &samples_for_wav)});- // Transcribe concurrently with WAV save+ // Transcribe concurrently with WAV save. If a live stream was+ // running, finalize it and use its text (all audio was already+ // fed to the stream); otherwise batch-transcribe the samples.let transcription_time = Instant::now();- let transcription_result = tm.transcribe(samples);+ let transcription_result = match tm.finalize_stream() {+ // A finalized stream with usable text wins. An empty result+ // (no active stream, produced nothing, or a finalize error+ // after the engine was returned) falls back to a full batch+ // transcription of the same audio. A finalize timeout is+ // surfaced instead — the worker may still hold the engine,+ // so a batch fallback would contend with it.+ Ok(Some(text)) if !text.trim().is_empty() => Ok(text),+ Ok(_) => tm.transcribe(samples),+ Err(err) => Err(err),+ };// Await WAV save and verifylet wav_saved = match wav_handle.await {@@ -585,6 +683,13 @@ impl ShortcutAction for TranscribeAction {}};+ if rm.was_cancelled_since(cancel_generation) {+ debug!("Transcription operation cancelled before output handling");+ utils::hide_recording_overlay(&ah);+ change_tray_icon(&ah, TrayIconState::Idle);+ return;+ }+match transcription_result {Ok(transcription) => {debug!(@@ -594,12 +699,23 @@ impl ShortcutAction for TranscribeAction {);if post_process {- show_processing_overlay(&ah);+ if style == OverlayStyle::Live {+ tm.emit_stream_working(StreamWorkKind::Polishing);+ } else {+ show_processing_overlay(&ah);+ }}let processed =process_transcription_output(&ah, &transcription, post_process).await;+ if rm.was_cancelled_since(cancel_generation) {+ debug!("Transcription operation cancelled before paste");+ utils::hide_recording_overlay(&ah);+ change_tray_icon(&ah, TrayIconState::Idle);+ return;+ }+// Save to history if WAV was savedif wav_saved {if let Err(err) = hm.save_entry(@@ -620,7 +736,15 @@ impl ShortcutAction for TranscribeAction {let ah_clone = ah.clone();let paste_time = Instant::now();let final_text = processed.final_text;+ let rm_for_paste = Arc::clone(&rm);ah.run_on_main_thread(move || {+ if rm_for_paste.was_cancelled_since(cancel_generation) {+ debug!("Transcription operation cancelled before paste");+ utils::hide_recording_overlay(&ah_clone);+ change_tray_icon(&ah_clone, TrayIconState::Idle);+ return;+ }+match utils::paste(final_text, ah_clone.clone()) {Ok(()) => debug!("Text pasted successfully in {:?}",@@ -642,7 +766,19 @@ impl ShortcutAction for TranscribeAction {}}Err(err) => {- debug!("Global Shortcut Transcription error: {}", err);+ if rm.was_cancelled_since(cancel_generation) {+ debug!(+ "Transcription operation cancelled after transcription error"+ );+ utils::hide_recording_overlay(&ah);+ change_tray_icon(&ah, TrayIconState::Idle);+ return;+ }++ error!("Transcription failed: {}", err);+ // Surface the failure to the UI (toast). The full+ // message is also in handy.log via the line above.+ let _ = ah.emit("transcription-error", err.to_string());// Save entry with empty text so user can retryif wav_saved {if let Err(save_err) = hm.save_entry(@@ -662,6 +798,8 @@ impl ShortcutAction for TranscribeAction {}} else {debug!("No samples retrieved from recording stop");+ // Tear down any streaming worker so its channel doesn't leak.+ tm.cancel_stream();utils::hide_recording_overlay(&ah);change_tray_icon(&ah, TrayIconState::Idle);}diff --git a/src-tauri/src/apple_intelligence.rs b/src-tauri/src/apple_intelligence.rsindex 753ddce2..1008f031 100644--- a/src-tauri/src/apple_intelligence.rs+++ b/src-tauri/src/apple_intelligence.rs@@ -60,7 +60,7 @@ pub fn process_text_with_system_prompt(let error_c_str = if !response.error_message.is_null() {unsafe { CStr::from_ptr(response.error_message) }} else {- CStr::from_bytes_with_nul(b"Unknown error\0").unwrap()+ c"Unknown error"};let error_msg = error_c_str.to_string_lossy().into_owned();Err(error_msg)diff --git a/src-tauri/src/audio_toolkit/audio/mod.rs b/src-tauri/src/audio_toolkit/audio/mod.rsindex f973dae0..40ef7f47 100644--- a/src-tauri/src/audio_toolkit/audio/mod.rs+++ b/src-tauri/src/audio_toolkit/audio/mod.rs@@ -6,7 +6,9 @@ mod utils;mod visualizer;pub use device::{list_input_devices, list_output_devices, CpalDeviceInfo};-pub use recorder::{is_microphone_access_denied, is_no_input_device_error, AudioRecorder};+pub use recorder::{+ is_microphone_access_denied, is_no_input_device_error, AudioRecorder, VadPolicy,+};pub use resampler::FrameResampler;pub use utils::{read_wav_samples, save_wav_file, verify_wav_file};pub use visualizer::AudioVisualiser;diff --git a/src-tauri/src/audio_toolkit/audio/recorder.rs b/src-tauri/src/audio_toolkit/audio/recorder.rsindex 767aca58..c8808de2 100644--- a/src-tauri/src/audio_toolkit/audio/recorder.rs+++ b/src-tauri/src/audio_toolkit/audio/recorder.rs@@ -20,7 +20,7 @@ use crate::audio_toolkit::{};enum Cmd {- Start,+ Start(VadPolicy),Stop(mpsc::Sender<Vec<f32>>),Shutdown,}@@ -30,12 +30,50 @@ enum AudioChunk {EndOfStream,}+/// How 16 kHz mono frames should be filtered for one recording session.+#[derive(Clone, Copy, Debug, PartialEq, Eq)]+pub enum VadPolicy {+ /// Bypass VAD and forward every frame.+ Disabled,+ /// Current offline-tuned VAD profile.+ Offline,+ /// VAD profile with a longer post-speech tail for streaming-capable models.+ Streaming,+}++/// A single VAD engine plus the two hangover-tail lengths its smoothing wrapper+/// should use. The offline and streaming policies are never active+/// concurrently, so one detector is reconfigured per session (see `Cmd::Start`)+/// rather than kept as two resident engines.+#[derive(Clone)]+struct VadConfig {+ detector: Arc<Mutex<Box<dyn vad::VoiceActivityDetector>>>,+ offline_hangover_frames: usize,+ streaming_hangover_frames: usize,+}++impl VadConfig {+ /// Post-speech hangover tail (in 30 ms frames) for the given policy.+ /// `Disabled` never reaches the detector, so it maps to the offline value.+ fn hangover_for(&self, policy: VadPolicy) -> usize {+ match policy {+ VadPolicy::Streaming => self.streaming_hangover_frames,+ VadPolicy::Offline | VadPolicy::Disabled => self.offline_hangover_frames,+ }+ }+}++/// Callback invoked with each 16 kHz mono frame that passes the active capture+/// policy while recording. Used to feed a live streaming transcription as audio arrives.+pub type AudioFrameCallback = Arc<dyn Fn(&[f32]) + Send + Sync + 'static>;+pub struct AudioRecorder {device: Option<Device>,cmd_tx: Option<mpsc::Sender<Cmd>>,worker_handle: Option<std::thread::JoinHandle<()>>,- vad: Option<Arc<Mutex<Box<dyn vad::VoiceActivityDetector>>>>,+ vad: Option<VadConfig>,level_cb: Option<Arc<dyn Fn(Vec<f32>) + Send + Sync + 'static>>,+ audio_cb: Option<AudioFrameCallback>,}impl AudioRecorder {@@ -46,11 +84,24 @@ impl AudioRecorder {worker_handle: None,vad: None,level_cb: None,+ audio_cb: None,})}- pub fn with_vad(mut self, vad: Box<dyn VoiceActivityDetector>) -> Self {- self.vad = Some(Arc::new(Mutex::new(vad)));+ /// Attach a single VAD engine, reconfigured per session for the offline vs+ /// streaming hangover tail. The two policies are mutually exclusive within a+ /// recording, so one engine covers both instead of two resident instances.+ pub fn with_vad(+ mut self,+ detector: Box<dyn VoiceActivityDetector>,+ offline_hangover_frames: usize,+ streaming_hangover_frames: usize,+ ) -> Self {+ self.vad = Some(VadConfig {+ detector: Arc::new(Mutex::new(detector)),+ offline_hangover_frames,+ streaming_hangover_frames,+ });self}@@ -62,6 +113,18 @@ impl AudioRecorder {self}+ /// Register a callback that receives real-time 16 kHz frames after the active+ /// VAD policy has been applied. Frames arrive in real time, in order, on the+ /// recorder's consumer thread — keep the callback cheap (e.g. forward to a+ /// channel) so it never stalls capture.+ pub fn with_audio_callback<F>(mut self, cb: F) -> Self+ where+ F: Fn(&[f32]) + Send + Sync + 'static,+ {+ self.audio_cb = Some(Arc::new(cb));+ self+ }+pub fn open(&mut self, device: Option<Device>) -> Result<(), Box<dyn std::error::Error>> {if self.worker_handle.is_some() {return Ok(()); // already open@@ -83,6 +146,8 @@ impl AudioRecorder {let vad = self.vad.clone();// Move the optional level callback into the worker threadlet level_cb = self.level_cb.clone();+ // Move the optional real-time audio frame callback into the worker thread+ let audio_cb = self.audio_cb.clone();let worker = std::thread::spawn(move || {let stop_flag = Arc::new(AtomicBool::new(false));@@ -159,7 +224,15 @@ impl AudioRecorder {Ok((stream, sample_rate)) => {let _ = init_tx.send(Ok(()));// Keep the stream alive while we process samples.- run_consumer(sample_rate, vad, sample_rx, cmd_rx, level_cb, stop_flag);+ run_consumer(+ sample_rate,+ vad,+ sample_rx,+ cmd_rx,+ level_cb,+ audio_cb,+ stop_flag,+ );drop(stream);}Err(error_message) => {@@ -187,17 +260,16 @@ impl AudioRecorder {}Err(recv_error) => {let _ = worker.join();- Err(Box::new(Error::new(- std::io::ErrorKind::Other,- format!("Failed to initialize microphone worker: {recv_error}"),- )))+ Err(Box::new(Error::other(format!(+ "Failed to initialize microphone worker: {recv_error}"+ ))))}}}- pub fn start(&self) -> Result<(), Box<dyn std::error::Error>> {+ pub fn start(&self, vad_policy: VadPolicy) -> Result<(), Box<dyn std::error::Error>> {if let Some(tx) = &self.cmd_tx {- tx.send(Cmd::Start)?;+ tx.send(Cmd::Start(vad_policy))?;}Ok(())}@@ -392,12 +464,14 @@ mod tests {}}+#[allow(clippy::too_many_arguments)]fn run_consumer(in_sample_rate: u32,- vad: Option<Arc<Mutex<Box<dyn vad::VoiceActivityDetector>>>>,+ vad: Option<VadConfig>,sample_rx: mpsc::Receiver<AudioChunk>,cmd_rx: mpsc::Receiver<Cmd>,level_cb: Option<Arc<dyn Fn(Vec<f32>) + Send + Sync + 'static>>,+ audio_cb: Option<AudioFrameCallback>,stop_flag: Arc<AtomicBool>,) {let mut frame_resampler = FrameResampler::new(@@ -408,6 +482,7 @@ fn run_consumer(let mut processed_samples = Vec::<f32>::new();let mut recording = false;+ let mut vad_policy = VadPolicy::Offline;// ---------- spectrum visualisation setup ---------------------------- //const BUCKETS: usize = 16;@@ -433,30 +508,40 @@ fn run_consumer(fn handle_frame(samples: &[f32],recording: bool,- vad: &Option<Arc<Mutex<Box<dyn vad::VoiceActivityDetector>>>>,+ vad_policy: VadPolicy,+ vad: &Option<VadConfig>,+ audio_cb: &Option<AudioFrameCallback>,out_buf: &mut Vec<f32>,) {if !recording {return;}- if let Some(vad_arc) = vad {- let mut det = vad_arc.lock().unwrap();+ let mut emit = |buf: &[f32]| {+ out_buf.extend_from_slice(buf);+ if let Some(cb) = audio_cb {+ cb(buf);+ }+ };++ if vad_policy == VadPolicy::Disabled {+ emit(samples);+ return;+ }++ if let Some(cfg) = vad {+ let mut det = cfg.detector.lock().unwrap();match det.push_frame(samples).unwrap_or(VadFrame::Speech(samples)) {- VadFrame::Speech(buf) => out_buf.extend_from_slice(buf),+ VadFrame::Speech(buf) => emit(buf),VadFrame::Noise => {}}} else {- out_buf.extend_from_slice(samples);+ emit(samples);}}- loop {- let chunk = match sample_rx.recv() {- Ok(c) => c,- Err(_) => break, // stream closed- };-+ // Runs until the stream closes and `recv` returns `Err`.+ while let Ok(chunk) = sample_rx.recv() {let raw = match chunk {AudioChunk::Samples(s) => s,AudioChunk::EndOfStream => continue,@@ -471,19 +556,34 @@ fn run_consumer(// ---------- existing pipeline ------------------------------------ //frame_resampler.push(&raw, &mut |frame: &[f32]| {- handle_frame(frame, recording, &vad, &mut processed_samples)+ handle_frame(+ frame,+ recording,+ vad_policy,+ &vad,+ &audio_cb,+ &mut processed_samples,+ )});// non-blocking check for a commandwhile let Ok(cmd) = cmd_rx.try_recv() {match cmd {- Cmd::Start => {+ Cmd::Start(policy) => {stop_flag.store(false, Ordering::Relaxed);+ vad_policy = policy;processed_samples.clear();recording = true;visualizer.reset();- if let Some(v) = &vad {- v.lock().unwrap().reset();+ // Reconfigure the single VAD engine for this session's policy+ // and clear its smoothing + recurrent state before it sees+ // any frames.+ if vad_policy != VadPolicy::Disabled {+ if let Some(cfg) = &vad {+ let mut det = cfg.detector.lock().unwrap();+ det.set_hangover_frames(cfg.hangover_for(vad_policy));+ det.reset();+ }}}Cmd::Stop(reply_tx) => {@@ -498,7 +598,14 @@ fn run_consumer(match sample_rx.recv_timeout(Duration::from_secs(2)) {Ok(AudioChunk::Samples(remaining)) => {frame_resampler.push(&remaining, &mut |frame: &[f32]| {- handle_frame(frame, true, &vad, &mut processed_samples)+ handle_frame(+ frame,+ true,+ vad_policy,+ &vad,+ &audio_cb,+ &mut processed_samples,+ )});}Ok(AudioChunk::EndOfStream) => break,@@ -510,7 +617,14 @@ fn run_consumer(}frame_resampler.finish(&mut |frame: &[f32]| {- handle_frame(frame, true, &vad, &mut processed_samples)+ handle_frame(+ frame,+ true,+ vad_policy,+ &vad,+ &audio_cb,+ &mut processed_samples,+ )});let _ = reply_tx.send(std::mem::take(&mut processed_samples));diff --git a/src-tauri/src/audio_toolkit/bin/cli.rs b/src-tauri/src/audio_toolkit/bin/cli.rsindex a99e5a64..ced616ce 100644--- a/src-tauri/src/audio_toolkit/bin/cli.rs+++ b/src-tauri/src/audio_toolkit/bin/cli.rs@@ -3,8 +3,11 @@ use std::io::{self, Write};use handy_app_lib::audio_toolkit::{audio::{list_input_devices, CpalDeviceInfo},- vad::SmoothedVad,- AudioRecorder, SileroVad,+ vad::{+ SmoothedVad, VAD_OFFLINE_HANGOVER_FRAMES, VAD_ONSET_FRAMES, VAD_PREFILL_FRAMES,+ VAD_STREAMING_HANGOVER_FRAMES,+ },+ AudioRecorder, SileroVad, VadPolicy,};#[derive(Debug, Clone, PartialEq)]@@ -110,7 +113,7 @@ impl RecorderState {self.current_device_index = device_index;println!("Opened recorder in Always-On mode");}- self.recorder.start()?;+ self.recorder.start(VadPolicy::Offline)?;}RecorderMode::OnDemand => {// In on-demand mode, open for each recording@@ -120,7 +123,7 @@ impl RecorderState {self.recorder.open(device)?;self.is_open = true;self.current_device_index = device_index;- self.recorder.start()?;+ self.recorder.start(VadPolicy::Offline)?;println!("Opened and started recorder in On-Demand mode");}}@@ -176,8 +179,17 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {print_help();let silero = SileroVad::new("./resources/models/silero_vad_v4.onnx", 0.5)?;- let smoothed_vad = SmoothedVad::new(Box::new(silero), 15, 15);- let recorder = AudioRecorder::new()?.with_vad(Box::new(smoothed_vad));+ let smoothed_vad = SmoothedVad::new(+ Box::new(silero),+ VAD_PREFILL_FRAMES,+ VAD_OFFLINE_HANGOVER_FRAMES,+ VAD_ONSET_FRAMES,+ );+ let recorder = AudioRecorder::new()?.with_vad(+ Box::new(smoothed_vad),+ VAD_OFFLINE_HANGOVER_FRAMES,+ VAD_STREAMING_HANGOVER_FRAMES,+ );let mut state = RecorderState::new(recorder);let mut devices = list_input_devices()?;diff --git a/src-tauri/src/audio_toolkit/mod.rs b/src-tauri/src/audio_toolkit/mod.rsindex ddfc494f..291753a2 100644--- a/src-tauri/src/audio_toolkit/mod.rs+++ b/src-tauri/src/audio_toolkit/mod.rs@@ -6,7 +6,7 @@ pub mod vad;pub use audio::{is_microphone_access_denied, is_no_input_device_error, list_input_devices, list_output_devices,- read_wav_samples, save_wav_file, verify_wav_file, AudioRecorder, CpalDeviceInfo,+ read_wav_samples, save_wav_file, verify_wav_file, AudioRecorder, CpalDeviceInfo, VadPolicy,};pub use text::{apply_custom_words, filter_transcription_output};pub use utils::get_cpal_host;diff --git a/src-tauri/src/audio_toolkit/text.rs b/src-tauri/src/audio_toolkit/text.rsindex 2cd31718..45abb2dc 100644--- a/src-tauri/src/audio_toolkit/text.rs+++ b/src-tauri/src/audio_toolkit/text.rs@@ -159,7 +159,7 @@ pub fn apply_custom_words(text: &str, custom_words: &[String], threshold: f64) -fn preserve_case_pattern(original: &str, replacement: &str) -> String {if original.chars().all(|c| c.is_uppercase()) {replacement.to_uppercase()- } else if original.chars().next().map_or(false, |c| c.is_uppercase()) {+ } else if original.chars().next().is_some_and(|c| c.is_uppercase()) {let mut chars: Vec<char> = replacement.chars().collect();if let Some(first_char) = chars.get_mut(0) {*first_char = first_char.to_uppercase().next().unwrap_or(*first_char);diff --git a/src-tauri/src/audio_toolkit/vad/mod.rs b/src-tauri/src/audio_toolkit/vad/mod.rsindex 7283e0dc..02485a4f 100644--- a/src-tauri/src/audio_toolkit/vad/mod.rs+++ b/src-tauri/src/audio_toolkit/vad/mod.rs@@ -1,5 +1,10 @@use anyhow::Result;+pub const VAD_PREFILL_FRAMES: usize = 15;+pub const VAD_OFFLINE_HANGOVER_FRAMES: usize = 15;+pub const VAD_STREAMING_HANGOVER_FRAMES: usize = 55;+pub const VAD_ONSET_FRAMES: usize = 2;+pub enum VadFrame<'a> {/// Speech – may aggregate several frames (prefill + current + hangover)Speech(&'a [f32]),@@ -22,6 +27,10 @@ pub trait VoiceActivityDetector: Send + Sync {Ok(self.push_frame(frame)?.is_speech())}+ /// Set the post-speech hangover tail (in 30 ms frames) applied to+ /// subsequent frames. Detectors without a smoothing tail can ignore this.+ fn set_hangover_frames(&mut self, _frames: usize) {}+fn reset(&mut self) {}}diff --git a/src-tauri/src/audio_toolkit/vad/silero.rs b/src-tauri/src/audio_toolkit/vad/silero.rsindex 2deec7ec..b301e833 100644--- a/src-tauri/src/audio_toolkit/vad/silero.rs+++ b/src-tauri/src/audio_toolkit/vad/silero.rs@@ -49,4 +49,10 @@ impl VoiceActivityDetector for SileroVad {Ok(VadFrame::Noise)}}++ fn reset(&mut self) {+ // Clear the Silero LSTM hidden/cell state so a new session doesn't+ // inherit recurrent context from the previous recording.+ self.engine.reset();+ }}diff --git a/src-tauri/src/audio_toolkit/vad/smoothed.rs b/src-tauri/src/audio_toolkit/vad/smoothed.rsindex c0e46162..52de4d74 100644--- a/src-tauri/src/audio_toolkit/vad/smoothed.rs+++ b/src-tauri/src/audio_toolkit/vad/smoothed.rs@@ -95,7 +95,12 @@ impl VoiceActivityDetector for SmoothedVad {}}+ fn set_hangover_frames(&mut self, frames: usize) {+ self.hangover_frames = frames;+ }+fn reset(&mut self) {+ self.inner_vad.reset();self.frame_buffer.clear();self.hangover_counter = 0;self.onset_counter = 0;diff --git a/src-tauri/src/catalog/catalog.json b/src-tauri/src/catalog/catalog.jsonnew file mode 100644index 00000000..a1b3e9c3--- /dev/null+++ b/src-tauri/src/catalog/catalog.json@@ -0,0 +1,3381 @@+{+ "catalog_version": 1,+ "generated_at": "2026-06-29T23:58:27+00:00",+ "models": [+ {+ "id": "handy-computer/parakeet-unified-en-0.6b-gguf",+ "slug": "parakeet-unified-en-0.6b",+ "name": "Parakeet Unified EN 0.6B",+ "architecture": "parakeet",+ "family": "parakeet",+ "parameters": "0.6B",+ "description": "Fast, accurate English with live transcription.",+ "base_model": "nvidia/parakeet-unified-en-0.6b",+ "license": "cc-by-4.0",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": true,+ "translate": false,+ "lang_detect": false,+ "timestamps": "token"+ },+ "speed_score": 79,+ "accuracy_score": 90,+ "files": [+ {+ "filename": "parakeet-unified-en-0.6b-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 477274496+ },+ {+ "filename": "parakeet-unified-en-0.6b-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 540795264+ },+ {+ "filename": "parakeet-unified-en-0.6b-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 602191232+ },+ {+ "filename": "parakeet-unified-en-0.6b-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 731357568+ },+ {+ "filename": "parakeet-unified-en-0.6b-F16.gguf",+ "quant": "F16",+ "size_bytes": 1239114240+ },+ {+ "filename": "parakeet-unified-en-0.6b-F32.gguf",+ "quant": "F32",+ "size_bytes": 2473323520+ }+ ],+ "default_quant": "Q8_0",+ "recommended": true,+ "recommended_rank": 1+ },+ {+ "id": "handy-computer/nemotron-3.5-asr-streaming-0.6b-gguf",+ "slug": "nemotron-3.5-asr-streaming-0.6b",+ "name": "Nemotron Streaming 3.5",+ "architecture": "parakeet",+ "family": "nemotron",+ "parameters": "0.6B",+ "description": "Live multilingual transcription across 28 languages.",+ "base_model": "nvidia/nemotron-3.5-asr-streaming-0.6b",+ "license": "other",+ "language_count": 28,+ "languages": ["en", "es", "fr", "it", "pt", "nl", "de", "tr", "ru", "ar", "hi", "ja", "ko", "vi", "uk", "pl", "sv", "cs", "nb", "da", "bg", "fi", "hr", "sk", "zh", "hu", "ro", "et"],+ "capabilities": {+ "streaming": true,+ "translate": false,+ "lang_detect": true,+ "timestamps": "token"+ },+ "speed_score": 84,+ "accuracy_score": 82,+ "files": [+ {+ "filename": "nemotron-3.5-asr-streaming-0.6b-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 495831520+ },+ {+ "filename": "nemotron-3.5-asr-streaming-0.6b-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 559647200+ },+ {+ "filename": "nemotron-3.5-asr-streaming-0.6b-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 621356512+ },+ {+ "filename": "nemotron-3.5-asr-streaming-0.6b-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 751094240+ },+ {+ "filename": "nemotron-3.5-asr-streaming-0.6b-F16.gguf",+ "quant": "F16",+ "size_bytes": 1277750240+ },+ {+ "filename": "nemotron-3.5-asr-streaming-0.6b-F32.gguf",+ "quant": "F32",+ "size_bytes": 2552277984+ }+ ],+ "default_quant": "Q8_0",+ "recommended": true,+ "recommended_rank": 2+ },+ {+ "id": "handy-computer/canary-180m-flash-gguf",+ "slug": "canary-180m-flash",+ "name": "Canary 180M Flash",+ "architecture": "canary",+ "family": "canary",+ "parameters": "180M",+ "description": "Tiny and instant — runs well on any hardware.",+ "base_model": "nvidia/canary-180m-flash",+ "license": "cc-by-4.0",+ "language_count": 4,+ "languages": ["en", "de", "es", "fr"],+ "capabilities": {+ "streaming": false,+ "translate": true,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 98,+ "accuracy_score": 88,+ "files": [+ {+ "filename": "canary-180m-flash-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 139223744+ },+ {+ "filename": "canary-180m-flash-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 158704320+ },+ {+ "filename": "canary-180m-flash-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 176291520+ },+ {+ "filename": "canary-180m-flash-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 218447552+ },+ {+ "filename": "canary-180m-flash-F16.gguf",+ "quant": "F16",+ "size_bytes": 381632192+ },+ {+ "filename": "canary-180m-flash-F32.gguf",+ "quant": "F32",+ "size_bytes": 756498112+ }+ ],+ "default_quant": "Q8_0",+ "recommended": true,+ "recommended_rank": 3+ },+ {+ "id": "handy-computer/cohere-transcribe-03-2026-gguf",+ "slug": "cohere-transcribe-03-2026",+ "name": "Cohere Transcribe",+ "architecture": "cohere_asr",+ "family": "cohere",+ "parameters": "2.0B",+ "description": "Highest accuracy, 14 languages.",+ "base_model": "CohereLabs/cohere-transcribe-03-2026",+ "license": "apache-2.0",+ "language_count": 14,+ "languages": ["en", "fr", "de", "es", "it", "pt", "nl", "pl", "el", "ar", "ja", "zh", "vi", "ko"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 63,+ "accuracy_score": 92,+ "files": [+ {+ "filename": "cohere-transcribe-03-2026-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 1558162944+ },+ {+ "filename": "cohere-transcribe-03-2026-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 1770270208+ },+ {+ "filename": "cohere-transcribe-03-2026-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 1972524544+ },+ {+ "filename": "cohere-transcribe-03-2026-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 2410655232+ },+ {+ "filename": "cohere-transcribe-03-2026-BF16.gguf",+ "quant": "BF16",+ "size_bytes": 4105263104+ },+ {+ "filename": "cohere-transcribe-03-2026-F16.gguf",+ "quant": "F16",+ "size_bytes": 4106644992+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": true,+ "recommended_rank": 4+ },+ {+ "id": "handy-computer/whisper-medium-gguf",+ "slug": "whisper-medium",+ "name": "Whisper Medium",+ "architecture": "whisper",+ "family": "whisper",+ "parameters": "764M",+ "description": "Broadest language coverage, with translation to English.",+ "base_model": "openai/whisper-medium",+ "license": "apache-2.0",+ "language_count": 99,+ "languages": ["en", "zh", "de", "es", "ru", "ko", "fr", "ja", "pt", "tr", "pl", "ca", "nl", "ar", "sv", "it", "id", "hi", "fi", "vi", "he", "uk", "el", "ms", "cs", "ro", "da", "hu", "ta", "no", "th", "ur", "hr", "bg", "lt", "la", "mi", "ml", "cy", "sk", "te", "fa", "lv", "bn", "sr", "az", "sl", "kn", "et", "mk", "br", "eu", "is", "hy", "ne", "mn", "bs", "kk", "sq", "sw", "gl", "mr", "pa", "si", "km", "sn", "yo", "so", "af", "oc", "ka", "be", "tg", "sd", "gu", "am", "yi", "lo", "uz", "fo", "ht", "ps", "tk", "nn", "mt", "sa", "lb", "my", "bo", "tl", "mg", "as", "tt", "haw", "ln", "ha", "ba", "jw", "su"],+ "capabilities": {+ "streaming": false,+ "translate": true,+ "lang_detect": true,+ "timestamps": "segment"+ },+ "speed_score": 42,+ "accuracy_score": 84,+ "files": [+ {+ "filename": "whisper-medium-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 504102848+ },+ {+ "filename": "whisper-medium-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 582746048+ },+ {+ "filename": "whisper-medium-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 648019904+ },+ {+ "filename": "whisper-medium-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 831538144+ },+ {+ "filename": "whisper-medium-F16.gguf",+ "quant": "F16",+ "size_bytes": 1541931424+ },+ {+ "filename": "whisper-medium-F32.gguf",+ "quant": "F32",+ "size_bytes": 3057437088+ }+ ],+ "default_quant": "Q8_0",+ "recommended": true,+ "recommended_rank": 5+ },+ {+ "id": "handy-computer/Voxtral-Mini-4B-Realtime-2602-gguf",+ "slug": "Voxtral-Mini-4B-Realtime-2602",+ "name": "Voxtral Mini 4B Realtime",+ "architecture": "voxtral_realtime",+ "family": "voxtral",+ "parameters": "4.8B",+ "description": "Live multilingual, excellent on Apple Silicon.",+ "base_model": "mistralai/Voxtral-Mini-4B-Realtime-2602",+ "license": "apache-2.0",+ "language_count": 13,+ "languages": ["en", "fr", "es", "de", "ru", "zh", "ja", "it", "pt", "nl", "ar", "hi", "ko"],+ "capabilities": {+ "streaming": true,+ "translate": false,+ "lang_detect": true,+ "timestamps": "none"+ },+ "speed_score": 11,+ "accuracy_score": 87,+ "files": [+ {+ "filename": "Voxtral-Mini-4B-Realtime-2602-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 2830493984+ },+ {+ "filename": "Voxtral-Mini-4B-Realtime-2602-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 3281439008+ },+ {+ "filename": "Voxtral-Mini-4B-Realtime-2602-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 3661018912+ },+ {+ "filename": "Voxtral-Mini-4B-Realtime-2602-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 4731791648+ },+ {+ "filename": "Voxtral-Mini-4B-Realtime-2602-BF16.gguf",+ "quant": "BF16",+ "size_bytes": 8868301088+ },+ {+ "filename": "Voxtral-Mini-4B-Realtime-2602-F16.gguf",+ "quant": "F16",+ "size_bytes": 8879114528+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": true,+ "recommended_rank": 6+ },+ {+ "id": "handy-computer/canary-1b-flash-gguf",+ "slug": "canary-1b-flash",+ "name": "Canary 1B Flash",+ "architecture": "canary",+ "family": "canary",+ "parameters": "1B",+ "description": "4-language speech-to-text with translation.",+ "base_model": "nvidia/canary-1b-flash",+ "license": "cc-by-4.0",+ "language_count": 4,+ "languages": ["en", "de", "es", "fr"],+ "capabilities": {+ "streaming": false,+ "translate": true,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 83,+ "accuracy_score": 90,+ "files": [+ {+ "filename": "canary-1b-flash-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 677141280+ },+ {+ "filename": "canary-1b-flash-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 769563424+ },+ {+ "filename": "canary-1b-flash-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 857603872+ },+ {+ "filename": "canary-1b-flash-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 1048131360+ },+ {+ "filename": "canary-1b-flash-F16.gguf",+ "quant": "F16",+ "size_bytes": 1785657120+ },+ {+ "filename": "canary-1b-flash-F32.gguf",+ "quant": "F32",+ "size_bytes": 3560372000+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/canary-1b-v2-gguf",+ "slug": "canary-1b-v2",+ "name": "Canary 1B v2",+ "architecture": "canary",+ "family": "canary",+ "parameters": "1B",+ "description": "25-language speech-to-text with translation.",+ "base_model": "nvidia/canary-1b-v2",+ "license": "cc-by-4.0",+ "language_count": 25,+ "languages": ["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"],+ "capabilities": {+ "streaming": false,+ "translate": true,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 81,+ "accuracy_score": 88,+ "files": [+ {+ "filename": "canary-1b-v2-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 735476448+ },+ {+ "filename": "canary-1b-v2-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 836664032+ },+ {+ "filename": "canary-1b-v2-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 931986144+ },+ {+ "filename": "canary-1b-v2-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 1144290016+ },+ {+ "filename": "canary-1b-v2-F16.gguf",+ "quant": "F16",+ "size_bytes": 1966111456+ },+ {+ "filename": "canary-1b-v2-F32.gguf",+ "quant": "F32",+ "size_bytes": 3920657120+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/canary-1b-gguf",+ "slug": "canary-1b",+ "name": "Canary 1B",+ "architecture": "canary",+ "family": "canary",+ "parameters": "1B",+ "description": "4-language speech-to-text with translation.",+ "base_model": "nvidia/canary-1b",+ "license": "cc-by-nc-4.0",+ "language_count": 4,+ "languages": ["en", "de", "es", "fr"],+ "capabilities": {+ "streaming": false,+ "translate": true,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 67,+ "accuracy_score": 90,+ "files": [+ {+ "filename": "canary-1b-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 729686848+ },+ {+ "filename": "canary-1b-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 837694272+ },+ {+ "filename": "canary-1b-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 934167616+ },+ {+ "filename": "canary-1b-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 1162740288+ },+ {+ "filename": "canary-1b-F16.gguf",+ "quant": "F16",+ "size_bytes": 2047537728+ },+ {+ "filename": "canary-1b-F32.gguf",+ "quant": "F32",+ "size_bytes": 4086100544+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/canary-qwen-2.5b-gguf",+ "slug": "canary-qwen-2.5b",+ "name": "Canary-Qwen 2.5B",+ "architecture": "canary_qwen",+ "family": "canary",+ "parameters": "2.5B",+ "description": "English speech-to-text.",+ "base_model": "nvidia/canary-qwen-2.5b",+ "license": "cc-by-4.0",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 40,+ "accuracy_score": 90,+ "files": [+ {+ "filename": "canary-qwen-2.5b-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 1737575808+ },+ {+ "filename": "canary-qwen-2.5b-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 1983729024+ },+ {+ "filename": "canary-qwen-2.5b-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 2208697728+ },+ {+ "filename": "canary-qwen-2.5b-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 2797548928+ },+ {+ "filename": "canary-qwen-2.5b-BF16.gguf",+ "quant": "BF16",+ "size_bytes": 5076107136+ },+ {+ "filename": "canary-qwen-2.5b-F16.gguf",+ "quant": "F16",+ "size_bytes": 5076972928+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/Fun-ASR-Nano-2512-gguf",+ "slug": "Fun-ASR-Nano-2512",+ "name": "Fun-ASR Nano",+ "architecture": "funasr_nano",+ "family": "fun",+ "parameters": "985M",+ "description": "3-language speech-to-text.",+ "base_model": "FunAudioLLM/Fun-ASR-Nano-2512",+ "license": "other",+ "language_count": 3,+ "languages": ["zh", "en", "ja"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 73,+ "accuracy_score": 89,+ "files": [+ {+ "filename": "Fun-ASR-Nano-2512-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 556974848+ },+ {+ "filename": "Fun-ASR-Nano-2512-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 631128832+ },+ {+ "filename": "Fun-ASR-Nano-2512-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 690744064+ },+ {+ "filename": "Fun-ASR-Nano-2512-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 891270912+ },+ {+ "filename": "Fun-ASR-Nano-2512-BF16.gguf",+ "quant": "BF16",+ "size_bytes": 1667503872+ },+ {+ "filename": "Fun-ASR-Nano-2512-F16.gguf",+ "quant": "F16",+ "size_bytes": 1667503872+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/Fun-ASR-MLT-Nano-2512-gguf",+ "slug": "Fun-ASR-MLT-Nano-2512",+ "name": "Fun-ASR Nano Multilingual",+ "architecture": "funasr_nano",+ "family": "fun",+ "parameters": "985M",+ "description": "31-language speech-to-text.",+ "base_model": "FunAudioLLM/Fun-ASR-MLT-Nano-2512",+ "license": "other",+ "language_count": 31,+ "languages": ["zh", "en", "yue", "ja", "ko", "vi", "id", "th", "ms", "tl", "ar", "hi", "bg", "hr", "cs", "da", "nl", "et", "fi", "el", "hu", "ga", "lv", "lt", "mt", "pl", "pt", "ro", "sk", "sl", "sv"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 68,+ "accuracy_score": 89,+ "files": [+ {+ "filename": "Fun-ASR-MLT-Nano-2512-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 556975168+ },+ {+ "filename": "Fun-ASR-MLT-Nano-2512-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 631129152+ },+ {+ "filename": "Fun-ASR-MLT-Nano-2512-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 690744384+ },+ {+ "filename": "Fun-ASR-MLT-Nano-2512-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 891271232+ },+ {+ "filename": "Fun-ASR-MLT-Nano-2512-BF16.gguf",+ "quant": "BF16",+ "size_bytes": 1667504192+ },+ {+ "filename": "Fun-ASR-MLT-Nano-2512-F16.gguf",+ "quant": "F16",+ "size_bytes": 1667504192+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/gigaam-v3-e2e-ctc-gguf",+ "slug": "gigaam-v3-e2e-ctc",+ "name": "GigaAM v3 E2E-CTC",+ "architecture": "gigaam",+ "family": "gigaam",+ "parameters": "221M",+ "description": "English speech-to-text with token-level timestamps.",+ "base_model": "ai-sage/GigaAM-v3",+ "license": "mit",+ "language_count": 1,+ "languages": ["ru"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "token"+ },+ "speed_score": 98,+ "accuracy_score": 69,+ "files": [+ {+ "filename": "gigaam-v3-e2e-ctc-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 182497888+ },+ {+ "filename": "gigaam-v3-e2e-ctc-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 204911200+ },+ {+ "filename": "gigaam-v3-e2e-ctc-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 226439776+ },+ {+ "filename": "gigaam-v3-e2e-ctc-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 272151136+ },+ {+ "filename": "gigaam-v3-e2e-ctc-F16.gguf",+ "quant": "F16",+ "size_bytes": 449098336+ },+ {+ "filename": "gigaam-v3-e2e-ctc-F32.gguf",+ "quant": "F32",+ "size_bytes": 883603552+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/gigaam-v3-ctc-gguf",+ "slug": "gigaam-v3-ctc",+ "name": "GigaAM v3 CTC",+ "architecture": "gigaam",+ "family": "gigaam",+ "parameters": "221M",+ "description": "English speech-to-text with token-level timestamps.",+ "base_model": "ai-sage/GigaAM-v3",+ "license": "mit",+ "language_count": 1,+ "languages": ["ru"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "token"+ },+ "speed_score": 98,+ "accuracy_score": 57,+ "files": [+ {+ "filename": "gigaam-v3-ctc-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 182150080+ },+ {+ "filename": "gigaam-v3-ctc-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 204563392+ },+ {+ "filename": "gigaam-v3-ctc-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 226091968+ },+ {+ "filename": "gigaam-v3-ctc-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 271803328+ },+ {+ "filename": "gigaam-v3-ctc-F16.gguf",+ "quant": "F16",+ "size_bytes": 448750528+ },+ {+ "filename": "gigaam-v3-ctc-F32.gguf",+ "quant": "F32",+ "size_bytes": 882913216+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/gigaam-v3-rnnt-gguf",+ "slug": "gigaam-v3-rnnt",+ "name": "GigaAM v3 RNN-T",+ "architecture": "gigaam",+ "family": "gigaam",+ "parameters": "222M",+ "description": "English speech-to-text with token-level timestamps.",+ "base_model": "ai-sage/GigaAM-v3",+ "license": "mit",+ "language_count": 1,+ "languages": ["ru"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "token"+ },+ "speed_score": 96,+ "accuracy_score": 58,+ "files": [+ {+ "filename": "gigaam-v3-rnnt-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 183246752+ },+ {+ "filename": "gigaam-v3-rnnt-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 205690784+ },+ {+ "filename": "gigaam-v3-rnnt-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 227252000+ },+ {+ "filename": "gigaam-v3-rnnt-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 273022880+ },+ {+ "filename": "gigaam-v3-rnnt-F16.gguf",+ "quant": "F16",+ "size_bytes": 451084832+ },+ {+ "filename": "gigaam-v3-rnnt-F32.gguf",+ "quant": "F32",+ "size_bytes": 887573536+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/gigaam-v3-e2e-rnnt-gguf",+ "slug": "gigaam-v3-e2e-rnnt",+ "name": "GigaAM v3 E2E-RNN-T",+ "architecture": "gigaam",+ "family": "gigaam",+ "parameters": "223M",+ "description": "English speech-to-text with token-level timestamps.",+ "base_model": "ai-sage/GigaAM-v3",+ "license": "mit",+ "language_count": 1,+ "languages": ["ru"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "token"+ },+ "speed_score": 94,+ "accuracy_score": 70,+ "files": [+ {+ "filename": "gigaam-v3-e2e-rnnt-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 183948704+ },+ {+ "filename": "gigaam-v3-e2e-rnnt-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 206392736+ },+ {+ "filename": "gigaam-v3-e2e-rnnt-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 227953952+ },+ {+ "filename": "gigaam-v3-e2e-rnnt-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 273724832+ },+ {+ "filename": "gigaam-v3-e2e-rnnt-F16.gguf",+ "quant": "F16",+ "size_bytes": 452381408+ },+ {+ "filename": "gigaam-v3-e2e-rnnt-F32.gguf",+ "quant": "F32",+ "size_bytes": 890138592+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/granite-speech-4.1-2b-nar-gguf",+ "slug": "granite-speech-4.1-2b-nar",+ "name": "Granite Speech 4.1 2B NAR",+ "architecture": "granite_speech_nar",+ "family": "granite",+ "parameters": "2.3B",+ "description": "5-language speech-to-text.",+ "base_model": "ibm-granite/granite-speech-4.1-2b-nar",+ "license": "apache-2.0",+ "language_count": 5,+ "languages": ["en", "fr", "de", "es", "pt"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 37,+ "accuracy_score": 92,+ "files": [+ {+ "filename": "granite-speech-4.1-2b-nar-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 1560008832+ },+ {+ "filename": "granite-speech-4.1-2b-nar-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 1782089344+ },+ {+ "filename": "granite-speech-4.1-2b-nar-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 1977417568+ },+ {+ "filename": "granite-speech-4.1-2b-nar-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 2498105472+ },+ {+ "filename": "granite-speech-4.1-2b-nar-BF16.gguf",+ "quant": "BF16",+ "size_bytes": 4514736032+ },+ {+ "filename": "granite-speech-4.1-2b-nar-F16.gguf",+ "quant": "F16",+ "size_bytes": 4515792768+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/granite-4.0-1b-speech-gguf",+ "slug": "granite-4.0-1b-speech",+ "name": "Granite Speech 4.0 1B",+ "architecture": "granite_speech",+ "family": "granite",+ "parameters": "2.3B",+ "description": "6-language speech-to-text with translation.",+ "base_model": "ibm-granite/granite-4.0-1b-speech",+ "license": "apache-2.0",+ "language_count": 6,+ "languages": ["en", "fr", "de", "es", "pt", "ja"],+ "capabilities": {+ "streaming": false,+ "translate": true,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 31,+ "accuracy_score": 91,+ "files": [+ {+ "filename": "granite-4.0-1b-speech-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 1602904800+ },+ {+ "filename": "granite-4.0-1b-speech-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 1829704544+ },+ {+ "filename": "granite-4.0-1b-speech-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 2024967936+ },+ {+ "filename": "granite-4.0-1b-speech-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 2559878848+ },+ {+ "filename": "granite-4.0-1b-speech-BF16.gguf",+ "quant": "BF16",+ "size_bytes": 4631640064+ },+ {+ "filename": "granite-4.0-1b-speech-F16.gguf",+ "quant": "F16",+ "size_bytes": 4632623104+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/granite-speech-4.1-2b-gguf",+ "slug": "granite-speech-4.1-2b",+ "name": "Granite Speech 4.1 2B",+ "architecture": "granite_speech",+ "family": "granite",+ "parameters": "2.3B",+ "description": "6-language speech-to-text with translation.",+ "base_model": "ibm-granite/granite-speech-4.1-2b",+ "license": "apache-2.0",+ "language_count": 6,+ "languages": ["en", "fr", "de", "es", "pt", "ja"],+ "capabilities": {+ "streaming": false,+ "translate": true,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 30,+ "accuracy_score": 92,+ "files": [+ {+ "filename": "granite-speech-4.1-2b-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 1602904800+ },+ {+ "filename": "granite-speech-4.1-2b-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 1829704544+ },+ {+ "filename": "granite-speech-4.1-2b-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 2024967936+ },+ {+ "filename": "granite-speech-4.1-2b-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 2559878848+ },+ {+ "filename": "granite-speech-4.1-2b-BF16.gguf",+ "quant": "BF16",+ "size_bytes": 4631640064+ },+ {+ "filename": "granite-speech-4.1-2b-F16.gguf",+ "quant": "F16",+ "size_bytes": 4632623104+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/granite-speech-4.1-2b-plus-gguf",+ "slug": "granite-speech-4.1-2b-plus",+ "name": "Granite Speech 4.1 2B Plus",+ "architecture": "granite_speech",+ "family": "granite",+ "parameters": "2.1B",+ "description": "5-language speech-to-text with word-level timestamps.",+ "base_model": "ibm-granite/granite-speech-4.1-2b-plus",+ "license": "apache-2.0",+ "language_count": 5,+ "languages": ["en", "fr", "de", "es", "pt"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "word"+ },+ "speed_score": 29,+ "accuracy_score": 90,+ "files": [+ {+ "filename": "granite-speech-4.1-2b-plus-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 1489663424+ },+ {+ "filename": "granite-speech-4.1-2b-plus-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 1691297088+ },+ {+ "filename": "granite-speech-4.1-2b-plus-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 1859821504+ },+ {+ "filename": "granite-speech-4.1-2b-plus-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 2345973152+ },+ {+ "filename": "granite-speech-4.1-2b-plus-BF16.gguf",+ "quant": "BF16",+ "size_bytes": 4228988768+ },+ {+ "filename": "granite-speech-4.1-2b-plus-F16.gguf",+ "quant": "F16",+ "size_bytes": 4229971808+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/medasr-gguf",+ "slug": "medasr",+ "name": "MedASR",+ "architecture": "medasr",+ "family": "medasr",+ "parameters": "105M",+ "description": "English speech-to-text with token-level timestamps.",+ "base_model": "google/medasr",+ "license": "other",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "token"+ },+ "speed_score": 100,+ "accuracy_score": 30,+ "files": [+ {+ "filename": "medasr-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 83082432+ },+ {+ "filename": "medasr-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 94239936+ },+ {+ "filename": "medasr-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 106094784+ },+ {+ "filename": "medasr-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 127712448+ },+ {+ "filename": "medasr-F16.gguf",+ "quant": "F16",+ "size_bytes": 211455168+ },+ {+ "filename": "medasr-F32.gguf",+ "quant": "F32",+ "size_bytes": 421301440+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/moonshine-tiny-gguf",+ "slug": "moonshine-tiny",+ "name": "Moonshine Tiny",+ "architecture": "moonshine",+ "family": "moonshine",+ "parameters": "27M",+ "description": "English speech-to-text.",+ "base_model": "UsefulSensors/moonshine-tiny",+ "license": "mit",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 100,+ "accuracy_score": 74,+ "files": [+ {+ "filename": "moonshine-tiny-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 35466912+ },+ {+ "filename": "moonshine-tiny-F16.gguf",+ "quant": "F16",+ "size_bytes": 59244192+ },+ {+ "filename": "moonshine-tiny-F32.gguf",+ "quant": "F32",+ "size_bytes": 109969056+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/moonshine-streaming-tiny-gguf",+ "slug": "moonshine-streaming-tiny",+ "name": "Moonshine Streaming Tiny",+ "architecture": "moonshine_streaming",+ "family": "moonshine",+ "parameters": "44M",+ "description": "English speech-to-text with streaming.",+ "base_model": "UsefulSensors/moonshine-streaming-tiny",+ "license": "mit",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": true,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 100,+ "accuracy_score": 74,+ "files": [+ {+ "filename": "moonshine-streaming-tiny-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 50462816+ },+ {+ "filename": "moonshine-streaming-tiny-F16.gguf",+ "quant": "F16",+ "size_bytes": 89784416+ },+ {+ "filename": "moonshine-streaming-tiny-F32.gguf",+ "quant": "F32",+ "size_bytes": 177817696+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/moonshine-tiny-zh-gguf",+ "slug": "moonshine-tiny-zh",+ "name": "Moonshine Tiny (Chinese)",+ "architecture": "moonshine",+ "family": "moonshine",+ "parameters": "27M",+ "description": "English speech-to-text.",+ "base_model": "UsefulSensors/moonshine-tiny-zh",+ "license": "mit",+ "language_count": 1,+ "languages": ["zh"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 100,+ "accuracy_score": 40,+ "files": [+ {+ "filename": "moonshine-tiny-zh-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 35466944+ },+ {+ "filename": "moonshine-tiny-zh-F16.gguf",+ "quant": "F16",+ "size_bytes": 59244224+ },+ {+ "filename": "moonshine-tiny-zh-F32.gguf",+ "quant": "F32",+ "size_bytes": 109969088+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/moonshine-tiny-uk-gguf",+ "slug": "moonshine-tiny-uk",+ "name": "Moonshine Tiny (Ukrainian)",+ "architecture": "moonshine",+ "family": "moonshine",+ "parameters": "27M",+ "description": "English speech-to-text.",+ "base_model": "UsefulSensors/moonshine-tiny-uk",+ "license": "mit",+ "language_count": 1,+ "languages": ["uk"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 100,+ "accuracy_score": 28,+ "files": [+ {+ "filename": "moonshine-tiny-uk-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 35466944+ },+ {+ "filename": "moonshine-tiny-uk-F16.gguf",+ "quant": "F16",+ "size_bytes": 59244224+ },+ {+ "filename": "moonshine-tiny-uk-F32.gguf",+ "quant": "F32",+ "size_bytes": 109969088+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/moonshine-tiny-ko-gguf",+ "slug": "moonshine-tiny-ko",+ "name": "Moonshine Tiny (Korean)",+ "architecture": "moonshine",+ "family": "moonshine",+ "parameters": "27M",+ "description": "English speech-to-text.",+ "base_model": "UsefulSensors/moonshine-tiny-ko",+ "license": "mit",+ "language_count": 1,+ "languages": ["ko"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 100,+ "accuracy_score": 55,+ "files": [+ {+ "filename": "moonshine-tiny-ko-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 35466944+ },+ {+ "filename": "moonshine-tiny-ko-F16.gguf",+ "quant": "F16",+ "size_bytes": 59244224+ },+ {+ "filename": "moonshine-tiny-ko-F32.gguf",+ "quant": "F32",+ "size_bytes": 109969088+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/moonshine-tiny-ar-gguf",+ "slug": "moonshine-tiny-ar",+ "name": "Moonshine Tiny (Arabic)",+ "architecture": "moonshine",+ "family": "moonshine",+ "parameters": "27M",+ "description": "English speech-to-text.",+ "base_model": "UsefulSensors/moonshine-tiny-ar",+ "license": "mit",+ "language_count": 1,+ "languages": ["ar"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 100,+ "accuracy_score": 17,+ "files": [+ {+ "filename": "moonshine-tiny-ar-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 35466944+ },+ {+ "filename": "moonshine-tiny-ar-F16.gguf",+ "quant": "F16",+ "size_bytes": 59244224+ },+ {+ "filename": "moonshine-tiny-ar-F32.gguf",+ "quant": "F32",+ "size_bytes": 109969088+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/moonshine-tiny-ja-gguf",+ "slug": "moonshine-tiny-ja",+ "name": "Moonshine Tiny (Japanese)",+ "architecture": "moonshine",+ "family": "moonshine",+ "parameters": "27M",+ "description": "English speech-to-text.",+ "base_model": "UsefulSensors/moonshine-tiny-ja",+ "license": "mit",+ "language_count": 1,+ "languages": ["ja"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 100,+ "accuracy_score": 41,+ "files": [+ {+ "filename": "moonshine-tiny-ja-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 35466944+ },+ {+ "filename": "moonshine-tiny-ja-F16.gguf",+ "quant": "F16",+ "size_bytes": 59244224+ },+ {+ "filename": "moonshine-tiny-ja-F32.gguf",+ "quant": "F32",+ "size_bytes": 109969088+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/moonshine-tiny-vi-gguf",+ "slug": "moonshine-tiny-vi",+ "name": "Moonshine Tiny (Vietnamese)",+ "architecture": "moonshine",+ "family": "moonshine",+ "parameters": "27M",+ "description": "English speech-to-text.",+ "base_model": "UsefulSensors/moonshine-tiny-vi",+ "license": "mit",+ "language_count": 1,+ "languages": ["vi"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 100,+ "accuracy_score": 42,+ "files": [+ {+ "filename": "moonshine-tiny-vi-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 35466944+ },+ {+ "filename": "moonshine-tiny-vi-F16.gguf",+ "quant": "F16",+ "size_bytes": 59244224+ },+ {+ "filename": "moonshine-tiny-vi-F32.gguf",+ "quant": "F32",+ "size_bytes": 109969088+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/moonshine-base-gguf",+ "slug": "moonshine-base",+ "name": "Moonshine Base",+ "architecture": "moonshine",+ "family": "moonshine",+ "parameters": "62M",+ "description": "English speech-to-text.",+ "base_model": "UsefulSensors/moonshine-base",+ "license": "mit",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 99,+ "accuracy_score": 80,+ "files": [+ {+ "filename": "moonshine-base-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 77476480+ },+ {+ "filename": "moonshine-base-F16.gguf",+ "quant": "F16",+ "size_bytes": 131789440+ },+ {+ "filename": "moonshine-base-F32.gguf",+ "quant": "F32",+ "size_bytes": 247657088+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/moonshine-base-ar-gguf",+ "slug": "moonshine-base-ar",+ "name": "Moonshine Base (Arabic)",+ "architecture": "moonshine",+ "family": "moonshine",+ "parameters": "62M",+ "description": "English speech-to-text.",+ "base_model": "UsefulSensors/moonshine-base-ar",+ "license": "mit",+ "language_count": 1,+ "languages": ["ar"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 99,+ "accuracy_score": 20,+ "files": [+ {+ "filename": "moonshine-base-ar-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 77476480+ },+ {+ "filename": "moonshine-base-ar-F16.gguf",+ "quant": "F16",+ "size_bytes": 131789440+ },+ {+ "filename": "moonshine-base-ar-F32.gguf",+ "quant": "F32",+ "size_bytes": 247657088+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/moonshine-base-vi-gguf",+ "slug": "moonshine-base-vi",+ "name": "Moonshine Base (Vietnamese)",+ "architecture": "moonshine",+ "family": "moonshine",+ "parameters": "62M",+ "description": "English speech-to-text.",+ "base_model": "UsefulSensors/moonshine-base-vi",+ "license": "mit",+ "language_count": 1,+ "languages": ["vi"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 99,+ "accuracy_score": 52,+ "files": [+ {+ "filename": "moonshine-base-vi-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 77476512+ },+ {+ "filename": "moonshine-base-vi-F16.gguf",+ "quant": "F16",+ "size_bytes": 131789472+ },+ {+ "filename": "moonshine-base-vi-F32.gguf",+ "quant": "F32",+ "size_bytes": 247657120+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/moonshine-base-uk-gguf",+ "slug": "moonshine-base-uk",+ "name": "Moonshine Base (Ukrainian)",+ "architecture": "moonshine",+ "family": "moonshine",+ "parameters": "62M",+ "description": "English speech-to-text.",+ "base_model": "UsefulSensors/moonshine-base-uk",+ "license": "mit",+ "language_count": 1,+ "languages": ["uk"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 99,+ "accuracy_score": 38,+ "files": [+ {+ "filename": "moonshine-base-uk-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 77476512+ },+ {+ "filename": "moonshine-base-uk-F16.gguf",+ "quant": "F16",+ "size_bytes": 131789472+ },+ {+ "filename": "moonshine-base-uk-F32.gguf",+ "quant": "F32",+ "size_bytes": 247657120+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/moonshine-base-zh-gguf",+ "slug": "moonshine-base-zh",+ "name": "Moonshine Base (Chinese)",+ "architecture": "moonshine",+ "family": "moonshine",+ "parameters": "62M",+ "description": "English speech-to-text.",+ "base_model": "UsefulSensors/moonshine-base-zh",+ "license": "mit",+ "language_count": 1,+ "languages": ["zh"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 99,+ "accuracy_score": 32,+ "files": [+ {+ "filename": "moonshine-base-zh-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 77476480+ },+ {+ "filename": "moonshine-base-zh-F16.gguf",+ "quant": "F16",+ "size_bytes": 131789440+ },+ {+ "filename": "moonshine-base-zh-F32.gguf",+ "quant": "F32",+ "size_bytes": 247657088+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/moonshine-base-ja-gguf",+ "slug": "moonshine-base-ja",+ "name": "Moonshine Base (Japanese)",+ "architecture": "moonshine",+ "family": "moonshine",+ "parameters": "62M",+ "description": "English speech-to-text.",+ "base_model": "UsefulSensors/moonshine-base-ja",+ "license": "mit",+ "language_count": 1,+ "languages": ["ja"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 99,+ "accuracy_score": 50,+ "files": [+ {+ "filename": "moonshine-base-ja-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 77476480+ },+ {+ "filename": "moonshine-base-ja-F16.gguf",+ "quant": "F16",+ "size_bytes": 131789440+ },+ {+ "filename": "moonshine-base-ja-F32.gguf",+ "quant": "F32",+ "size_bytes": 247657088+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/moonshine-base-ko-gguf",+ "slug": "moonshine-base-ko",+ "name": "Moonshine Base (Korean)",+ "architecture": "moonshine",+ "family": "moonshine",+ "parameters": "62M",+ "description": "English speech-to-text.",+ "base_model": "UsefulSensors/moonshine-base-ko",+ "license": "mit",+ "language_count": 1,+ "languages": ["ko"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 99,+ "accuracy_score": 58,+ "files": [+ {+ "filename": "moonshine-base-ko-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 77476480+ },+ {+ "filename": "moonshine-base-ko-F16.gguf",+ "quant": "F16",+ "size_bytes": 131789440+ },+ {+ "filename": "moonshine-base-ko-F32.gguf",+ "quant": "F32",+ "size_bytes": 247657088+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/moonshine-streaming-small-gguf",+ "slug": "moonshine-streaming-small",+ "name": "Moonshine Streaming Small",+ "architecture": "moonshine_streaming",+ "family": "moonshine",+ "parameters": "140M",+ "description": "English speech-to-text with streaming.",+ "base_model": "UsefulSensors/moonshine-streaming-small",+ "license": "mit",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": true,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 95,+ "accuracy_score": 84,+ "files": [+ {+ "filename": "moonshine-streaming-small-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 198506848+ },+ {+ "filename": "moonshine-streaming-small-F16.gguf",+ "quant": "F16",+ "size_bytes": 282092128+ },+ {+ "filename": "moonshine-streaming-small-F32.gguf",+ "quant": "F32",+ "size_bytes": 562146912+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/moonshine-streaming-medium-gguf",+ "slug": "moonshine-streaming-medium",+ "name": "Moonshine Streaming Medium",+ "architecture": "moonshine_streaming",+ "family": "moonshine",+ "parameters": "266M",+ "description": "English speech-to-text with streaming.",+ "base_model": "UsefulSensors/moonshine-streaming-medium",+ "license": "mit",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": true,+ "translate": false,+ "lang_detect": false,+ "timestamps": "none"+ },+ "speed_score": 83,+ "accuracy_score": 87,+ "files": [+ {+ "filename": "moonshine-streaming-medium-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 295793568+ },+ {+ "filename": "moonshine-streaming-medium-F16.gguf",+ "quant": "F16",+ "size_bytes": 533781408+ },+ {+ "filename": "moonshine-streaming-medium-F32.gguf",+ "quant": "F32",+ "size_bytes": 1065204640+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/nemotron-speech-streaming-en-0.6b-gguf",+ "slug": "nemotron-speech-streaming-en-0.6b",+ "name": "Nemotron Speech Streaming EN",+ "architecture": "parakeet",+ "family": "nemotron",+ "parameters": "0.6B",+ "description": "English speech-to-text with streaming, token-level timestamps.",+ "base_model": "nvidia/nemotron-speech-streaming-en-0.6b",+ "license": "other",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": true,+ "translate": false,+ "lang_detect": false,+ "timestamps": "token"+ },+ "speed_score": 80,+ "accuracy_score": 86,+ "files": [+ {+ "filename": "nemotron-speech-streaming-en-0.6b-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 475436032+ },+ {+ "filename": "nemotron-speech-streaming-en-0.6b-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 538989568+ },+ {+ "filename": "nemotron-speech-streaming-en-0.6b-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 600420352+ },+ {+ "filename": "nemotron-speech-streaming-en-0.6b-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 729650176+ },+ {+ "filename": "nemotron-speech-streaming-en-0.6b-F16.gguf",+ "quant": "F16",+ "size_bytes": 1237652608+ },+ {+ "filename": "nemotron-speech-streaming-en-0.6b-F32.gguf",+ "quant": "F32",+ "size_bytes": 2472386176+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/parakeet-tdt_ctc-110m-gguf",+ "slug": "parakeet-tdt_ctc-110m",+ "name": "Parakeet TDT-CTC 110M",+ "architecture": "parakeet",+ "family": "parakeet",+ "parameters": "110M",+ "description": "English speech-to-text with token-level timestamps.",+ "base_model": "nvidia/parakeet-tdt_ctc-110m",+ "license": "cc-by-4.0",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "token"+ },+ "speed_score": 98,+ "accuracy_score": 85,+ "files": [+ {+ "filename": "parakeet-tdt_ctc-110m-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 89989600+ },+ {+ "filename": "parakeet-tdt_ctc-110m-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 101335520+ },+ {+ "filename": "parakeet-tdt_ctc-110m-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 112311264+ },+ {+ "filename": "parakeet-tdt_ctc-110m-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 135373280+ },+ {+ "filename": "parakeet-tdt_ctc-110m-F16.gguf",+ "quant": "F16",+ "size_bytes": 229334560+ },+ {+ "filename": "parakeet-tdt_ctc-110m-F32.gguf",+ "quant": "F32",+ "size_bytes": 456524064+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/parakeet-ctc-0.6b-gguf",+ "slug": "parakeet-ctc-0.6b",+ "name": "Parakeet CTC 0.6B",+ "architecture": "parakeet",+ "family": "parakeet",+ "parameters": "0.6B",+ "description": "English speech-to-text with token-level timestamps.",+ "base_model": "nvidia/parakeet-ctc-0.6b",+ "license": "cc-by-4.0",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "token"+ },+ "speed_score": 94,+ "accuracy_score": 88,+ "files": [+ {+ "filename": "parakeet-ctc-0.6b-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 469302464+ },+ {+ "filename": "parakeet-ctc-0.6b-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 532544704+ },+ {+ "filename": "parakeet-ctc-0.6b-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 593644736+ },+ {+ "filename": "parakeet-ctc-0.6b-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 722271424+ },+ {+ "filename": "parakeet-ctc-0.6b-F16.gguf",+ "quant": "F16",+ "size_bytes": 1220181184+ },+ {+ "filename": "parakeet-ctc-0.6b-F32.gguf",+ "quant": "F32",+ "size_bytes": 2435482816+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/parakeet-tdt-0.6b-v2-gguf",+ "slug": "parakeet-tdt-0.6b-v2",+ "name": "Parakeet TDT 0.6B v2",+ "architecture": "parakeet",+ "family": "parakeet",+ "parameters": "0.6B",+ "description": "English speech-to-text with token-level timestamps.",+ "base_model": "nvidia/parakeet-tdt-0.6b-v2",+ "license": "cc-by-4.0",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "token"+ },+ "speed_score": 85,+ "accuracy_score": 89,+ "files": [+ {+ "filename": "parakeet-tdt-0.6b-v2-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 475491840+ },+ {+ "filename": "parakeet-tdt-0.6b-v2-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 539012608+ },+ {+ "filename": "parakeet-tdt-0.6b-v2-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 600408576+ },+ {+ "filename": "parakeet-tdt-0.6b-v2-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 729574912+ },+ {+ "filename": "parakeet-tdt-0.6b-v2-F16.gguf",+ "quant": "F16",+ "size_bytes": 1237334592+ },+ {+ "filename": "parakeet-tdt-0.6b-v2-F32.gguf",+ "quant": "F32",+ "size_bytes": 2471550272+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/parakeet-rnnt-0.6b-gguf",+ "slug": "parakeet-rnnt-0.6b",+ "name": "Parakeet RNN-T 0.6B",+ "architecture": "parakeet",+ "family": "parakeet",+ "parameters": "0.6B",+ "description": "English speech-to-text with token-level timestamps.",+ "base_model": "nvidia/parakeet-rnnt-0.6b",+ "license": "cc-by-4.0",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "token"+ },+ "speed_score": 84,+ "accuracy_score": 90,+ "files": [+ {+ "filename": "parakeet-rnnt-0.6b-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 476390816+ },+ {+ "filename": "parakeet-rnnt-0.6b-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 539714976+ },+ {+ "filename": "parakeet-rnnt-0.6b-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 600902048+ },+ {+ "filename": "parakeet-rnnt-0.6b-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 729687456+ },+ {+ "filename": "parakeet-rnnt-0.6b-F16.gguf",+ "quant": "F16",+ "size_bytes": 1235969568+ },+ {+ "filename": "parakeet-rnnt-0.6b-F32.gguf",+ "quant": "F32",+ "size_bytes": 2467033120+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/parakeet-ctc-1.1b-gguf",+ "slug": "parakeet-ctc-1.1b",+ "name": "Parakeet CTC 1.1B",+ "architecture": "parakeet",+ "family": "parakeet",+ "parameters": "1.1B",+ "description": "English speech-to-text with token-level timestamps.",+ "base_model": "nvidia/parakeet-ctc-1.1b",+ "license": "cc-by-4.0",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "token"+ },+ "speed_score": 83,+ "accuracy_score": 88,+ "files": [+ {+ "filename": "parakeet-ctc-1.1b-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 818156576+ },+ {+ "filename": "parakeet-ctc-1.1b-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 928584736+ },+ {+ "filename": "parakeet-ctc-1.1b-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 1035248672+ },+ {+ "filename": "parakeet-ctc-1.1b-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 1259869216+ },+ {+ "filename": "parakeet-ctc-1.1b-F16.gguf",+ "quant": "F16",+ "size_bytes": 2129368096+ },+ {+ "filename": "parakeet-ctc-1.1b-F32.gguf",+ "quant": "F32",+ "size_bytes": 4250639392+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/parakeet-tdt-0.6b-v3-gguf",+ "slug": "parakeet-tdt-0.6b-v3",+ "name": "Parakeet TDT 0.6B v3",+ "architecture": "parakeet",+ "family": "parakeet",+ "parameters": "0.6B",+ "description": "25-language speech-to-text with auto language detection, token-level timestamps.",+ "base_model": "nvidia/parakeet-tdt-0.6b-v3",+ "license": "cc-by-4.0",+ "language_count": 25,+ "languages": ["bg", "hr", "cs", "da", "nl", "en", "et", "fi", "fr", "de", "el", "hu", "it", "lv", "lt", "mt", "pl", "pt", "ro", "ru", "sk", "sl", "es", "sv", "uk"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": true,+ "timestamps": "token"+ },+ "speed_score": 79,+ "accuracy_score": 88,+ "files": [+ {+ "filename": "parakeet-tdt-0.6b-v3-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 485425504+ },+ {+ "filename": "parakeet-tdt-0.6b-v3-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 548946272+ },+ {+ "filename": "parakeet-tdt-0.6b-v3-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 610342240+ },+ {+ "filename": "parakeet-tdt-0.6b-v3-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 739508576+ },+ {+ "filename": "parakeet-tdt-0.6b-v3-F16.gguf",+ "quant": "F16",+ "size_bytes": 1255869856+ },+ {+ "filename": "parakeet-tdt-0.6b-v3-F32.gguf",+ "quant": "F32",+ "size_bytes": 2508435616+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/parakeet-tdt-1.1b-gguf",+ "slug": "parakeet-tdt-1.1b",+ "name": "Parakeet TDT 1.1B",+ "architecture": "parakeet",+ "family": "parakeet",+ "parameters": "1.1B",+ "description": "English speech-to-text with token-level timestamps.",+ "base_model": "nvidia/parakeet-tdt-1.1b",+ "license": "cc-by-4.0",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "token"+ },+ "speed_score": 76,+ "accuracy_score": 91,+ "files": [+ {+ "filename": "parakeet-tdt-1.1b-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 825248416+ },+ {+ "filename": "parakeet-tdt-1.1b-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 935758496+ },+ {+ "filename": "parakeet-tdt-1.1b-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 1042509472+ },+ {+ "filename": "parakeet-tdt-1.1b-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 1267288736+ },+ {+ "filename": "parakeet-tdt-1.1b-F16.gguf",+ "quant": "F16",+ "size_bytes": 2145162976+ },+ {+ "filename": "parakeet-tdt-1.1b-F32.gguf",+ "quant": "F32",+ "size_bytes": 4282202592+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/parakeet-tdt_ctc-1.1b-gguf",+ "slug": "parakeet-tdt_ctc-1.1b",+ "name": "Parakeet TDT-CTC 1.1B",+ "architecture": "parakeet",+ "family": "parakeet",+ "parameters": "1.1B",+ "description": "English speech-to-text with token-level timestamps.",+ "base_model": "nvidia/parakeet-tdt_ctc-1.1b",+ "license": "cc-by-4.0",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "token"+ },+ "speed_score": 75,+ "accuracy_score": 88,+ "files": [+ {+ "filename": "parakeet-tdt_ctc-1.1b-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 825248000+ },+ {+ "filename": "parakeet-tdt_ctc-1.1b-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 935758080+ },+ {+ "filename": "parakeet-tdt_ctc-1.1b-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 1042509056+ },+ {+ "filename": "parakeet-tdt_ctc-1.1b-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 1267288320+ },+ {+ "filename": "parakeet-tdt_ctc-1.1b-F16.gguf",+ "quant": "F16",+ "size_bytes": 2145162560+ },+ {+ "filename": "parakeet-tdt_ctc-1.1b-F32.gguf",+ "quant": "F32",+ "size_bytes": 4282202176+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/parakeet-rnnt-1.1b-gguf",+ "slug": "parakeet-rnnt-1.1b",+ "name": "Parakeet RNN-T 1.1B",+ "architecture": "parakeet",+ "family": "parakeet",+ "parameters": "1.1B",+ "description": "English speech-to-text with token-level timestamps.",+ "base_model": "nvidia/parakeet-rnnt-1.1b",+ "license": "cc-by-4.0",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "token"+ },+ "speed_score": 75,+ "accuracy_score": 91,+ "files": [+ {+ "filename": "parakeet-rnnt-1.1b-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 825244928+ },+ {+ "filename": "parakeet-rnnt-1.1b-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 935755008+ },+ {+ "filename": "parakeet-rnnt-1.1b-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 1042505984+ },+ {+ "filename": "parakeet-rnnt-1.1b-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 1267285248+ },+ {+ "filename": "parakeet-rnnt-1.1b-F16.gguf",+ "quant": "F16",+ "size_bytes": 2145156480+ },+ {+ "filename": "parakeet-rnnt-1.1b-F32.gguf",+ "quant": "F32",+ "size_bytes": 4282189696+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/Qwen3-ASR-0.6B-gguf",+ "slug": "Qwen3-ASR-0.6B",+ "name": "Qwen3-ASR 0.6B",+ "architecture": "qwen3_asr",+ "family": "qwen3",+ "parameters": "782M",+ "description": "30-language speech-to-text with auto language detection.",+ "base_model": "Qwen/Qwen3-ASR-0.6B",+ "license": "apache-2.0",+ "language_count": 30,+ "languages": ["zh", "en", "yue", "ar", "de", "fr", "es", "pt", "id", "it", "ko", "ru", "th", "vi", "ja", "tr", "hi", "ms", "nl", "sv", "da", "fi", "pl", "cs", "fil", "fa", "el", "ro", "hu", "mk"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": true,+ "timestamps": "none"+ },+ "speed_score": 63,+ "accuracy_score": 87,+ "files": [+ {+ "filename": "Qwen3-ASR-0.6B-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 589560480+ },+ {+ "filename": "Qwen3-ASR-0.6B-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 645356192+ },+ {+ "filename": "Qwen3-ASR-0.6B-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 690417824+ },+ {+ "filename": "Qwen3-ASR-0.6B-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 850423456+ },+ {+ "filename": "Qwen3-ASR-0.6B-BF16.gguf",+ "quant": "BF16",+ "size_bytes": 1571490016+ },+ {+ "filename": "Qwen3-ASR-0.6B-F16.gguf",+ "quant": "F16",+ "size_bytes": 1579793056+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/Qwen3-ASR-1.7B-gguf",+ "slug": "Qwen3-ASR-1.7B",+ "name": "Qwen3-ASR 1.7B",+ "architecture": "qwen3_asr",+ "family": "qwen3",+ "parameters": "2.0B",+ "description": "30-language speech-to-text with auto language detection.",+ "base_model": "Qwen/Qwen3-ASR-1.7B",+ "license": "apache-2.0",+ "language_count": 30,+ "languages": ["zh", "en", "yue", "ar", "de", "fr", "es", "pt", "id", "it", "ko", "ru", "th", "vi", "ja", "tr", "hi", "ms", "nl", "sv", "da", "fi", "pl", "cs", "fil", "fa", "el", "ro", "hu", "mk"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": true,+ "timestamps": "none"+ },+ "speed_score": 38,+ "accuracy_score": 90,+ "files": [+ {+ "filename": "Qwen3-ASR-1.7B-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 1319830496+ },+ {+ "filename": "Qwen3-ASR-1.7B-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 1517290464+ },+ {+ "filename": "Qwen3-ASR-1.7B-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 1692554208+ },+ {+ "filename": "Qwen3-ASR-1.7B-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 2185030624+ },+ {+ "filename": "Qwen3-ASR-1.7B-BF16.gguf",+ "quant": "BF16",+ "size_bytes": 4083087904+ },+ {+ "filename": "Qwen3-ASR-1.7B-F16.gguf",+ "quant": "F16",+ "size_bytes": 4091390944+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/SenseVoiceSmall-gguf",+ "slug": "SenseVoiceSmall",+ "name": "SenseVoice Small",+ "architecture": "sensevoice",+ "family": "sensevoice",+ "parameters": "234M",+ "description": "5-language speech-to-text with auto language detection.",+ "base_model": "FunAudioLLM/SenseVoiceSmall",+ "license": "other",+ "language_count": 5,+ "languages": ["zh", "yue", "en", "ja", "ko"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": true,+ "timestamps": "none"+ },+ "speed_score": 98,+ "accuracy_score": 81,+ "files": [+ {+ "filename": "SenseVoiceSmall-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 145738304+ },+ {+ "filename": "SenseVoiceSmall-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 172474880+ },+ {+ "filename": "SenseVoiceSmall-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 196438336+ },+ {+ "filename": "SenseVoiceSmall-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 252684608+ },+ {+ "filename": "SenseVoiceSmall-F16.gguf",+ "quant": "F16",+ "size_bytes": 470412128+ },+ {+ "filename": "SenseVoiceSmall-F32.gguf",+ "quant": "F32",+ "size_bytes": 936617824+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/Voxtral-Mini-3B-2507-gguf",+ "slug": "Voxtral-Mini-3B-2507",+ "name": "Voxtral Mini 3B",+ "architecture": "voxtral",+ "family": "voxtral",+ "parameters": "4.7B",+ "description": "8-language speech-to-text with translation, auto language detection.",+ "base_model": "mistralai/Voxtral-Mini-3B-2507",+ "license": "apache-2.0",+ "language_count": 8,+ "languages": ["en", "fr", "de", "es", "it", "pt", "nl", "hi"],+ "capabilities": {+ "streaming": false,+ "translate": true,+ "lang_detect": true,+ "timestamps": "none"+ },+ "speed_score": 14,+ "accuracy_score": 88,+ "files": [+ {+ "filename": "Voxtral-Mini-3B-2507-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 2984721056+ },+ {+ "filename": "Voxtral-Mini-3B-2507-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 3464182432+ },+ {+ "filename": "Voxtral-Mini-3B-2507-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 3869489824+ },+ {+ "filename": "Voxtral-Mini-3B-2507-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 5000084128+ },+ {+ "filename": "Voxtral-Mini-3B-2507-BF16.gguf",+ "quant": "BF16",+ "size_bytes": 9365764768+ },+ {+ "filename": "Voxtral-Mini-3B-2507-F16.gguf",+ "quant": "F16",+ "size_bytes": 9376578208+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/Voxtral-Small-24B-2507-gguf",+ "slug": "Voxtral-Small-24B-2507",+ "name": "Voxtral Small 24B",+ "architecture": "voxtral",+ "family": "voxtral",+ "parameters": "24.3B",+ "description": "8-language speech-to-text with translation, auto language detection.",+ "base_model": "mistralai/Voxtral-Small-24B-2507",+ "license": "apache-2.0",+ "language_count": 8,+ "languages": ["en", "fr", "de", "es", "it", "pt", "nl", "hi"],+ "capabilities": {+ "streaming": false,+ "translate": true,+ "lang_detect": true,+ "timestamps": "none"+ },+ "speed_score": 10,+ "accuracy_score": 90,+ "files": [+ {+ "filename": "Voxtral-Small-24B-2507-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 14302261728+ },+ {+ "filename": "Voxtral-Small-24B-2507-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 17138659808+ },+ {+ "filename": "Voxtral-Small-24B-2507-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 19936473568+ },+ {+ "filename": "Voxtral-Small-24B-2507-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 25810383328+ },+ {+ "filename": "Voxtral-Small-24B-2507-BF16.gguf",+ "quant": "BF16",+ "size_bytes": 48537285088+ },+ {+ "filename": "Voxtral-Small-24B-2507-F16.gguf",+ "quant": "F16",+ "size_bytes": 48548098528+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/whisper-tiny-gguf",+ "slug": "whisper-tiny",+ "name": "Whisper Tiny",+ "architecture": "whisper",+ "family": "whisper",+ "parameters": "38M",+ "description": "99-language speech-to-text with translation, auto language detection, segment-level timestamps.",+ "base_model": "openai/whisper-tiny",+ "license": "apache-2.0",+ "language_count": 99,+ "languages": ["en", "zh", "de", "es", "ru", "ko", "fr", "ja", "pt", "tr", "pl", "ca", "nl", "ar", "sv", "it", "id", "hi", "fi", "vi", "he", "uk", "el", "ms", "cs", "ro", "da", "hu", "ta", "no", "th", "ur", "hr", "bg", "lt", "la", "mi", "ml", "cy", "sk", "te", "fa", "lv", "bn", "sr", "az", "sl", "kn", "et", "mk", "br", "eu", "is", "hy", "ne", "mn", "bs", "kk", "sq", "sw", "gl", "mr", "pa", "si", "km", "sn", "yo", "so", "af", "oc", "ka", "be", "tg", "sd", "gu", "am", "yi", "lo", "uz", "fo", "ht", "ps", "tk", "nn", "mt", "sa", "lb", "my", "bo", "tl", "mg", "as", "tt", "haw", "ln", "ha", "ba", "jw", "su"],+ "capabilities": {+ "streaming": false,+ "translate": true,+ "lang_detect": true,+ "timestamps": "segment"+ },+ "speed_score": 100,+ "accuracy_score": 61,+ "files": [+ {+ "filename": "whisper-tiny-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 43621792+ },+ {+ "filename": "whisper-tiny-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 44211616+ },+ {+ "filename": "whisper-tiny-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 44838304+ },+ {+ "filename": "whisper-tiny-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 45981088+ },+ {+ "filename": "whisper-tiny-F16.gguf",+ "quant": "F16",+ "size_bytes": 80135360+ },+ {+ "filename": "whisper-tiny-F32.gguf",+ "quant": "F32",+ "size_bytes": 152997824+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/whisper-tiny.en-gguf",+ "slug": "whisper-tiny.en",+ "name": "Whisper Tiny (English)",+ "architecture": "whisper",+ "family": "whisper",+ "parameters": "38M",+ "description": "English speech-to-text with segment-level timestamps.",+ "base_model": "openai/whisper-tiny.en",+ "license": "apache-2.0",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "segment"+ },+ "speed_score": 100,+ "accuracy_score": 68,+ "files": [+ {+ "filename": "whisper-tiny.en-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 43545248+ },+ {+ "filename": "whisper-tiny.en-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 44135072+ },+ {+ "filename": "whisper-tiny.en-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 44761760+ },+ {+ "filename": "whisper-tiny.en-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 45904544+ },+ {+ "filename": "whisper-tiny.en-F16.gguf",+ "quant": "F16",+ "size_bytes": 80058464+ },+ {+ "filename": "whisper-tiny.en-F32.gguf",+ "quant": "F32",+ "size_bytes": 152920160+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/whisper-base-gguf",+ "slug": "whisper-base",+ "name": "Whisper Base",+ "architecture": "whisper",+ "family": "whisper",+ "parameters": "73M",+ "description": "99-language speech-to-text with translation, auto language detection, segment-level timestamps.",+ "base_model": "openai/whisper-base",+ "license": "apache-2.0",+ "language_count": 99,+ "languages": ["en", "zh", "de", "es", "ru", "ko", "fr", "ja", "pt", "tr", "pl", "ca", "nl", "ar", "sv", "it", "id", "hi", "fi", "vi", "he", "uk", "el", "ms", "cs", "ro", "da", "hu", "ta", "no", "th", "ur", "hr", "bg", "lt", "la", "mi", "ml", "cy", "sk", "te", "fa", "lv", "bn", "sr", "az", "sl", "kn", "et", "mk", "br", "eu", "is", "hy", "ne", "mn", "bs", "kk", "sq", "sw", "gl", "mr", "pa", "si", "km", "sn", "yo", "so", "af", "oc", "ka", "be", "tg", "sd", "gu", "am", "yi", "lo", "uz", "fo", "ht", "ps", "tk", "nn", "mt", "sa", "lb", "my", "bo", "tl", "mg", "as", "tt", "haw", "ln", "ha", "ba", "jw", "su"],+ "capabilities": {+ "streaming": false,+ "translate": true,+ "lang_detect": true,+ "timestamps": "segment"+ },+ "speed_score": 99,+ "accuracy_score": 71,+ "files": [+ {+ "filename": "whisper-base-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 58870848+ },+ {+ "filename": "whisper-base-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 63786048+ },+ {+ "filename": "whisper-base-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 67865664+ },+ {+ "filename": "whisper-base-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 84962880+ },+ {+ "filename": "whisper-base-F16.gguf",+ "quant": "F16",+ "size_bytes": 151145760+ },+ {+ "filename": "whisper-base-F32.gguf",+ "quant": "F32",+ "size_bytes": 292335904+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/whisper-base.en-gguf",+ "slug": "whisper-base.en",+ "name": "Whisper Base (English)",+ "architecture": "whisper",+ "family": "whisper",+ "parameters": "73M",+ "description": "English speech-to-text with segment-level timestamps.",+ "base_model": "openai/whisper-base.en",+ "license": "apache-2.0",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "segment"+ },+ "speed_score": 99,+ "accuracy_score": 76,+ "files": [+ {+ "filename": "whisper-base.en-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 58794272+ },+ {+ "filename": "whisper-base.en-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 63709472+ },+ {+ "filename": "whisper-base.en-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 67789088+ },+ {+ "filename": "whisper-base.en-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 84886208+ },+ {+ "filename": "whisper-base.en-F16.gguf",+ "quant": "F16",+ "size_bytes": 151068608+ },+ {+ "filename": "whisper-base.en-F32.gguf",+ "quant": "F32",+ "size_bytes": 292257728+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/whisper-small.en-gguf",+ "slug": "whisper-small.en",+ "name": "Whisper Small (English)",+ "architecture": "whisper",+ "family": "whisper",+ "parameters": "242M",+ "description": "English speech-to-text with segment-level timestamps.",+ "base_model": "openai/whisper-small.en",+ "license": "apache-2.0",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "segment"+ },+ "speed_score": 80,+ "accuracy_score": 81,+ "files": [+ {+ "filename": "whisper-small.en-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 171553856+ },+ {+ "filename": "whisper-small.en-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 193672256+ },+ {+ "filename": "whisper-small.en-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 212030528+ },+ {+ "filename": "whisper-small.en-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 269674144+ },+ {+ "filename": "whisper-small.en-F16.gguf",+ "quant": "F16",+ "size_bytes": 492810784+ },+ {+ "filename": "whisper-small.en-F32.gguf",+ "quant": "F32",+ "size_bytes": 968835616+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/whisper-small-gguf",+ "slug": "whisper-small",+ "name": "Whisper Small",+ "architecture": "whisper",+ "family": "whisper",+ "parameters": "242M",+ "description": "99-language speech-to-text with translation, auto language detection, segment-level timestamps.",+ "base_model": "openai/whisper-small",+ "license": "apache-2.0",+ "language_count": 99,+ "languages": ["en", "zh", "de", "es", "ru", "ko", "fr", "ja", "pt", "tr", "pl", "ca", "nl", "ar", "sv", "it", "id", "hi", "fi", "vi", "he", "uk", "el", "ms", "cs", "ro", "da", "hu", "ta", "no", "th", "ur", "hr", "bg", "lt", "la", "mi", "ml", "cy", "sk", "te", "fa", "lv", "bn", "sr", "az", "sl", "kn", "et", "mk", "br", "eu", "is", "hy", "ne", "mn", "bs", "kk", "sq", "sw", "gl", "mr", "pa", "si", "km", "sn", "yo", "so", "af", "oc", "ka", "be", "tg", "sd", "gu", "am", "yi", "lo", "uz", "fo", "ht", "ps", "tk", "nn", "mt", "sa", "lb", "my", "bo", "tl", "mg", "as", "tt", "haw", "ln", "ha", "ba", "jw", "su"],+ "capabilities": {+ "streaming": false,+ "translate": true,+ "lang_detect": true,+ "timestamps": "segment"+ },+ "speed_score": 78,+ "accuracy_score": 80,+ "files": [+ {+ "filename": "whisper-small-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 171630656+ },+ {+ "filename": "whisper-small-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 193749056+ },+ {+ "filename": "whisper-small-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 212107328+ },+ {+ "filename": "whisper-small-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 269751136+ },+ {+ "filename": "whisper-small-F16.gguf",+ "quant": "F16",+ "size_bytes": 492888480+ },+ {+ "filename": "whisper-small-F32.gguf",+ "quant": "F32",+ "size_bytes": 968914848+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/whisper-medium.en-gguf",+ "slug": "whisper-medium.en",+ "name": "Whisper Medium (English)",+ "architecture": "whisper",+ "family": "whisper",+ "parameters": "764M",+ "description": "English speech-to-text with segment-level timestamps.",+ "base_model": "openai/whisper-medium.en",+ "license": "apache-2.0",+ "language_count": 1,+ "languages": ["en"],+ "capabilities": {+ "streaming": false,+ "translate": false,+ "lang_detect": false,+ "timestamps": "segment"+ },+ "speed_score": 44,+ "accuracy_score": 83,+ "files": [+ {+ "filename": "whisper-medium.en-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 504025856+ },+ {+ "filename": "whisper-medium.en-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 582669056+ },+ {+ "filename": "whisper-medium.en-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 647942912+ },+ {+ "filename": "whisper-medium.en-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 831460928+ },+ {+ "filename": "whisper-medium.en-F16.gguf",+ "quant": "F16",+ "size_bytes": 1541853248+ },+ {+ "filename": "whisper-medium.en-F32.gguf",+ "quant": "F32",+ "size_bytes": 3057356864+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/whisper-large-v3-turbo-gguf",+ "slug": "whisper-large-v3-turbo",+ "name": "Whisper Large v3 Turbo",+ "architecture": "whisper",+ "family": "whisper",+ "parameters": "809M",+ "description": "100-language speech-to-text with translation, auto language detection, segment-level timestamps.",+ "base_model": "openai/whisper-large-v3-turbo",+ "license": "apache-2.0",+ "language_count": 100,+ "languages": ["en", "zh", "de", "es", "ru", "ko", "fr", "ja", "pt", "tr", "pl", "ca", "nl", "ar", "sv", "it", "id", "hi", "fi", "vi", "he", "uk", "el", "ms", "cs", "ro", "da", "hu", "ta", "no", "th", "ur", "hr", "bg", "lt", "la", "mi", "ml", "cy", "sk", "te", "fa", "lv", "bn", "sr", "az", "sl", "kn", "et", "mk", "br", "eu", "is", "hy", "ne", "mn", "bs", "kk", "sq", "sw", "gl", "mr", "pa", "si", "km", "sn", "yo", "so", "af", "oc", "ka", "be", "tg", "sd", "gu", "am", "yi", "lo", "uz", "fo", "ht", "ps", "tk", "nn", "mt", "sa", "lb", "my", "bo", "tl", "mg", "as", "tt", "haw", "ln", "ha", "ba", "jw", "su", "yue"],+ "capabilities": {+ "streaming": false,+ "translate": true,+ "lang_detect": true,+ "timestamps": "segment"+ },+ "speed_score": 35,+ "accuracy_score": 87,+ "files": [+ {+ "filename": "whisper-large-v3-turbo-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 536069792+ },+ {+ "filename": "whisper-large-v3-turbo-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 619628192+ },+ {+ "filename": "whisper-large-v3-turbo-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 692536992+ },+ {+ "filename": "whisper-large-v3-turbo-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 886381824+ },+ {+ "filename": "whisper-large-v3-turbo-F16.gguf",+ "quant": "F16",+ "size_bytes": 1636749024+ }+ ],+ "default_quant": "Q8_0",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/whisper-large-v2-gguf",+ "slug": "whisper-large-v2",+ "name": "Whisper Large v2",+ "architecture": "whisper",+ "family": "whisper",+ "parameters": "1.5B",+ "description": "99-language speech-to-text with translation, auto language detection, segment-level timestamps.",+ "base_model": "openai/whisper-large-v2",+ "license": "apache-2.0",+ "language_count": 99,+ "languages": ["en", "zh", "de", "es", "ru", "ko", "fr", "ja", "pt", "tr", "pl", "ca", "nl", "ar", "sv", "it", "id", "hi", "fi", "vi", "he", "uk", "el", "ms", "cs", "ro", "da", "hu", "ta", "no", "th", "ur", "hr", "bg", "lt", "la", "mi", "ml", "cy", "sk", "te", "fa", "lv", "bn", "sr", "az", "sl", "kn", "et", "mk", "br", "eu", "is", "hy", "ne", "mn", "bs", "kk", "sq", "sw", "gl", "mr", "pa", "si", "km", "sn", "yo", "so", "af", "oc", "ka", "be", "tg", "sd", "gu", "am", "yi", "lo", "uz", "fo", "ht", "ps", "tk", "nn", "mt", "sa", "lb", "my", "bo", "tl", "mg", "as", "tt", "haw", "ln", "ha", "ba", "jw", "su"],+ "capabilities": {+ "streaming": false,+ "translate": true,+ "lang_detect": true,+ "timestamps": "segment"+ },+ "speed_score": 23,+ "accuracy_score": 84,+ "files": [+ {+ "filename": "whisper-large-v2-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 996526080+ },+ {+ "filename": "whisper-large-v2-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 1160366080+ },+ {+ "filename": "whisper-large-v2-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 1296353280+ },+ {+ "filename": "whisper-large-v2-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 1667964224+ },+ {+ "filename": "whisper-large-v2-F16.gguf",+ "quant": "F16",+ "size_bytes": 3106458208+ },+ {+ "filename": "whisper-large-v2-F32.gguf",+ "quant": "F32",+ "size_bytes": 6175245408+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/whisper-large-v3-gguf",+ "slug": "whisper-large-v3",+ "name": "Whisper Large v3",+ "architecture": "whisper",+ "family": "whisper",+ "parameters": "1.5B",+ "description": "100-language speech-to-text with translation, auto language detection, segment-level timestamps.",+ "base_model": "openai/whisper-large-v3",+ "license": "apache-2.0",+ "language_count": 100,+ "languages": ["en", "zh", "de", "es", "ru", "ko", "fr", "ja", "pt", "tr", "pl", "ca", "nl", "ar", "sv", "it", "id", "hi", "fi", "vi", "he", "uk", "el", "ms", "cs", "ro", "da", "hu", "ta", "no", "th", "ur", "hr", "bg", "lt", "la", "mi", "ml", "cy", "sk", "te", "fa", "lv", "bn", "sr", "az", "sl", "kn", "et", "mk", "br", "eu", "is", "hy", "ne", "mn", "bs", "kk", "sq", "sw", "gl", "mr", "pa", "si", "km", "sn", "yo", "so", "af", "oc", "ka", "be", "tg", "sd", "gu", "am", "yi", "lo", "uz", "fo", "ht", "ps", "tk", "nn", "mt", "sa", "lb", "my", "bo", "tl", "mg", "as", "tt", "haw", "ln", "ha", "ba", "jw", "su", "yue"],+ "capabilities": {+ "streaming": false,+ "translate": true,+ "lang_detect": true,+ "timestamps": "segment"+ },+ "speed_score": 23,+ "accuracy_score": 89,+ "files": [+ {+ "filename": "whisper-large-v3-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 997303008+ },+ {+ "filename": "whisper-large-v3-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 1161143008+ },+ {+ "filename": "whisper-large-v3-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 1297130208+ },+ {+ "filename": "whisper-large-v3-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 1668741440+ },+ {+ "filename": "whisper-large-v3-F16.gguf",+ "quant": "F16",+ "size_bytes": 3107236640+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/whisper-large-gguf",+ "slug": "whisper-large",+ "name": "Whisper Large",+ "architecture": "whisper",+ "family": "whisper",+ "parameters": "1.5B",+ "description": "99-language speech-to-text with translation, auto language detection, segment-level timestamps.",+ "base_model": "openai/whisper-large",+ "license": "apache-2.0",+ "language_count": 99,+ "languages": ["en", "zh", "de", "es", "ru", "ko", "fr", "ja", "pt", "tr", "pl", "ca", "nl", "ar", "sv", "it", "id", "hi", "fi", "vi", "he", "uk", "el", "ms", "cs", "ro", "da", "hu", "ta", "no", "th", "ur", "hr", "bg", "lt", "la", "mi", "ml", "cy", "sk", "te", "fa", "lv", "bn", "sr", "az", "sl", "kn", "et", "mk", "br", "eu", "is", "hy", "ne", "mn", "bs", "kk", "sq", "sw", "gl", "mr", "pa", "si", "km", "sn", "yo", "so", "af", "oc", "ka", "be", "tg", "sd", "gu", "am", "yi", "lo", "uz", "fo", "ht", "ps", "tk", "nn", "mt", "sa", "lb", "my", "bo", "tl", "mg", "as", "tt", "haw", "ln", "ha", "ba", "jw", "su"],+ "capabilities": {+ "streaming": false,+ "translate": true,+ "lang_detect": true,+ "timestamps": "segment"+ },+ "speed_score": 23,+ "accuracy_score": 83,+ "files": [+ {+ "filename": "whisper-large-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 996526048+ },+ {+ "filename": "whisper-large-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 1160366048+ },+ {+ "filename": "whisper-large-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 1296353248+ },+ {+ "filename": "whisper-large-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 1667964192+ },+ {+ "filename": "whisper-large-F16.gguf",+ "quant": "F16",+ "size_bytes": 3106458176+ },+ {+ "filename": "whisper-large-F32.gguf",+ "quant": "F32",+ "size_bytes": 6175245376+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": false,+ "recommended_rank": null+ },+ {+ "id": "handy-computer/Breeze-ASR-25-gguf",+ "slug": "Breeze-ASR-25",+ "name": "Breeze-ASR-25",+ "architecture": "whisper",+ "family": "whisper",+ "parameters": "1.5B",+ "description": "Optimized for Taiwanese Mandarin. Code-switching support.",+ "base_model": "MediaTek-Research/Breeze-ASR-25",+ "license": "apache-2.0",+ "language_count": 2,+ "languages": ["zh", "en"],+ "capabilities": {+ "streaming": false,+ "translate": true,+ "lang_detect": true,+ "timestamps": "segment"+ },+ "speed_score": 23,+ "accuracy_score": 86,+ "files": [+ {+ "filename": "Breeze-ASR-25-Q4_K_M.gguf",+ "quant": "Q4_K_M",+ "size_bytes": 996526080+ },+ {+ "filename": "Breeze-ASR-25-Q5_K_M.gguf",+ "quant": "Q5_K_M",+ "size_bytes": 1160366080+ },+ {+ "filename": "Breeze-ASR-25-Q6_K.gguf",+ "quant": "Q6_K",+ "size_bytes": 1296353280+ },+ {+ "filename": "Breeze-ASR-25-Q8_0.gguf",+ "quant": "Q8_0",+ "size_bytes": 1667964224+ },+ {+ "filename": "Breeze-ASR-25-BF16.gguf",+ "quant": "BF16",+ "size_bytes": 3096013408+ },+ {+ "filename": "Breeze-ASR-25-F16.gguf",+ "quant": "F16",+ "size_bytes": 3106458208+ }+ ],+ "default_quant": "Q5_K_M",+ "recommended": false,+ "recommended_rank": null+ }+ ]+}\ No newline at end of filediff --git a/src-tauri/src/catalog/mod.rs b/src-tauri/src/catalog/mod.rsnew file mode 100644index 00000000..3472995f--- /dev/null+++ b/src-tauri/src/catalog/mod.rs@@ -0,0 +1,165 @@+//! The bundled, offline model catalog.+//!+//! `catalog.json` is generated at build time by `scripts/gen_catalog.py` from the+//! `handy-computer` Hugging Face org (card `transcribe_cpp` capabilities ++//! benchmarks, a GGUF header probe for name/params, and local curation for the+//! recommended set). It is compiled into the binary so Handy ships a complete+//! model list with zero network access.+//!+//! Each entry is normalised into a [`ModelDescriptor`] — the same source-agnostic+//! shape every other producer (HF discovery, on-disk scans, the legacy table)+//! yields — so the catalog is "just another producer". Its explicit `capabilities`+//! map becomes a [`CapabilityProbe`] with confident `Some(..)` values; the runtime+//! `GgufHeaderProber` is the same shape with `None` where a header omits a key,+//! which is why the two are interchangeable (the catalog is a baked probe).++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_capabilities::{CapabilityProbe, Compatibility};++#[derive(Deserialize)]+struct CatalogRoot {+ models: Vec<CatalogModel>,+}++/// One model as written in `catalog.json`. Only the fields the descriptor needs+/// are declared; serde ignores the rest (slug, family, license, …).+#[derive(Deserialize)]+struct CatalogModel {+ /// HF repo id, e.g. `handy-computer/whisper-small-gguf`.+ id: String,+ name: String,+ description: String,+ architecture: Option<String>,+ languages: Vec<String>,+ capabilities: CatalogCaps,+ speed_score: Option<f32>,+ accuracy_score: Option<f32>,+ files: Vec<QuantFile>,+ default_quant: Option<String>,+ recommended_rank: Option<u32>,+ /// Part of the small curated onboarding set (badged "Recommended"). Distinct+ /// from `recommended_rank`, which only orders the full list.+ #[serde(default)]+ recommended: bool,+}++#[derive(Deserialize)]+struct CatalogCaps {+ streaming: bool,+ translate: bool,+ lang_detect: bool,+ // `timestamps` (a string enum) is present in the catalog but has no+ // `CapabilityProbe` field yet — wire it through when the probe gains one.+}++impl From<CatalogModel> for ModelDescriptor {+ fn from(m: CatalogModel) -> Self {+ // The default download file. Its name is folded into the id so a catalog+ // entry collides (dedups) with the very same file later discovered in+ // the HF cache — both compute `"{repo_id}/{filename}"`.+ let default_filename = default_quant_file(&m.files, m.default_quant.as_deref())+ .map(|f| f.filename.clone())+ .unwrap_or_default();++ ModelDescriptor {+ id: format!("{}/{}", m.id, default_filename),+ source: ModelSource::HuggingFace {+ repo_id: m.id,+ revision: "main".to_string(),+ },+ name: m.name,+ description: m.description,+ engine_type: EngineType::TranscribeCpp,+ caps: CapabilityProbe {+ verdict: Compatibility::Compatible, // curated org models we ship support for+ display_name: None,+ architecture: m.architecture,+ variant: None,+ languages: Some(m.languages),+ supports_streaming: Some(m.capabilities.streaming),+ supports_translation: Some(m.capabilities.translate),+ supports_language_detect: Some(m.capabilities.lang_detect),+ },+ files: m.files,+ default_quant: m.default_quant,+ // catalog scores are 0–100; ModelInfo / the UI bars use 0.0–1.0.+ speed_score: m.speed_score.unwrap_or(0.0) / 100.0,+ accuracy_score: m.accuracy_score.unwrap_or(0.0) / 100.0,+ recommended_rank: m.recommended_rank,+ recommended: m.recommended,+ }+ }+}++/// The bundled catalog, parsed once and normalised into descriptors.+pub static CATALOG: Lazy<Vec<ModelDescriptor>> = Lazy::new(|| {+ let root: CatalogRoot = serde_json::from_str(include_str!("catalog.json"))+ .expect("bundled catalog.json is valid JSON matching the catalog schema");+ root.models.into_iter().map(ModelDescriptor::from).collect()+});++/// Editorial recommended rank keyed by descriptor id (the same id the model+/// registry uses). Built once from the catalog.+static RANK_BY_ID: Lazy<HashMap<String, u32>> = Lazy::new(|| {+ CATALOG+ .iter()+ .filter_map(|d| d.recommended_rank.map(|r| (d.id.clone(), r)))+ .collect()+});++/// Recommended rank for a model id (lower = higher priority). Returns+/// `u32::MAX` for unranked/unknown ids so they sort last in an ascending sort.+pub fn rank_of(model_id: &str) -> u32 {+ RANK_BY_ID.get(model_id).copied().unwrap_or(u32::MAX)+}++#[cfg(test)]+mod tests {+ use super::*;+ use crate::managers::model_capabilities::KNOWN_ARCHES;+ use std::collections::BTreeSet;++ #[test]+ fn catalog_parses_and_is_nonempty() {+ assert!(!CATALOG.is_empty(), "bundled catalog should contain models");+ }++ #[test]+ fn ids_are_unique() {+ let mut ids: Vec<&str> = CATALOG.iter().map(|d| d.id.as_str()).collect();+ ids.sort_unstable();+ let before = ids.len();+ ids.dedup();+ assert_eq!(before, ids.len(), "catalog descriptor ids must be unique");+ }++ #[test]+ fn scores_are_normalised_0_to_1() {+ for d in CATALOG.iter() {+ assert!((0.0..=1.0).contains(&d.speed_score), "{} speed", d.id);+ assert!((0.0..=1.0).contains(&d.accuracy_score), "{} acc", d.id);+ }+ }++ #[test]+ fn catalog_architectures_are_known_to_capability_probe() {+ let missing: BTreeSet<&str> = CATALOG+ .iter()+ .filter_map(|d| d.caps.architecture.as_deref())+ .filter(|arch| !KNOWN_ARCHES.contains(arch))+ .collect();++ assert!(+ missing.is_empty(),+ "catalog architecture(s) missing from KNOWN_ARCHES: {:?}",+ missing+ );+ }+}diff --git a/src-tauri/src/cli.rs b/src-tauri/src/cli.rsindex 122b33e9..0423bced 100644--- a/src-tauri/src/cli.rs+++ b/src-tauri/src/cli.rs@@ -38,16 +38,21 @@ pub struct CliArgs {#[arg(long)]pub model: Option<String>,- /// Hard-select the compute device for --transcribe-file by its --list-devices- /// index (0 = CPU, 1.. = a specific GPU). Omit to use the persisted- /// accelerator setting. whisper.cpp models only.+ /// Hard-select the compute device for --transcribe-file by its registry+ /// index (see --list-devices). Omit to use the persisted accelerator+ /// setting. transcribe-cpp (whisper-family) models only.#[arg(long, value_name = "N")]pub device_index: Option<usize>,- /// List the selectable whisper compute devices (with indices) and exit.+ /// List the transcribe-cpp compute devices (with indices) and exit.#[arg(long)]pub list_devices: bool,+ /// List the available models (with ids) and exit. Pass an id to --model.+ /// Honors --json for machine-readable output.+ #[arg(long)]+ pub list_models: bool,+/// Repeat the transcription N times (best_ms reports the fastest run).#[arg(long, value_name = "N")]pub repeat: Option<usize>,diff --git a/src-tauri/src/commands/audio.rs b/src-tauri/src/commands/audio.rsindex 90574634..c06d28ec 100644--- a/src-tauri/src/commands/audio.rs+++ b/src-tauri/src/commands/audio.rs@@ -22,7 +22,7 @@ pub struct CustomSounds {fn custom_sound_exists(app: &AppHandle, sound_type: &str) -> bool {crate::portable::resolve_app_data(app, &format!("custom_{}.wav", sound_type))- .map_or(false, |path| path.exists())+ .is_ok_and(|path| path.exists())}#[tauri::command]diff --git a/src-tauri/src/commands/models.rs b/src-tauri/src/commands/models.rsindex 86d89a85..b8647e45 100644--- a/src-tauri/src/commands/models.rs+++ b/src-tauri/src/commands/models.rs@@ -21,6 +21,20 @@ pub async fn get_model_info(Ok(model_manager.get_model_info(&model_id))}+/// Re-scan local sources (custom models dir + shared HF cache) for models added+/// since launch+#[tauri::command]+#[specta::specta]+pub async fn rescan_local_models(+ model_manager: State<'_, Arc<ModelManager>>,+) -> Result<(), String> {+ let mm = model_manager.inner().clone();+ tokio::task::spawn_blocking(move || mm.rescan_local_models())+ .await+ .map_err(|e| format!("rescan task panicked: {e}"))?+ .map_err(|e| e.to_string())+}+#[tauri::command]#[specta::specta]pub async fn download_model(@@ -97,28 +111,13 @@ pub fn switch_active_model(app: &AppHandle, model_id: &str) -> Result<(), Stringlet settings = get_settings(app);let unload_timeout = settings.model_unload_timeout;let old_model = settings.selected_model.clone();+ let old_onboarding_completed = settings.onboarding_completed;// Persist the new selection early so the frontend sees the correct model// when it reacts to events emitted by load_model.let mut settings = settings;settings.selected_model = model_id.to_string();-- // Reset language to auto if the new model doesn't support the currently selected language.- // This prevents stale language settings from causing errors (e.g. Canary receiving zh-Hans)- // and stops downstream processing (e.g. OpenCC) from running on an irrelevant language.- if settings.selected_language != "auto"- && !model_info.supported_languages.is_empty()- && !model_info- .supported_languages- .contains(&settings.selected_language)- {- log::info!(- "Resetting language from '{}' to 'auto' (not supported by {})",- settings.selected_language,- model_id- );- settings.selected_language = "auto".to_string();- }+ settings.onboarding_completed = true;write_settings(app, settings);@@ -147,6 +146,7 @@ pub fn switch_active_model(app: &AppHandle, model_id: &str) -> Result<(), Stringif let Err(e) = transcription_manager.load_model(model_id) {let mut settings = get_settings(app);settings.selected_model = old_model;+ settings.onboarding_completed = old_onboarding_completed;write_settings(app, settings);return Err(e.to_string());}@@ -190,25 +190,6 @@ pub async fn is_model_loading(Ok(current_model.is_none())}-#[tauri::command]-#[specta::specta]-pub async fn has_any_models_available(- model_manager: State<'_, Arc<ModelManager>>,-) -> Result<bool, String> {- let models = model_manager.get_available_models();- Ok(models.iter().any(|m| m.is_downloaded))-}--#[tauri::command]-#[specta::specta]-pub async fn has_any_models_or_downloads(- model_manager: State<'_, Arc<ModelManager>>,-) -> Result<bool, String> {- let models = model_manager.get_available_models();- // Return true if any models are downloaded OR if any downloads are in progress- Ok(models.iter().any(|m| m.is_downloaded))-}-#[tauri::command]#[specta::specta]pub async fn cancel_download(diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rsindex 24922240..f24509da 100644--- a/src-tauri/src/lib.rs+++ b/src-tauri/src/lib.rs@@ -3,6 +3,7 @@ mod actions;mod apple_intelligence;mod audio_feedback;pub mod audio_toolkit;+mod catalog;pub mod cli;mod clipboard;mod commands;@@ -151,19 +152,26 @@ fn initialize_core_logic(app_handle: &AppHandle) {// after onboarding completes. This avoids triggering permission dialogs// on macOS before the user is ready.- // Initialize the managers- let recording_manager = Arc::new(- AudioRecordingManager::new(app_handle).expect("Failed to initialize recording manager"),- );+ // Initialize the managers. The audio recorder receives the streaming router+ // explicitly, so always-on microphone startup can wire live-preview frames+ // even before Tauri state is populated.let model_manager =Arc::new(ModelManager::new(app_handle).expect("Failed to initialize model manager"));let transcription_manager = Arc::new(TranscriptionManager::new(app_handle, model_manager.clone()).expect("Failed to initialize transcription manager"),);+ let recording_manager = Arc::new(+ AudioRecordingManager::new(app_handle, transcription_manager.stream_router())+ .expect("Failed to initialize recording manager"),+ );let history_manager =Arc::new(HistoryManager::new(app_handle).expect("Failed to initialize history manager"));+ // Initialize the transcribe-cpp native backend (logging + backend module+ // registration) once, before any whisper model is loaded.+ managers::transcription::init_transcribe_backend();+// Apply accelerator preferences before any model loadsmanagers::transcription::apply_accelerator_settings(app_handle);@@ -179,7 +187,7 @@ fn initialize_core_logic(app_handle: &AppHandle) {// This matches the pattern used for Enigo initialization.#[cfg(unix)]- let signals = Signals::new(&[SIGUSR1, SIGUSR2]).unwrap();+ let signals = Signals::new([SIGUSR1, SIGUSR2]).unwrap();// Set up signal handlers for toggling transcription#[cfg(unix)]signal_handle::setup_signal_handler(app_handle.clone(), signals);@@ -288,7 +296,7 @@ fn initialize_core_logic(app_handle: &AppHandle) {// Get the autostart manager and configure based on user settinglet autostart_manager = app_handle.autolaunch();- let settings = settings::get_settings(&app_handle);+ let settings = settings::get_settings(app_handle);if settings.autostart_enabled {// Enable autostart if user has opted in@@ -326,15 +334,60 @@ fn show_main_window_command(app: AppHandle) -> Result<(), String> {/// mic, no VAD, no download. Returns a process exit code (0 ok, 1 runtime/// failure, 2 bad input/usage).fn run_headless_transcription(app: &AppHandle, args: &CliArgs) -> i32 {- use managers::model::EngineType;use std::time::Instant;- // --list-devices: print the selectable whisper compute devices (index 0 is- // CPU; 1.. are GPUs) and exit. Pass an index here to --device-index.+ // --list-devices: print registered compute devices (with indices) and exit.+ // Useful on multi-GPU machines to discover the index for --device-index.if args.list_devices {- println!("whisper compute devices:");- for d in managers::transcription::describe_compute_devices() {- println!(" {}", d);+ let devices = crate::managers::transcription::describe_compute_devices();+ if devices.is_empty() {+ println!("No transcribe-cpp compute devices registered.");+ } else {+ println!("transcribe-cpp compute devices:");+ for d in &devices {+ println!(" {}", d);+ }+ }+ if args.transcribe_file.is_none() {+ return 0;+ }+ }++ // --list-models: print the model registry (catalog + on-disk + custom) with+ // their ids — the same ids `--model` accepts — then exit. `--json` emits the+ // full ModelInfo array for scripting.+ if args.list_models {+ let model_manager = app.state::<Arc<ModelManager>>();+ let models = model_manager.get_available_models();+ if args.json {+ match serde_json::to_string_pretty(&models) {+ Ok(s) => println!("{}", s),+ Err(e) => {+ eprintln!("error: failed to serialize models: {}", e);+ return 1;+ }+ }+ } else if models.is_empty() {+ println!("No models available.");+ } else {+ println!("Available models (✓ = installed):");+ let width = models.iter().map(|m| m.id.len()).max().unwrap_or(0);+ for m in &models {+ let mark = if m.is_downloaded { "✓" } else { " " };+ let rec = if m.is_recommended {+ " [recommended]"+ } else {+ ""+ };+ println!(+ " {} {:<width$} {}{}",+ mark,+ m.id,+ m.name,+ rec,+ width = width+ );+ }}if args.transcribe_file.is_none() {return 0;@@ -379,7 +432,6 @@ fn run_headless_transcription(app: &AppHandle, args: &CliArgs) -> i32 {let audio_secs = samples.len() as f64 / 16_000.0;let tm = app.state::<Arc<TranscriptionManager>>();- let mm = app.state::<Arc<ModelManager>>();let model_id = args.model@@ -390,26 +442,15 @@ fn run_headless_transcription(app: &AppHandle, args: &CliArgs) -> i32 {return 2;}- // --device-index hard-selects the compute device for this load by its- // --list-devices index (whisper.cpp models only; not persisted). Omit it to- // use the persisted accelerator setting.+ // --device-index hard-selects a compute device by its --list-devices registry+ // index (transcribe-cpp / whisper-family models only; not persisted). Omit it+ // to use the persisted accelerator setting.let device_index = args.device_index;let requested_device = match device_index {Some(idx) => format!("index {}", idx),None => "settings".to_string(),};- let is_whisper = mm- .get_model_info(&model_id)- .map(|i| matches!(i.engine_type, EngineType::Whisper))- .unwrap_or(false);- if device_index.is_some() && !is_whisper {- eprintln!(- "warning: --device-index applies to whisper.cpp models only; ignored for '{}'",- model_id- );- }-// Cold load (timed).let load_start = Instant::now();if let Err(e) = tm.load_model_with_device(&model_id, device_index) {@@ -417,13 +458,7 @@ fn run_headless_transcription(app: &AppHandle, args: &CliArgs) -> i32 {return 1;}let load_ms = load_start.elapsed().as_millis() as u64;- // transcribe-rs doesn't expose the engine's bound backend post-load, so for- // whisper report the device the load resolved to; ONNX engines report "onnx".- let bound_backend = if is_whisper {- managers::transcription::describe_effective_whisper_device(device_index)- } else {- "onnx".to_string()- };+ let bound_backend = tm.current_backend();let runs = args.repeat.unwrap_or(1).max(1);let mut times_ms: Vec<u64> = Vec::new();@@ -473,7 +508,13 @@ fn run_headless_transcription(app: &AppHandle, args: &CliArgs) -> i32 {} else {println!("model={} device={} backend={} audio={:.2}s load={}ms best={}ms rtf={:.2}x",- model_id, requested_device, bound_backend, audio_secs, load_ms, best_ms, rtf,+ model_id,+ requested_device,+ bound_backend.as_deref().unwrap_or("?"),+ audio_secs,+ load_ms,+ best_ms,+ rtf,);println!("text: {}", text);}@@ -502,6 +543,7 @@ pub fn run(cli_args: CliArgs) {shortcut::change_translate_to_english_setting,shortcut::change_selected_language_setting,shortcut::change_overlay_position_setting,+ shortcut::change_overlay_style_setting,shortcut::change_debug_mode_setting,shortcut::change_word_correction_threshold_setting,shortcut::change_extra_recording_buffer_setting,@@ -530,14 +572,17 @@ pub fn run(cli_args: CliArgs) {shortcut::change_mute_while_recording_setting,shortcut::change_append_trailing_space_setting,shortcut::change_lazy_stream_close_setting,+ shortcut::change_vad_enabled_setting,shortcut::change_app_language_setting,shortcut::change_update_checks_setting,+ shortcut::change_show_whats_new_on_update_setting,+ shortcut::change_whats_new_last_seen_version_setting,shortcut::change_keyboard_implementation_setting,shortcut::get_keyboard_implementation,shortcut::change_show_tray_icon_setting,- shortcut::change_whisper_accelerator_setting,+ shortcut::change_transcribe_accelerator_setting,shortcut::change_ort_accelerator_setting,- shortcut::change_whisper_gpu_device,+ shortcut::change_transcribe_gpu_device,shortcut::get_available_accelerators,shortcut::handy_keys::start_handy_keys_recording,shortcut::handy_keys::stop_handy_keys_recording,@@ -565,8 +610,7 @@ pub fn run(cli_args: CliArgs) {commands::models::get_current_model,commands::models::get_transcription_model_status,commands::models::is_model_loading,- commands::models::has_any_models_available,- commands::models::has_any_models_or_downloads,+ commands::models::rescan_local_models,commands::audio::update_microphone_mode,commands::audio::get_microphone_mode,commands::audio::get_windows_microphone_permission_status,@@ -594,7 +638,11 @@ pub fn run(cli_args: CliArgs) {commands::history::update_recording_retention_period,helpers::clamshell::is_laptop,])- .events(collect_events![managers::history::HistoryUpdatePayload,]);+ .events(collect_events![+ managers::history::HistoryUpdatePayload,+ managers::transcription::StreamTextEvent,+ managers::transcription::StreamPhaseEvent,+ ]);#[cfg(debug_assertions)] // <- Only export on non-release buildsspecta_builder@@ -608,7 +656,8 @@ pub fn run(cli_args: CliArgs) {// The headless path must run as its own instance (see the single-instance// note below), not forward to an already-running app.- let headless_mode = cli_args.transcribe_file.is_some() || cli_args.list_devices;+ let headless_mode =+ cli_args.transcribe_file.is_some() || cli_args.list_devices || cli_args.list_models;#[allow(unused_mut)]let mut builder = tauri::Builder::default()@@ -622,9 +671,9 @@ pub fn run(cli_args: CliArgs) {.clear_targets().targets([// Console output respects RUST_LOG environment variable. In- // headless mode (--transcribe-file/--list-devices) stdout- // carries only the result (JSON or plain), so send console- // logs to stderr instead to keep stdout clean for parsing.+ // headless mode (--transcribe-file/--list-devices/--list-models)+ // stdout carries only the result (JSON or plain), so send console+ // logs to stderr instead to keep stdout clean for CI parsing.Target::new(if headless_mode {TargetKind::Stderr} else {@@ -668,9 +717,10 @@ pub fn run(cli_args: CliArgs) {}// Single-instance forwards CLI args to an already-running Handy and exits.- // That would make the headless path (--transcribe-file/--list-devices) a- // silent no-op whenever the app is already open, so skip it in headless mode- // and run a standalone instance instead.+ // That would make the headless path+ // (--transcribe-file/--list-devices/--list-models) a silent no-op whenever the+ // app is already open, so skip it in headless mode and run a standalone+ // instance instead.if !headless_mode {builder = builder.plugin(tauri_plugin_single_instance::init(|app, args, _cwd| {if args.iter().any(|a| a == "--toggle-transcription") {@@ -703,14 +753,13 @@ pub fn run(cli_args: CliArgs) {.setup(move |app| {specta_builder.mount_events(app);- // Headless one-shot path (`--transcribe-file` / `--list-devices`):- // initialize only what transcription needs — store/paths (via the- // registered plugins), the model + transcription managers, and the- // accelerator settings — then run on a worker thread and exit. This- // deliberately skips the window, tray, overlay, audio recorder (so it- // never opens the mic, even with always_on_microphone set), signal- // handlers, and autostart that the normal UI path- // (initialize_core_logic) sets up.+ // Headless one-shot path (`--transcribe-file` / `--list-devices` /+ // `--list-models`): initialize only what transcription needs — the+ // store/paths plugins, the model + transcription managers, and the+ // transcribe-cpp backend + accelerator settings — then run on a worker+ // thread and exit. Deliberately skips the window, tray, overlay, audio+ // recorder (so it never opens the mic, even with always_on_microphone),+ // signal handlers, and autostart that initialize_core_logic sets up.if headless_mode {let app_handle = app.handle().clone();let model_manager = Arc::new(@@ -722,6 +771,7 @@ pub fn run(cli_args: CliArgs) {);app_handle.manage(model_manager);app_handle.manage(transcription_manager);+ managers::transcription::init_transcribe_backend();managers::transcription::apply_accelerator_settings(&app_handle);let handle = app_handle.clone();@@ -735,8 +785,8 @@ pub fn run(cli_args: CliArgs) {let _ = tm.unload_model();}// process::exit (not app.exit, which exits 0 regardless) so the- // exit code propagates to the shell. Flush first since- // process::exit runs no destructors / buffer flushes.+ // exit code propagates to the shell for CI gating. Flush first+ // since process::exit runs no destructors / buffer flushes.use std::io::Write;let _ = std::io::stdout().flush();let _ = std::io::stderr().flush();@@ -762,7 +812,7 @@ pub fn run(cli_args: CliArgs) {win_builder.build()?;- let mut settings = get_settings(&app.handle());+ let mut settings = get_settings(app.handle());// CLI --debug flag overrides debug_mode and log level (runtime-only, not persisted)if cli_args.debug {@@ -786,18 +836,16 @@ pub fn run(cli_args: CliArgs) {// Populate the overlay-enabled cache from initial settings so the// audio path (overlay::emit_levels, called ~24 Hz during recording)// can do a single atomic load instead of reading the Tauri store.- // Kept in sync by shortcut::change_overlay_position_setting.+ // Kept in sync by shortcut::change_overlay_style_setting.overlay::update_overlay_enabled_cache(- settings.overlay_position != settings::OverlayPosition::None,+ settings.overlay_style != settings::OverlayStyle::None,);- // Pre-warm GPU/accelerator enumeration on a background thread.- // The first call into transcribe_rs::whisper_cpp::gpu::list_gpu_devices- // loads the Metal/Vulkan backend and probes devices, which can take- // several seconds. Without this, that cost is paid synchronously the- // first time the user opens the Advanced settings page (which calls- // the get_available_accelerators command), causing a UI freeze.- // Result is cached in a OnceLock inside the transcription manager.+ // Pre-warm GPU/accelerator enumeration on a background thread. The first+ // get_available_accelerators call enumerates ORT execution providers and+ // transcribe-cpp compute devices, which can take a moment; without this+ // the cost is paid synchronously when the user first opens Advanced+ // settings, freezing the UI. Result is cached in a OnceLock.std::thread::spawn(|| {let _ = crate::managers::transcription::get_available_accelerators();});@@ -829,7 +877,7 @@ pub fn run(cli_args: CliArgs) {#[cfg(target_os = "macos")]{- let settings = get_settings(&window.app_handle());+ let settings = get_settings(window.app_handle());let tray_visible =settings.show_tray_icon && !window.app_handle().state::<CliArgs>().no_tray;if tray_visible {@@ -847,18 +895,24 @@ pub fn run(cli_args: CliArgs) {tauri::WindowEvent::ThemeChanged(theme) => {log::info!("Theme changed to: {:?}", theme);// Update tray icon to match new theme, maintaining idle state- utils::change_tray_icon(&window.app_handle(), utils::TrayIconState::Idle);+ utils::change_tray_icon(window.app_handle(), utils::TrayIconState::Idle);}_ => {}}).invoke_handler(invoke_handler).build(tauri::generate_context!()).expect("error while building tauri application")- .run(|app, event| {+ .run(|app, event| match &event {#[cfg(target_os = "macos")]- if let tauri::RunEvent::Reopen { .. } = &event {+ tauri::RunEvent::Reopen { .. } => {show_main_window(app);}- let _ = (app, event); // suppress unused warnings on non-macOS+ // Teardown transcribe.cpp before exit+ tauri::RunEvent::Exit => {+ if let Some(tm) = app.try_state::<Arc<TranscriptionManager>>() {+ let _ = tm.unload_model();+ }+ }+ _ => {}});}diff --git a/src-tauri/src/llm_client.rs b/src-tauri/src/llm_client.rsindex 08102c6b..2a06e173 100644--- a/src-tauri/src/llm_client.rs+++ b/src-tauri/src/llm_client.rs@@ -134,6 +134,7 @@ pub async fn send_chat_completion(/// system_prompt is used as the system message when provided/// reasoning_effort sets the OpenAI-style top-level field (e.g., "none", "low", "medium", "high")/// reasoning sets the OpenRouter-style nested object (effort + exclude)+#[allow(clippy::too_many_arguments)]pub async fn send_chat_completion_with_schema(provider: &PostProcessProvider,api_key: String,diff --git a/src-tauri/src/managers/audio.rs b/src-tauri/src/managers/audio.rsindex d0c92ba8..30ca8794 100644--- a/src-tauri/src/managers/audio.rs+++ b/src-tauri/src/managers/audio.rs@@ -1,5 +1,13 @@-use crate::audio_toolkit::{list_input_devices, vad::SmoothedVad, AudioRecorder, SileroVad};+use crate::audio_toolkit::{+ list_input_devices,+ vad::{+ SmoothedVad, VAD_OFFLINE_HANGOVER_FRAMES, VAD_ONSET_FRAMES, VAD_PREFILL_FRAMES,+ VAD_STREAMING_HANGOVER_FRAMES,+ },+ AudioRecorder, SileroVad, VadPolicy,+};use crate::helpers::clamshell;+use crate::managers::transcription::StreamRouter;use crate::settings::{get_settings, AppSettings};use crate::utils;use log::{debug, error, info};@@ -9,6 +17,7 @@ use std::time::{Duration, Instant};use tauri::Manager;const STREAM_IDLE_TIMEOUT: Duration = Duration::from_secs(30);+const VAD_THRESHOLD: f32 = 0.3;fn set_mute(mute: bool) {// Expected behavior:@@ -107,6 +116,7 @@ const WHISPER_SAMPLE_RATE: usize = 16000;pub enum RecordingState {Idle,Recording { binding_id: String },+ Stopping,}#[derive(Clone, Debug)]@@ -120,21 +130,41 @@ pub enum MicrophoneMode {fn create_audio_recorder(vad_path: &str,app_handle: &tauri::AppHandle,+ stream_router: Arc<StreamRouter>,) -> Result<AudioRecorder, anyhow::Error> {- let silero = SileroVad::new(vad_path, 0.3)+ // A single Silero engine covers both the offline and streaming policies (never+ // active at once within a recording), so the recorder reconfigures its+ // hangover tail per session rather than keeping two ONNX sessions resident.+ let silero = SileroVad::new(vad_path, VAD_THRESHOLD).map_err(|e| anyhow::anyhow!("Failed to create SileroVad: {}", e))?;- let smoothed_vad = SmoothedVad::new(Box::new(silero), 15, 15, 2);-- // Recorder with VAD plus a spectrum-level callback that forwards updates to- // the frontend.+ let smoothed_vad = SmoothedVad::new(+ Box::new(silero),+ VAD_PREFILL_FRAMES,+ VAD_OFFLINE_HANGOVER_FRAMES,+ VAD_ONSET_FRAMES,+ );++ // Recorder with VAD, a spectrum-level callback that forwards level updates to+ // the frontend, and an audio-frame callback that feeds live streaming via a+ // shared `StreamRouter` (captured directly, not via Tauri state — see its docs).let recorder = AudioRecorder::new().map_err(|e| anyhow::anyhow!("Failed to create AudioRecorder: {}", e))?- .with_vad(Box::new(smoothed_vad))+ .with_vad(+ Box::new(smoothed_vad),+ VAD_OFFLINE_HANGOVER_FRAMES,+ VAD_STREAMING_HANGOVER_FRAMES,+ ).with_level_callback({let app_handle = app_handle.clone();move |levels| {utils::emit_levels(&app_handle, &levels);}+ })+ .with_audio_callback({+ let router = stream_router;+ move |frame| {+ router.feed(frame);+ }});Ok(recorder)@@ -153,12 +183,17 @@ pub struct AudioRecordingManager {is_recording: Arc<Mutex<bool>>,did_mute: Arc<Mutex<bool>>,close_generation: Arc<AtomicU64>,+ cancel_generation: Arc<AtomicU64>,+ stream_router: Arc<StreamRouter>,}impl AudioRecordingManager {/* ---------- construction ------------------------------------------------ */- pub fn new(app: &tauri::AppHandle) -> Result<Self, anyhow::Error> {+ pub fn new(+ app: &tauri::AppHandle,+ stream_router: Arc<StreamRouter>,+ ) -> Result<Self, anyhow::Error> {let settings = get_settings(app);let mode = if settings.always_on_microphone {MicrophoneMode::AlwaysOn@@ -176,6 +211,8 @@ impl AudioRecordingManager {is_recording: Arc::new(Mutex::new(false)),did_mute: Arc::new(Mutex::new(false)),close_generation: Arc::new(AtomicU64::new(0)),+ cancel_generation: Arc::new(AtomicU64::new(0)),+ stream_router,};// Always-on? Open immediately.@@ -277,6 +314,7 @@ impl AudioRecordingManager {*recorder_opt = Some(create_audio_recorder(vad_path.to_str().unwrap(),&self.app_handle,+ Arc::clone(&self.stream_router),)?);}Ok(())@@ -383,7 +421,11 @@ impl AudioRecordingManager {/* ---------- recording --------------------------------------------------- */- pub fn try_start_recording(&self, binding_id: &str) -> Result<(), String> {+ pub fn try_start_recording(+ &self,+ binding_id: &str,+ vad_policy: VadPolicy,+ ) -> Result<(), String> {let mut state = self.state.lock().unwrap();if let RecordingState::Idle = *state {@@ -399,7 +441,7 @@ impl AudioRecordingManager {}if let Some(rec) = self.recorder.lock().unwrap().as_ref() {- if rec.start().is_ok() {+ if rec.start(vad_policy).is_ok() {*self.is_recording.lock().unwrap() = true;*state = RecordingState::Recording {binding_id: binding_id.to_string(),@@ -424,24 +466,44 @@ impl AudioRecordingManager {Ok(())}- pub fn stop_recording(&self, binding_id: &str) -> Option<Vec<f32>> {+ pub fn cancel_generation(&self) -> u64 {+ self.cancel_generation.load(Ordering::Acquire)+ }++ pub fn was_cancelled_since(&self, generation: u64) -> bool {+ self.cancel_generation.load(Ordering::Acquire) != generation+ }++ pub fn stop_recording(&self, binding_id: &str, cancel_generation: u64) -> Option<Vec<f32>> {let mut state = self.state.lock().unwrap();match *state {RecordingState::Recording {binding_id: ref active,} if active == binding_id => {- *state = RecordingState::Idle;+ *state = RecordingState::Stopping;drop(state);- // Optionally keep recording for a bit longer to capture trailing audio+ // Optionally keep recording for a bit longer to capture trailing audio.+ // This is only the explicit user setting; streaming VAD must not add+ // hidden post-release capture time.let settings = get_settings(&self.app_handle);- if settings.extra_recording_buffer_ms > 0 {+ let buffer_ms = settings.extra_recording_buffer_ms;+ if buffer_ms > 0 {debug!("Extra recording buffer: sleeping {}ms before stopping",- settings.extra_recording_buffer_ms+ buffer_ms);- std::thread::sleep(Duration::from_millis(settings.extra_recording_buffer_ms));+ let started = Instant::now();+ let buffer = Duration::from_millis(buffer_ms);+ while started.elapsed() < buffer {+ if self.was_cancelled_since(cancel_generation) {+ debug!("Recording stop cancelled during extra buffer");+ break;+ }+ let remaining = buffer.saturating_sub(started.elapsed());+ std::thread::sleep(remaining.min(Duration::from_millis(25)));+ }}let samples = if let Some(rec) = self.recorder.lock().unwrap().as_ref() {@@ -458,6 +520,7 @@ impl AudioRecordingManager {};*self.is_recording.lock().unwrap() = false;+ *self.state.lock().unwrap() = RecordingState::Idle;// In on-demand mode, close the mic (lazily if the setting is enabled)if matches!(*self.mode.lock().unwrap(), MicrophoneMode::OnDemand) {@@ -468,6 +531,11 @@ impl AudioRecordingManager {}}+ if self.was_cancelled_since(cancel_generation) {+ debug!("Recording stop cancelled; discarding captured samples");+ return None;+ }+// Pad if very shortlet s_len = samples.len();// debug!("Got {} samples", s_len);@@ -485,32 +553,39 @@ impl AudioRecordingManager {pub fn is_recording(&self) -> bool {matches!(*self.state.lock().unwrap(),- RecordingState::Recording { .. }+ RecordingState::Recording { .. } | RecordingState::Stopping)}/// Cancel any ongoing recording without returning audio samplespub fn cancel_recording(&self) {+ self.cancel_generation.fetch_add(1, Ordering::AcqRel);let mut state = self.state.lock().unwrap();- if let RecordingState::Recording { .. } = *state {- *state = RecordingState::Idle;- drop(state);+ match *state {+ RecordingState::Recording { .. } => {+ *state = RecordingState::Idle;+ drop(state);- if let Some(rec) = self.recorder.lock().unwrap().as_ref() {- let _ = rec.stop(); // Discard the result- }+ if let Some(rec) = self.recorder.lock().unwrap().as_ref() {+ let _ = rec.stop(); // Discard the result+ }- *self.is_recording.lock().unwrap() = false;+ *self.is_recording.lock().unwrap() = false;- // In on-demand mode, close the mic (lazily if the setting is enabled)- if matches!(*self.mode.lock().unwrap(), MicrophoneMode::OnDemand) {- if get_settings(&self.app_handle).lazy_stream_close {- self.schedule_lazy_close();- } else {- self.stop_microphone_stream();+ // In on-demand mode, close the mic (lazily if the setting is enabled)+ if matches!(*self.mode.lock().unwrap(), MicrophoneMode::OnDemand) {+ if get_settings(&self.app_handle).lazy_stream_close {+ self.schedule_lazy_close();+ } else {+ self.stop_microphone_stream();+ }}}+ RecordingState::Stopping => {+ debug!("Cancellation requested while recording is stopping");+ }+ RecordingState::Idle => {}}}}diff --git a/src-tauri/src/managers/gguf_meta.rs b/src-tauri/src/managers/gguf_meta.rsnew file mode 100644index 00000000..183ea381--- /dev/null+++ b/src-tauri/src/managers/gguf_meta.rs@@ -0,0 +1,494 @@+//! Minimal, dependency-free GGUF metadata reader.+//!+//! Parses ONLY the GGUF key/value header section — the magic, the version, the+//! counts, and the `metadata_kv_count` key/value pairs that sit at the front of+//! the file, before any tensor info or tensor data. We never touch tensors, so+//! the exact same code works on a complete file on disk and on the leading+//! bytes of a remote file fetched with an HTTP Range request: a too-short+//! buffer surfaces cleanly as [`GgufError::Truncated`] instead of panicking.+//!+//! This is intentionally not a full GGUF library — it reads what Handy needs to+//! display a model's capabilities before download. Format reference: GGUF v2/v3,+//! little-endian. v1 (32-bit lengths) is not supported; every transcribe-cpp+//! model is v3.++use std::collections::HashMap;++/// GGUF magic: the ASCII bytes "GGUF" read as a little-endian u32.+const GGUF_MAGIC: u32 = 0x4655_4747;++// GGUF metadata value-type tags.+const T_UINT8: u32 = 0;+const T_INT8: u32 = 1;+const T_UINT16: u32 = 2;+const T_INT16: u32 = 3;+const T_UINT32: u32 = 4;+const T_INT32: u32 = 5;+const T_FLOAT32: u32 = 6;+const T_BOOL: u32 = 7;+const T_STRING: u32 = 8;+const T_ARRAY: u32 = 9;+const T_UINT64: u32 = 10;+const T_INT64: u32 = 11;+const T_FLOAT64: u32 = 12;++/// Sanity caps so malformed/garbage bytes can't be interpreted as an enormous+/// allocation or an unbounded "need more bytes" hint. Real ASR model metadata+/// is comfortably within these.+const MAX_STRING_LEN: usize = 64 * 1024 * 1024;+const MAX_ARRAY_LEN: u64 = 16 * 1024 * 1024;+const MAX_STORED_ARRAY_LEN: u64 = 4096;+const MAX_KV_COUNT: u64 = 1_000_000;++/// A parsed GGUF metadata value. Only the shapes Handy consumes are given+/// accessors; unrequested values are skipped without materializing them.+#[derive(Debug, Clone, PartialEq)]+pub enum GgufValue {+ U8(u8),+ I8(i8),+ U16(u16),+ I16(i16),+ U32(u32),+ I32(i32),+ U64(u64),+ I64(i64),+ F32(f32),+ F64(f64),+ Bool(bool),+ String(String),+ Array(Vec<GgufValue>),+}++impl GgufValue {+ /// Interpret the value as a string, if it is one.+ pub fn as_str(&self) -> Option<&str> {+ match self {+ GgufValue::String(s) => Some(s.as_str()),+ _ => None,+ }+ }++ /// Interpret the value as a bool. GGUF stores bools as a single byte; some+ /// producers use a small integer type instead, so accept those too.+ pub fn as_bool(&self) -> Option<bool> {+ match self {+ GgufValue::Bool(b) => Some(*b),+ GgufValue::U8(v) => Some(*v != 0),+ GgufValue::I8(v) => Some(*v != 0),+ GgufValue::U32(v) => Some(*v != 0),+ GgufValue::I32(v) => Some(*v != 0),+ _ => None,+ }+ }++ /// Interpret the value as an array of strings (e.g. `general.languages`).+ /// Returns `None` if it isn't an array, or if any element isn't a string.+ pub fn as_string_array(&self) -> Option<Vec<String>> {+ match self {+ GgufValue::Array(items) => items+ .iter()+ .map(|v| v.as_str().map(str::to_string))+ .collect(),+ _ => None,+ }+ }+}++/// The parsed front-of-file metadata of a GGUF model. Only the key/value block+/// is retained — the version is validated during parsing and the tensor count is+/// skipped, since Handy reads capabilities purely from the KV pairs.+#[derive(Debug, Clone)]+pub struct GgufMetadata {+ /// Requested key/value metadata pairs, keyed by their GGUF key.+ pub kv: HashMap<String, GgufValue>,+}++impl GgufMetadata {+ pub fn get_str(&self, key: &str) -> Option<&str> {+ self.kv.get(key).and_then(GgufValue::as_str)+ }+ pub fn get_bool(&self, key: &str) -> Option<bool> {+ self.kv.get(key).and_then(GgufValue::as_bool)+ }+ pub fn get_string_array(&self, key: &str) -> Option<Vec<String>> {+ self.kv.get(key).and_then(GgufValue::as_string_array)+ }+}++/// Why a parse did not produce metadata.+#[derive(Debug)]+pub enum GgufError {+ /// Not a GGUF file (bad magic).+ NotGguf,+ /// Unsupported GGUF version (we support v2 and v3).+ UnsupportedVersion(u32),+ /// The buffer ended before the metadata section was fully parsed. `needed`+ /// is a lower-bound hint for the total number of bytes to fetch and retry+ /// with — because element sizes vary, callers should also grow geometrically+ /// rather than trust this as the exact final size.+ Truncated { needed: usize },+ /// The bytes were malformed in a way that isn't simple truncation.+ Malformed(&'static str),+}++impl std::fmt::Display for GgufError {+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {+ match self {+ GgufError::NotGguf => write!(f, "not a GGUF file"),+ GgufError::UnsupportedVersion(v) => write!(f, "unsupported GGUF version {v}"),+ GgufError::Truncated { needed } => {+ write!(f, "buffer truncated, need at least {needed} bytes")+ }+ GgufError::Malformed(why) => write!(f, "malformed GGUF: {why}"),+ }+ }+}+impl std::error::Error for GgufError {}++/// A forward-only cursor that reports running off the end as `Truncated`+/// (carrying how many total bytes were wanted) rather than panicking.+struct ByteCursor<'a> {+ buf: &'a [u8],+ pos: usize,+}++impl<'a> ByteCursor<'a> {+ fn new(buf: &'a [u8]) -> Self {+ ByteCursor { buf, pos: 0 }+ }++ fn truncated(&self, more: usize) -> GgufError {+ GgufError::Truncated {+ needed: self.pos.saturating_add(more),+ }+ }++ fn take(&mut self, n: usize) -> Result<&'a [u8], GgufError> {+ let end = self+ .pos+ .checked_add(n)+ .ok_or(GgufError::Malformed("length overflow"))?;+ if end > self.buf.len() {+ return Err(self.truncated(n));+ }+ let slice = &self.buf[self.pos..end];+ self.pos = end;+ Ok(slice)+ }++ fn u32(&mut self) -> Result<u32, GgufError> {+ let b = self.take(4)?;+ Ok(u32::from_le_bytes([b[0], b[1], b[2], b[3]]))+ }++ fn u64(&mut self) -> Result<u64, GgufError> {+ let b = self.take(8)?;+ Ok(u64::from_le_bytes([+ b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7],+ ]))+ }++ fn string_len(&mut self) -> Result<usize, GgufError> {+ let len = usize::try_from(self.u64()?)+ .map_err(|_| GgufError::Malformed("string length too large"))?;+ if len > MAX_STRING_LEN {+ return Err(GgufError::Malformed("string length too large"));+ }+ Ok(len)+ }++ /// A GGUF string: u64 length followed by that many UTF-8 bytes.+ fn string(&mut self) -> Result<String, GgufError> {+ let len = self.string_len()?;+ let bytes = self.take(len)?;+ Ok(String::from_utf8_lossy(bytes).into_owned())+ }++ fn skip_string(&mut self) -> Result<(), GgufError> {+ let len = self.string_len()?;+ self.take(len)?;+ Ok(())+ }+}++fn read_value(cur: &mut ByteCursor, value_type: u32) -> Result<GgufValue, GgufError> {+ Ok(match value_type {+ T_UINT8 => GgufValue::U8(cur.take(1)?[0]),+ T_INT8 => GgufValue::I8(cur.take(1)?[0] as i8),+ T_UINT16 => {+ let b = cur.take(2)?;+ GgufValue::U16(u16::from_le_bytes([b[0], b[1]]))+ }+ T_INT16 => {+ let b = cur.take(2)?;+ GgufValue::I16(i16::from_le_bytes([b[0], b[1]]))+ }+ T_UINT32 => GgufValue::U32(cur.u32()?),+ T_INT32 => GgufValue::I32(cur.u32()? as i32),+ T_FLOAT32 => GgufValue::F32(f32::from_bits(cur.u32()?)),+ T_BOOL => GgufValue::Bool(cur.take(1)?[0] != 0),+ T_STRING => GgufValue::String(cur.string()?),+ T_UINT64 => GgufValue::U64(cur.u64()?),+ T_INT64 => GgufValue::I64(cur.u64()? as i64),+ T_FLOAT64 => GgufValue::F64(f64::from_bits(cur.u64()?)),+ T_ARRAY => {+ let elem_type = cur.u32()?;+ if elem_type == T_ARRAY {+ return Err(GgufError::Malformed("nested arrays are not allowed"));+ }+ let len = cur.u64()?;+ if len > MAX_ARRAY_LEN {+ return Err(GgufError::Malformed("array length too large"));+ }+ if len > MAX_STORED_ARRAY_LEN {+ return Err(GgufError::Malformed("stored array length too large"));+ }+ // Don't pre-allocate the claimed length: a truncated buffer can+ // advertise a huge array it doesn't actually contain.+ let mut items = Vec::with_capacity(len.min(1024) as usize);+ for _ in 0..len {+ items.push(read_value(cur, elem_type)?);+ }+ GgufValue::Array(items)+ }+ _ => return Err(GgufError::Malformed("unknown value type")),+ })+}++fn scalar_size(value_type: u32) -> Option<usize> {+ match value_type {+ T_UINT8 | T_INT8 | T_BOOL => Some(1),+ T_UINT16 | T_INT16 => Some(2),+ T_UINT32 | T_INT32 | T_FLOAT32 => Some(4),+ T_UINT64 | T_INT64 | T_FLOAT64 => Some(8),+ _ => None,+ }+}++fn skip_value(cur: &mut ByteCursor, value_type: u32) -> Result<(), GgufError> {+ if let Some(size) = scalar_size(value_type) {+ cur.take(size)?;+ return Ok(());+ }++ match value_type {+ T_STRING => cur.skip_string(),+ T_ARRAY => {+ let elem_type = cur.u32()?;+ if elem_type == T_ARRAY {+ return Err(GgufError::Malformed("nested arrays are not allowed"));+ }+ let len = cur.u64()?;+ if len > MAX_ARRAY_LEN {+ return Err(GgufError::Malformed("array length too large"));+ }++ if let Some(size) = scalar_size(elem_type) {+ let bytes = usize::try_from(len)+ .ok()+ .and_then(|len| len.checked_mul(size))+ .ok_or(GgufError::Malformed("length overflow"))?;+ cur.take(bytes)?;+ } else if elem_type == T_STRING {+ for _ in 0..len {+ cur.skip_string()?;+ }+ } else {+ return Err(GgufError::Malformed("unknown array element type"));+ }+ Ok(())+ }+ _ => Err(GgufError::Malformed("unknown value type")),+ }+}++/// Parse the GGUF metadata header from `bytes`. `bytes` may be the whole file or+/// just a leading prefix (e.g. an HTTP Range fetch); a prefix too short to hold+/// the full metadata section returns [`GgufError::Truncated`].+///+/// Only keys listed in `wanted_keys` are materialized. Other values are skipped+/// with checked cursor movement so large tokenizer metadata arrays do not become+/// Handy allocations while probing a few capability fields.+pub fn parse_header(bytes: &[u8], wanted_keys: &[&str]) -> Result<GgufMetadata, GgufError> {+ let mut cur = ByteCursor::new(bytes);++ let magic = cur.u32()?;+ if magic != GGUF_MAGIC {+ return Err(GgufError::NotGguf);+ }+ let version = cur.u32()?;+ if version != 2 && version != 3 {+ return Err(GgufError::UnsupportedVersion(version));+ }+ // Tensor count precedes the KV count in the header; read past it (we never+ // touch tensors) to reach the metadata block.+ cur.u64()?;+ let kv_count = cur.u64()?;+ if kv_count > MAX_KV_COUNT {+ return Err(GgufError::Malformed("absurd metadata kv count"));+ }++ let mut kv = HashMap::with_capacity(wanted_keys.len());+ for _ in 0..kv_count {+ let key = cur.string()?;+ let value_type = cur.u32()?;+ if wanted_keys.contains(&key.as_str()) {+ let value = read_value(&mut cur, value_type)?;+ kv.insert(key, value);+ if kv.len() == wanted_keys.len() {+ break;+ }+ } else {+ skip_value(&mut cur, value_type)?;+ }+ }++ Ok(GgufMetadata { kv })+}++#[cfg(test)]+mod tests {+ use super::*;++ fn push_str(out: &mut Vec<u8>, s: &str) {+ out.extend_from_slice(&(s.len() as u64).to_le_bytes());+ out.extend_from_slice(s.as_bytes());+ }++ fn write_value(out: &mut Vec<u8>, v: &GgufValue) {+ match v {+ GgufValue::Bool(b) => {+ out.extend_from_slice(&T_BOOL.to_le_bytes());+ out.push(*b as u8);+ }+ GgufValue::String(s) => {+ out.extend_from_slice(&T_STRING.to_le_bytes());+ push_str(out, s);+ }+ GgufValue::U32(n) => {+ out.extend_from_slice(&T_UINT32.to_le_bytes());+ out.extend_from_slice(&n.to_le_bytes());+ }+ GgufValue::Array(items) => {+ // Tests only build string arrays.+ out.extend_from_slice(&T_ARRAY.to_le_bytes());+ out.extend_from_slice(&T_STRING.to_le_bytes());+ out.extend_from_slice(&(items.len() as u64).to_le_bytes());+ for it in items {+ if let GgufValue::String(s) = it {+ push_str(out, s);+ }+ }+ }+ _ => unimplemented!("test builder only supports a few types"),+ }+ }++ fn build_gguf(kvs: &[(&str, GgufValue)]) -> Vec<u8> {+ let mut out = Vec::new();+ out.extend_from_slice(&GGUF_MAGIC.to_le_bytes());+ out.extend_from_slice(&3u32.to_le_bytes()); // version+ out.extend_from_slice(&0u64.to_le_bytes()); // tensor_count+ out.extend_from_slice(&(kvs.len() as u64).to_le_bytes());+ for (k, v) in kvs {+ push_str(&mut out, k);+ write_value(&mut out, v);+ }+ out+ }++ #[test]+ fn parses_basic_kv() {+ let data = build_gguf(&[+ ("general.architecture", GgufValue::String("whisper".into())),+ ("stt.capability.translate", GgufValue::Bool(true)),+ (+ "general.languages",+ GgufValue::Array(vec![+ GgufValue::String("en".into()),+ GgufValue::String("de".into()),+ ]),+ ),+ ]);+ let meta = parse_header(+ &data,+ &[+ "general.architecture",+ "stt.capability.translate",+ "general.languages",+ ],+ )+ .unwrap();+ assert_eq!(meta.get_str("general.architecture"), Some("whisper"));+ assert_eq!(meta.get_bool("stt.capability.translate"), Some(true));+ assert_eq!(+ meta.get_string_array("general.languages"),+ Some(vec!["en".to_string(), "de".to_string()])+ );+ assert_eq!(meta.get_str("missing.key"), None);+ }++ #[test]+ fn rejects_non_gguf() {+ assert!(matches!(+ parse_header(b"not a gguf file at all", &["general.architecture"]),+ Err(GgufError::NotGguf)+ ));+ }++ #[test]+ fn reports_truncation_with_hint() {+ let data = build_gguf(&[("general.architecture", GgufValue::String("whisper".into()))]);+ let err = parse_header(&data[..data.len() - 3], &["general.architecture"]).unwrap_err();+ match err {+ GgufError::Truncated { needed } => assert!(needed >= data.len() - 3),+ other => panic!("expected Truncated, got {other:?}"),+ }+ }++ #[test]+ fn empty_buffer_is_truncated_not_panic() {+ assert!(matches!(+ parse_header(&[], &["general.architecture"]),+ Err(GgufError::Truncated { .. })+ ));+ }++ #[test]+ fn stops_after_wanted_keys_without_reading_later_large_arrays() {+ let mut data = build_gguf(&[("general.architecture", GgufValue::String("whisper".into()))]);+ // Patch kv_count from 1 to 2 and append an enormous, intentionally+ // truncated array. The parser should stop after the wanted first key.+ data[16..24].copy_from_slice(&2u64.to_le_bytes());+ push_str(&mut data, "tokenizer.ggml.tokens");+ data.extend_from_slice(&T_ARRAY.to_le_bytes());+ data.extend_from_slice(&T_STRING.to_le_bytes());+ data.extend_from_slice(&MAX_ARRAY_LEN.to_le_bytes());++ let meta = parse_header(&data, &["general.architecture"]).unwrap();+ assert_eq!(meta.get_str("general.architecture"), Some("whisper"));+ }++ #[test]+ fn skips_unwanted_arrays_without_storing_them() {+ let mut data = Vec::new();+ data.extend_from_slice(&GGUF_MAGIC.to_le_bytes());+ data.extend_from_slice(&3u32.to_le_bytes()); // version+ data.extend_from_slice(&0u64.to_le_bytes()); // tensor_count+ data.extend_from_slice(&2u64.to_le_bytes()); // kv_count++ push_str(&mut data, "unwanted.bytes");+ data.extend_from_slice(&T_ARRAY.to_le_bytes());+ data.extend_from_slice(&T_UINT8.to_le_bytes());+ data.extend_from_slice(&(MAX_STORED_ARRAY_LEN + 1).to_le_bytes());+ data.extend(std::iter::repeat(0).take((MAX_STORED_ARRAY_LEN + 1) as usize));++ push_str(&mut data, "general.architecture");+ data.extend_from_slice(&T_STRING.to_le_bytes());+ push_str(&mut data, "whisper");++ let meta = parse_header(&data, &["general.architecture"]).unwrap();+ assert_eq!(meta.get_str("general.architecture"), Some("whisper"));+ assert_eq!(meta.kv.len(), 1);+ }+}diff --git a/src-tauri/src/managers/history.rs b/src-tauri/src/managers/history.rsindex 8e1de924..c73b46c9 100644--- a/src-tauri/src/managers/history.rs+++ b/src-tauri/src/managers/history.rs@@ -333,16 +333,16 @@ impl HistoryManager {match retention_period {crate::settings::RecordingRetentionPeriod::Never => {// Don't delete anything- return Ok(());+ Ok(())}crate::settings::RecordingRetentionPeriod::PreserveLimit => {// Use the old count-based logic with history_limitlet limit = crate::settings::get_history_limit(&self.app_handle);- return self.cleanup_by_count(limit);+ self.cleanup_by_count(limit)}_ => {// Use time-based logic- return self.cleanup_by_time(retention_period);+ self.cleanup_by_time(retention_period)}}}diff --git a/src-tauri/src/managers/mod.rs b/src-tauri/src/managers/mod.rsindex 1239dc26..83450a0d 100644--- a/src-tauri/src/managers/mod.rs+++ b/src-tauri/src/managers/mod.rs@@ -1,4 +1,6 @@pub mod audio;+pub mod gguf_meta;pub mod history;pub mod model;+pub mod model_capabilities;pub mod transcription;diff --git a/src-tauri/src/managers/model.rs b/src-tauri/src/managers/model.rsindex 6fab71c1..ae735834 100644--- a/src-tauri/src/managers/model.rs+++ b/src-tauri/src/managers/model.rs@@ -1,7 +1,12 @@+use super::model_capabilities::{+ CapabilityProbe, CapabilityProber, Compatibility, GgufHeaderProber,+};use crate::settings::{get_settings, write_settings};use anyhow::Result;use flate2::read::GzDecoder;use futures_util::StreamExt;+use hf_hub::api::tokio::{ApiBuilder, CancellationToken, Progress};+use hf_hub::{Cache, Repo, RepoType};use log::{debug, info, warn};use serde::{Deserialize, Serialize};use sha2::{Digest, Sha256};@@ -19,7 +24,10 @@ use tauri::{AppHandle, Emitter, Manager};#[derive(Debug, Clone, Serialize, Deserialize, Type)]pub enum EngineType {- Whisper,+ /// 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,@@ -29,14 +37,32 @@ pub enum EngineType {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)]+pub enum ModelSource {+ /// Direct HTTP download from a URL (current blob.handy.computer hosting).+ Url {+ url: String,+ /// Expected SHA-256 for integrity verification; `None` skips it.+ sha256: Option<String>,+ },+ /// A file inside a Hugging Face Hub repo, fetched via hf-hub into the shared+ /// HF cache (so other tools reuse it). The file within the repo is+ /// [`ModelInfo::filename`].+ HuggingFace { repo_id: String, revision: String },+ /// Already present on disk — a user-provided custom model, or one discovered+ /// in a shared cache. Nothing to download.+ Local,+}+#[derive(Debug, Clone, Serialize, Deserialize, Type)]pub struct ModelInfo {pub id: String,pub name: String,pub description: String,pub filename: String,- pub url: Option<String>,- pub sha256: Option<String>,+ pub source: ModelSource,pub size_mb: u64,pub is_downloaded: bool,pub is_downloading: bool,@@ -50,6 +76,165 @@ pub struct ModelInfo {pub supported_languages: Vec<String>, // Languages this model can transcribepub supports_language_selection: bool, // Whether the user can explicitly pick a languagepub is_custom: bool, // Whether this is a user-provided custom model+ pub supports_streaming: bool, // Whether this model supports live streaming preview (transcribe-cpp)+ pub supports_language_detection: bool, // Whether the model can auto-detect language (gates the "Auto" option)+}++const CHINESE_LANGUAGE_CODE: &str = "zh";++fn recognition_language(language: &str) -> &str {+ match language {+ "zh-Hans" | "zh-Hant" => CHINESE_LANGUAGE_CODE,+ other => other,+ }+}++fn canonicalize_supported_languages(languages: Vec<String>) -> Vec<String> {+ let mut seen = HashSet::new();+ let mut canonical = Vec::with_capacity(languages.len());++ for language in languages {+ let language = recognition_language(&language).to_string();+ if seen.insert(language.clone()) {+ canonical.push(language);+ }+ }++ canonical+}++/// One downloadable quantization of a model. Mirrors a `files[]` entry in+/// `catalog.json`, so it deserializes straight from the catalog.+#[derive(Debug, Clone, Deserialize)]+pub struct QuantFile {+ pub filename: String,+ pub quant: String,+ pub size_bytes: u64,+}++/// Pick the default quant among `files`: the one whose `quant` matches+/// `default_quant`, else the first file. The single source of the "which file do+/// we surface" rule — shared by [`ModelDescriptor::default_file`] and the+/// catalog's id construction so the two can never drift.+pub(crate) fn default_quant_file<'a>(+ files: &'a [QuantFile],+ default_quant: Option<&str>,+) -> Option<&'a QuantFile> {+ files+ .iter()+ .find(|f| Some(f.quant.as_str()) == default_quant)+ .or_else(|| files.first())+}++/// Live, on-disk status — the half of [`ModelInfo`] that isn't part of the+/// static spec. Kept separate so a descriptor stays purely descriptive and+/// status can be recomputed without rebuilding it.+#[derive(Debug, Clone, Default)]+pub struct DiskStatus {+ pub is_downloaded: bool,+ pub is_downloading: bool,+ pub partial_size: u64,+}++/// The spec of a bundled catalog model: everything in `catalog.json` normalised+/// into one shape, rendered into the frontend-facing [`ModelInfo`] via+/// [`ModelDescriptor::to_model_info`] by combining it with a [`DiskStatus`].+/// (The catalog is the only producer that routes through this; the legacy table+/// and on-disk scans build `ModelInfo` directly.)+#[derive(Debug, Clone)]+pub struct ModelDescriptor {+ pub id: String,+ 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>,+ pub speed_score: f32,+ pub accuracy_score: f32,+ /// Editorial sort priority across the whole catalog (lower = higher). Drives+ /// list ordering; independent of `recommended`.+ pub recommended_rank: Option<u32>,+ /// Whether this is part of the small curated set shown to new users in+ /// onboarding (and badged "Recommended"). A model can be ranked for ordering+ /// without being in this set.+ pub recommended: bool,+}++impl ModelDescriptor {+ /// The quant we surface for download/size: the declared default, else the+ /// first file.+ fn default_file(&self) -> Option<&QuantFile> {+ default_quant_file(&self.files, self.default_quant.as_deref())+ }++ /// Render the frontend-facing [`ModelInfo`] by combining this spec with live+ /// disk `status`.+ pub fn to_model_info(&self, status: &DiskStatus) -> ModelInfo {+ let file = self.default_file();+ let languages =+ canonicalize_supported_languages(self.caps.languages.clone().unwrap_or_default());+ ModelInfo {+ id: self.id.clone(),+ name: self.name.clone(),+ description: self.description.clone(),+ filename: file.map(|f| f.filename.clone()).unwrap_or_default(),+ source: self.source.clone(),+ size_mb: file.map(|f| f.size_bytes / (1024 * 1024)).unwrap_or(0),+ 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),+ is_recommended: self.recommended,+ supports_language_selection: languages.len() > 1,+ supported_languages: languages,+ // Catalog models are always HF-sourced downloads, never user-dropped+ // custom files (those bypass the descriptor and set this directly).+ is_custom: false,+ supports_streaming: self.caps.supports_streaming.unwrap_or(false),+ supports_language_detection: self.caps.supports_language_detect.unwrap_or(false),+ }+ }+}++/// Resolve the user's persisted language *intent* (`"auto"` or a language code)+/// into the language a given model will actually use.+///+/// The canonical coercion used on every transcription path: computed at the+/// point of use and **never written back** to settings, so the user's last+/// explicit intent survives switching to an incompatible model and back.+pub fn effective_language(+ intent: &str,+ supported_languages: &[String],+ supports_language_detection: bool,+) -> String {+ if supported_languages.is_empty() {+ return intent.to_string();+ }++ if intent != "auto"+ && supported_languages+ .iter()+ .any(|language| recognition_language(language) == recognition_language(intent))+ {+ return intent.to_string();+ }++ if supports_language_detection {+ return "auto".to_string();+ }++ // Model can't auto-detect and the intent isn't usable: fall back to a+ // concrete language (prefer English) so we never hand the engine "auto".+ if let Some(en) = supported_languages.iter().find(|l| l.as_str() == "en") {+ return en.clone();+ }+ recognition_language(&supported_languages[0]).to_string()}#[derive(Debug, Clone, Serialize, Deserialize, Type)]@@ -60,12 +245,158 @@ pub struct DownloadProgress {pub percentage: f64,}+/// Resolve a Hugging Face model file in the shared HF cache, if already present.+/// Uses hf-hub's stock location (HF_HOME or ~/.cache/huggingface/hub) so+/// downloads are shared with other tools.+fn hf_cached_path(repo_id: &str, revision: &str, filename: &str) -> Option<PathBuf> {+ Cache::from_env()+ .repo(Repo::with_revision(+ repo_id.to_string(),+ RepoType::Model,+ revision.to_string(),+ ))+ .get(filename)+}++/// Friendly name advertised by GGUF metadata, if present. Empty strings are not+/// useful display names, so callers can keep their filename/repo fallback.+fn probed_display_name(probe: &CapabilityProbe) -> Option<String> {+ probe+ .display_name+ .as_deref()+ .map(str::trim)+ .filter(|name| !name.is_empty())+ .map(str::to_string)+}++/// Capability fields for a locally-discovered on-disk model, derived from its+/// GGUF header probe. Anything without readable GGUF metadata — a legacy `.bin`+/// file, or a header that simply omits a key — collapses to "no advertised+/// capability"; transcribe-cpp still reconciles the real values at load time.+/// Shared by both local discovery paths (custom models dir + HF cache) so they+/// surface capabilities identically.+struct LocalCaps {+ supports_streaming: bool,+ supports_translation: bool,+ supports_language_selection: bool,+ supports_language_detection: bool,+ supported_languages: Vec<String>,+}++fn local_caps(probe: &CapabilityProbe) -> LocalCaps {+ let languages = canonicalize_supported_languages(probe.languages.clone().unwrap_or_default());+ LocalCaps {+ supports_streaming: probe.supports_streaming.unwrap_or(false),+ supports_translation: probe.supports_translation.unwrap_or(false),+ // Only offer a language picker when there's more than one to choose.+ supports_language_selection: languages.len() > 1,+ supports_language_detection: probe.supports_language_detect.unwrap_or(false),+ supported_languages: languages,+ }+}++/// Bridges hf-hub's async download progress to Handy's `model-download-progress`+/// event. hf-hub clones the reporter, so shared state lives behind an `Arc`.+#[derive(Clone)]+struct HfDownloadProgress {+ app_handle: AppHandle,+ model_id: String,+ state: Arc<Mutex<HfProgressState>>,+}++struct HfProgressState {+ total: u64,+ downloaded: u64,+ last_emit: Instant,+}++impl HfDownloadProgress {+ fn new(app_handle: AppHandle, model_id: String) -> Self {+ Self {+ app_handle,+ model_id,+ state: Arc::new(Mutex::new(HfProgressState {+ total: 0,+ downloaded: 0,+ last_emit: Instant::now(),+ })),+ }+ }++ fn emit(&self, downloaded: u64, total: u64) {+ let percentage = if total > 0 {+ (downloaded as f64 / total as f64) * 100.0+ } else {+ 0.0+ };+ let _ = self.app_handle.emit(+ "model-download-progress",+ &DownloadProgress {+ model_id: self.model_id.clone(),+ downloaded,+ total,+ percentage,+ },+ );+ }+}++impl Progress for HfDownloadProgress {+ async fn init(&mut self, size: usize, _filename: &str) {+ {+ let mut st = self.state.lock().unwrap();+ st.total = size as u64;+ st.downloaded = 0;+ st.last_emit = Instant::now();+ }+ self.emit(0, size as u64);+ }++ async fn update(&mut self, size: usize) {+ let (downloaded, total, emit) = {+ let mut st = self.state.lock().unwrap();+ st.downloaded = st.downloaded.saturating_add(size as u64);+ let now = Instant::now();+ // Throttle to ~10 updates/sec, but always emit the final byte.+ let emit = now.duration_since(st.last_emit) >= Duration::from_millis(100)+ || (st.total > 0 && st.downloaded >= st.total);+ if emit {+ st.last_emit = now;+ }+ (st.downloaded, st.total, emit)+ };+ if emit {+ self.emit(downloaded, total);+ }+ }++ async fn finish(&mut self) {+ let total = {+ let st = self.state.lock().unwrap();+ st.total.max(st.downloaded)+ };+ self.emit(total, total);+ }+}++/// RAII guard that clears the `is_rescanning` single-flight flag on drop, so the+/// slot is released on every exit path (including early returns and `?`).+struct RescanGuard {+ flag: Arc<AtomicBool>,+}++impl Drop for RescanGuard {+ fn drop(&mut self) {+ self.flag.store(false, Ordering::SeqCst);+ }+}+/// RAII guard that cleans up download state (`is_downloading` flag and cancel flag)/// when dropped, unless explicitly disarmed. This ensures consistent cleanup on/// every error path without requiring manual cleanup at each `?` or `return Err`.struct DownloadCleanup<'a> {available_models: &'a Mutex<HashMap<String, ModelInfo>>,- cancel_flags: &'a Arc<Mutex<HashMap<String, Arc<AtomicBool>>>>,+ cancel_flags: &'a Arc<Mutex<HashMap<String, CancellationToken>>>,model_id: String,disarmed: bool,}@@ -89,8 +420,11 @@ pub struct ModelManager {app_handle: AppHandle,models_dir: PathBuf,available_models: Mutex<HashMap<String, ModelInfo>>,- cancel_flags: Arc<Mutex<HashMap<String, Arc<AtomicBool>>>>,+ 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>,}impl ModelManager {@@ -107,22 +441,20 @@ impl ModelManager {let mut available_models = HashMap::new();// Whisper supported languages (99 languages from tokenizer)- // Including zh-Hans and zh-Hant variants to match frontend language codeslet whisper_languages: Vec<String> = vec![- "en", "zh", "zh-Hans", "zh-Hant", "de", "es", "ru", "ko", "fr", "ja", "pt", "tr", "pl",- "ca", "nl", "ar", "sv", "it", "id", "hi", "fi", "vi", "he", "uk", "el", "ms", "cs",- "ro", "da", "hu", "ta", "no", "th", "ur", "hr", "bg", "lt", "la", "mi", "ml", "cy",- "sk", "te", "fa", "lv", "bn", "sr", "az", "sl", "kn", "et", "mk", "br", "eu", "is",- "hy", "ne", "mn", "bs", "kk", "sq", "sw", "gl", "mr", "pa", "si", "km", "sn", "yo",- "so", "af", "oc", "ka", "be", "tg", "sd", "gu", "am", "yi", "lo", "uz", "fo", "ht",- "ps", "tk", "nn", "mt", "sa", "lb", "my", "bo", "tl", "mg", "as", "tt", "haw", "ln",- "ha", "ba", "jw", "su", "yue",+ "en", "zh", "de", "es", "ru", "ko", "fr", "ja", "pt", "tr", "pl", "ca", "nl", "ar",+ "sv", "it", "id", "hi", "fi", "vi", "he", "uk", "el", "ms", "cs", "ro", "da", "hu",+ "ta", "no", "th", "ur", "hr", "bg", "lt", "la", "mi", "ml", "cy", "sk", "te", "fa",+ "lv", "bn", "sr", "az", "sl", "kn", "et", "mk", "br", "eu", "is", "hy", "ne", "mn",+ "bs", "kk", "sq", "sw", "gl", "mr", "pa", "si", "km", "sn", "yo", "so", "af", "oc",+ "ka", "be", "tg", "sd", "gu", "am", "yi", "lo", "uz", "fo", "ht", "ps", "tk", "nn",+ "mt", "sa", "lb", "my", "bo", "tl", "mg", "as", "tt", "haw", "ln", "ha", "ba", "jw",+ "su", "yue",].into_iter().map(String::from).collect();- // TODO this should be read from a JSON file or something..available_models.insert("small".to_string(),ModelInfo {@@ -130,16 +462,19 @@ impl ModelManager {name: "Whisper Small".to_string(),description: "Fast and fairly accurate.".to_string(),filename: "ggml-small.bin".to_string(),- url: Some("https://blob.handy.computer/ggml-small.bin".to_string()),- sha256: Some(- "1be3a9b2063867b937e64e2ec7483364a79917e157fa98c5d94b5c1fffea987b".to_string(),- ),+ source: ModelSource::Url {+ url: "https://blob.handy.computer/ggml-small.bin".to_string(),+ sha256: Some(+ "1be3a9b2063867b937e64e2ec7483364a79917e157fa98c5d94b5c1fffea987b"+ .to_string(),+ ),+ },size_mb: 465,is_downloaded: false,is_downloading: false,partial_size: 0,is_directory: false,- engine_type: EngineType::Whisper,+ engine_type: EngineType::TranscribeCpp,accuracy_score: 0.60,speed_score: 0.85,supports_translation: true,@@ -147,6 +482,8 @@ impl ModelManager {supported_languages: whisper_languages.clone(),supports_language_selection: true,is_custom: false,+ supports_streaming: false,+ supports_language_detection: true,},);@@ -158,16 +495,19 @@ impl ModelManager {name: "Whisper Medium".to_string(),description: "Good accuracy, medium speed".to_string(),filename: "whisper-medium-q4_1.bin".to_string(),- url: Some("https://blob.handy.computer/whisper-medium-q4_1.bin".to_string()),- sha256: Some(- "79283fc1f9fe12ca3248543fbd54b73292164d8df5a16e095e2bceeaaabddf57".to_string(),- ),+ source: ModelSource::Url {+ url: "https://blob.handy.computer/whisper-medium-q4_1.bin".to_string(),+ sha256: Some(+ "79283fc1f9fe12ca3248543fbd54b73292164d8df5a16e095e2bceeaaabddf57"+ .to_string(),+ ),+ },size_mb: 469,is_downloaded: false,is_downloading: false,partial_size: 0,is_directory: false,- engine_type: EngineType::Whisper,+ engine_type: EngineType::TranscribeCpp,accuracy_score: 0.75,speed_score: 0.60,supports_translation: true,@@ -175,6 +515,8 @@ impl ModelManager {supported_languages: whisper_languages.clone(),supports_language_selection: true,is_custom: false,+ supports_streaming: false,+ supports_language_detection: true,},);@@ -185,16 +527,19 @@ impl ModelManager {name: "Whisper Turbo".to_string(),description: "Balanced accuracy and speed.".to_string(),filename: "ggml-large-v3-turbo.bin".to_string(),- url: Some("https://blob.handy.computer/ggml-large-v3-turbo.bin".to_string()),- sha256: Some(- "1fc70f774d38eb169993ac391eea357ef47c88757ef72ee5943879b7e8e2bc69".to_string(),- ),+ source: ModelSource::Url {+ url: "https://blob.handy.computer/ggml-large-v3-turbo.bin".to_string(),+ sha256: Some(+ "1fc70f774d38eb169993ac391eea357ef47c88757ef72ee5943879b7e8e2bc69"+ .to_string(),+ ),+ },size_mb: 1549,is_downloaded: false,is_downloading: false,partial_size: 0,is_directory: false,- engine_type: EngineType::Whisper,+ engine_type: EngineType::TranscribeCpp,accuracy_score: 0.80,speed_score: 0.40,supports_translation: false, // Turbo doesn't support translation@@ -202,6 +547,8 @@ impl ModelManager {supported_languages: whisper_languages.clone(),supports_language_selection: true,is_custom: false,+ supports_streaming: false,+ supports_language_detection: true,},);@@ -212,16 +559,19 @@ impl ModelManager {name: "Whisper Large".to_string(),description: "Good accuracy, but slow.".to_string(),filename: "ggml-large-v3-q5_0.bin".to_string(),- url: Some("https://blob.handy.computer/ggml-large-v3-q5_0.bin".to_string()),- sha256: Some(- "d75795ecff3f83b5faa89d1900604ad8c780abd5739fae406de19f23ecd98ad1".to_string(),- ),+ source: ModelSource::Url {+ url: "https://blob.handy.computer/ggml-large-v3-q5_0.bin".to_string(),+ sha256: Some(+ "d75795ecff3f83b5faa89d1900604ad8c780abd5739fae406de19f23ecd98ad1"+ .to_string(),+ ),+ },size_mb: 1031,is_downloaded: false,is_downloading: false,partial_size: 0,is_directory: false,- engine_type: EngineType::Whisper,+ engine_type: EngineType::TranscribeCpp,accuracy_score: 0.85,speed_score: 0.30,supports_translation: true,@@ -229,6 +579,8 @@ impl ModelManager {supported_languages: whisper_languages.clone(),supports_language_selection: true,is_custom: false,+ supports_streaming: false,+ supports_language_detection: true,},);@@ -240,16 +592,19 @@ impl ModelManager {description: "Optimized for Taiwanese Mandarin. Code-switching support.".to_string(),filename: "breeze-asr-q5_k.bin".to_string(),- url: Some("https://blob.handy.computer/breeze-asr-q5_k.bin".to_string()),- sha256: Some(- "8efbf0ce8a3f50fe332b7617da787fb81354b358c288b008d3bdef8359df64c6".to_string(),- ),+ source: ModelSource::Url {+ url: "https://blob.handy.computer/breeze-asr-q5_k.bin".to_string(),+ sha256: Some(+ "8efbf0ce8a3f50fe332b7617da787fb81354b358c288b008d3bdef8359df64c6"+ .to_string(),+ ),+ },size_mb: 1030,is_downloaded: false,is_downloading: false,partial_size: 0,is_directory: false,- engine_type: EngineType::Whisper,+ engine_type: EngineType::TranscribeCpp,accuracy_score: 0.85,speed_score: 0.35,supports_translation: false,@@ -257,6 +612,8 @@ impl ModelManager {supported_languages: whisper_languages,supports_language_selection: true,is_custom: false,+ supports_streaming: false,+ supports_language_detection: true,},);@@ -268,10 +625,13 @@ impl ModelManager {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- url: Some("https://blob.handy.computer/parakeet-v2-int8.tar.gz".to_string()),- sha256: Some(- "ac9b9429984dd565b25097337a887bb7f0f8ac393573661c651f0e7d31563991".to_string(),- ),+ 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,@@ -285,6 +645,8 @@ impl ModelManager {supported_languages: vec!["en".to_string()],supports_language_selection: false,is_custom: false,+ supports_streaming: false,+ supports_language_detection: true,},);@@ -305,10 +667,13 @@ impl ModelManager {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- url: Some("https://blob.handy.computer/parakeet-v3-int8.tar.gz".to_string()),- sha256: Some(- "43d37191602727524a7d8c6da0eef11c4ba24320f5b4730f1a2497befc2efa77".to_string(),- ),+ 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,@@ -322,6 +687,8 @@ impl ModelManager {supported_languages: parakeet_v3_languages,supports_language_selection: false,is_custom: false,+ supports_streaming: false,+ supports_language_detection: true,},);@@ -332,10 +699,13 @@ impl ModelManager {name: "Moonshine Base".to_string(),description: "Very fast, English only. Handles accents well.".to_string(),filename: "moonshine-base".to_string(),- url: Some("https://blob.handy.computer/moonshine-base.tar.gz".to_string()),- sha256: Some(- "04bf6ab012cfceebd4ac7cf88c1b31d027bbdd3cd704649b692e2e935236b7e8".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,@@ -349,6 +719,8 @@ impl ModelManager {supported_languages: vec!["en".to_string()],supports_language_selection: false,is_custom: false,+ supports_streaming: false,+ supports_language_detection: true,},);@@ -359,12 +731,14 @@ impl ModelManager {name: "Moonshine V2 Tiny".to_string(),description: "Ultra-fast, English only".to_string(),filename: "moonshine-tiny-streaming-en".to_string(),- url: Some(- "https://blob.handy.computer/moonshine-tiny-streaming-en.tar.gz".to_string(),- ),- sha256: Some(- "465addcfca9e86117415677dfdc98b21edc53537210333a3ecdb58509a80abaf".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,@@ -378,6 +752,8 @@ impl ModelManager {supported_languages: vec!["en".to_string()],supports_language_selection: false,is_custom: false,+ supports_streaming: false,+ supports_language_detection: true,},);@@ -388,12 +764,14 @@ impl ModelManager {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(),- url: Some(- "https://blob.handy.computer/moonshine-small-streaming-en.tar.gz".to_string(),- ),- sha256: Some(- "dbb3e1c1832bd88a4ac712f7449a136cc2c9a18c5fe33a12ed1b7cb1cfe9cdd5".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,@@ -407,6 +785,8 @@ impl ModelManager {supported_languages: vec!["en".to_string()],supports_language_selection: false,is_custom: false,+ supports_streaming: false,+ supports_language_detection: true,},);@@ -417,12 +797,14 @@ impl ModelManager {name: "Moonshine V2 Medium".to_string(),description: "English only. High quality.".to_string(),filename: "moonshine-medium-streaming-en".to_string(),- url: Some(- "https://blob.handy.computer/moonshine-medium-streaming-en.tar.gz".to_string(),- ),- sha256: Some(- "07a66f3bff1c77e75a2f637e5a263928a08baae3c29c4c053fc968a9a9373d13".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,@@ -436,15 +818,16 @@ impl ModelManager {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", "zh-Hans", "zh-Hant", "en", "yue", "ja", "ko"]- .into_iter()- .map(String::from)- .collect();+ 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(),@@ -454,10 +837,13 @@ impl ModelManager {description: "Very fast. Chinese, English, Japanese, Korean, Cantonese.".to_string(),filename: "sense-voice-int8".to_string(),- url: Some("https://blob.handy.computer/sense-voice-int8.tar.gz".to_string()),- sha256: Some(- "171d611fe5d353a50bbb741b6f3ef42559b1565685684e9aa888ef563ba3e8a4".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,@@ -471,6 +857,8 @@ impl ModelManager {supported_languages: sense_voice_languages,supports_language_selection: true,is_custom: false,+ supports_streaming: false,+ supports_language_detection: true,},);@@ -484,10 +872,13 @@ impl ModelManager {name: "GigaAM v3".to_string(),description: "Russian speech recognition. Fast and accurate.".to_string(),filename: "giga-am-v3-int8".to_string(),- url: Some("https://blob.handy.computer/giga-am-v3-int8.tar.gz".to_string()),- sha256: Some(- "d872462268430db140b69b72e0fc4b787b194c1dbe51b58de39444d55b6da45b".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,@@ -501,6 +892,8 @@ impl ModelManager {supported_languages: gigaam_languages,supports_language_selection: false,is_custom: false,+ supports_streaming: false,+ supports_language_detection: true,},);@@ -518,10 +911,13 @@ impl ModelManager {description: "Very fast. English, German, Spanish, French. Supports translation.".to_string(),filename: "canary-180m-flash".to_string(),- url: Some("https://blob.handy.computer/canary-180m-flash.tar.gz".to_string()),- sha256: Some(- "6d9cfca6118b296e196eaedc1c8fa9788305a7b0f1feafdb6dc91932ab6e53f7".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,@@ -535,6 +931,9 @@ impl ModelManager {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,},);@@ -555,10 +954,13 @@ impl ModelManager {description: "Accurate multilingual. 25 European languages. Supports translation.".to_string(),filename: "canary-1b-v2".to_string(),- url: Some("https://blob.handy.computer/canary-1b-v2.tar.gz".to_string()),- sha256: Some(- "02305b2a25f9cf3e7deaffa7f94df00efa44f442cd55c101c2cb9c000f904666".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,@@ -572,12 +974,14 @@ impl ModelManager {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", "zh-Hans", "zh-Hant", "ja",- "ko", "vi", "ar",+ "en", "fr", "de", "it", "es", "pt", "el", "nl", "pl", "zh", "ja", "ko", "vi", "ar",].into_iter().map(String::from)@@ -590,10 +994,13 @@ impl ModelManager {name: "Cohere".to_string(),description: "A large, slower, but very accurate multilingual model.".to_string(),filename: "cohere-int8".to_string(),- url: Some("https://blob.handy.computer/cohere-int8.tar.gz".to_string()),- sha256: Some(- "ea2257d52434f3644574f187dcdcf666e302cd11b92866116ab8e14cd9c887f0".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,@@ -607,20 +1014,33 @@ impl ModelManager {supported_languages: cohere_languages,supports_language_selection: true,is_custom: false,+ supports_streaming: false,+ supports_language_detection: true,},);- // Auto-discover custom Whisper models (.bin files) in the models directory- if let Err(e) = Self::discover_custom_whisper_models(&models_dir, &mut available_models) {+ // 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+ // find. Additive — see `seed_catalog_models`.+ Self::seed_catalog_models(&mut available_models);++ // Auto-discover custom transcribe-cpp models (.bin / .gguf) in the models directory+ if let Err(e) = Self::discover_custom_transcribe_models(&models_dir, &mut available_models)+ {warn!("Failed to discover custom models: {}", e);}+ // Auto-discover transcribe-cpp GGUF models already in the shared HF cache.+ Self::discover_hf_cache_models(&mut available_models);+let manager = Self {app_handle: app_handle.clone(),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@@ -639,8 +1059,107 @@ impl ModelManager {}pub fn get_available_models(&self) -> Vec<ModelInfo> {- let models = self.available_models.lock().unwrap();- models.values().cloned().collect()+ let mut list: Vec<ModelInfo> = {+ let models = self.available_models.lock().unwrap();+ models.values().cloned().collect()+ };+ // Stable, reasonable order: catalog editorial rank first (lower = higher+ // priority), then any other recommended model, then by accuracy, speed,+ // and name. `ModelInfo` doesn't carry rank, so resolve it by id from the+ // catalog here.+ list.sort_by(|a, b| {+ crate::catalog::rank_of(&a.id)+ .cmp(&crate::catalog::rank_of(&b.id))+ .then((!a.is_recommended).cmp(&(!b.is_recommended)))+ .then(b.accuracy_score.total_cmp(&a.accuracy_score))+ .then(b.speed_score.total_cmp(&a.speed_score))+ .then_with(|| a.name.cmp(&b.name))+ });+ list+ }++ /// Seed the bundled catalog ([`crate::catalog::CATALOG`]) into the registry,+ /// inserting each model whose id isn't already present (additive).+ ///+ /// Catalog (`.gguf`, `HuggingFace`) and legacy (`.bin`/ONNX, `Url`) entries+ /// stay SEPARATE — different files, ids, and runtimes. Nothing is merged or+ /// removed; the UI just hides not-on-disk `Url` entries to deprecate legacy+ /// downloads, while already-downloaded ones stay runnable. Runs before the+ /// on-disk scans so a cached model dedups onto its catalog entry.+ fn seed_catalog_models(available_models: &mut HashMap<String, ModelInfo>) {+ use std::collections::hash_map::Entry;+ let mut added = 0usize;+ for desc in crate::catalog::CATALOG.iter() {+ if let Entry::Vacant(slot) = available_models.entry(desc.id.clone()) {+ slot.insert(desc.to_model_info(&DiskStatus::default()));+ added += 1;+ }+ }+ info!("Seeded {} catalog model(s) into the registry", added);+ }++ /// Claim the single rescan slot. Returns a guard that releases it on drop,+ /// or `None` if a rescan is already running (callers should just skip).+ fn try_start_rescan(&self) -> Option<RescanGuard> {+ if self.is_rescanning.swap(true, Ordering::SeqCst) {+ None+ } else {+ Some(RescanGuard {+ flag: self.is_rescanning.clone(),+ })+ }+ }++ /// Re-run the local discovery scans (custom models dir + shared HF cache) so+ /// models dropped in or downloaded outside Handy show up without a restart.+ /// The merge is additive: only new ids are inserted, so existing entries keep+ /// their values — including runtime-probed capabilities from+ /// [`Self::set_runtime_capabilities`]. It then runs [`Self::update_download_status`],+ /// which recomputes disk-derived flags for *every* entry; a rescan racing an+ /// in-flight download can briefly clear its `is_downloading`, but the download+ /// continues and the event-driven UI self-corrects.+ ///+ /// The disk walk and 64 KiB header probes run against a cloned snapshot+ /// *off-lock* so readers never block on I/O; only the brief merge takes the+ /// registry lock. Concurrent calls coalesce via [`Self::try_start_rescan`].+ pub fn rescan_local_models(&self) -> Result<()> {+ let _guard = match self.try_start_rescan() {+ Some(g) => g,+ None => {+ debug!("Model rescan already in progress; skipping");+ return Ok(());+ }+ };++ // Snapshot the current registry and discover against the copy off-lock.+ // The discover_* helpers are purely additive (they skip ids already in+ // the map), so the snapshot ends up as {current} ∪ {newly-found}.+ let mut snapshot = self.available_models.lock().unwrap().clone();+ if let Err(e) = Self::discover_custom_transcribe_models(&self.models_dir, &mut snapshot) {+ warn!("Rescan: failed to discover custom models: {}", e);+ }+ Self::discover_hf_cache_models(&mut snapshot);++ // Merge only the genuinely-new ids back into the live registry. `or_insert`+ // leaves every existing entry exactly as it was.+ let mut added = 0usize;+ {+ let mut live = self.available_models.lock().unwrap();+ for (id, info) in snapshot {+ if let std::collections::hash_map::Entry::Vacant(entry) = live.entry(id) {+ entry.insert(info);+ added += 1;+ }+ }+ }++ self.update_download_status()?;+ self.auto_select_model_if_needed()?;+ if added > 0 {+ info!("Model rescan discovered {} new model(s)", added);+ }+ let _ = self.app_handle.emit("models-updated", ());+ Ok(())}pub fn get_model_info(&self, model_id: &str) -> Option<ModelInfo> {@@ -648,13 +1167,50 @@ impl ModelManager {models.get(model_id).cloned()}+ /// Reconcile a model's advertised capabilities with the ground truth from the+ /// loaded model (transcribe-cpp's GGUF-derived capabilities), overwriting the+ /// pre-download view (catalog metadata or a header probe — see+ /// [`super::model_capabilities`]).+ ///+ /// This corrects the header probe's gaps. It matters most for **streaming**+ /// (transcribe-cpp infers it at load for parakeet/streaming families, where+ /// the flat GGUF key can be absent, and it gates whether streaming is even+ /// attempted — see `actions.rs`) and for **language detection** / the+ /// **supported-language set**, which feed [`effective_language`]; a mislabeled+ /// header would otherwise coerce an "auto" intent to a forced language for good.+ /// Translate is reconciled too for badge accuracy, though run paths re-read it+ /// live regardless.+ pub fn set_runtime_capabilities(+ &self,+ model_id: &str,+ supports_streaming: bool,+ supports_translation: bool,+ supports_language_detection: bool,+ supported_languages: Vec<String>,+ ) {+ let supported_languages = canonicalize_supported_languages(supported_languages);+ let mut models = self.available_models.lock().unwrap();+ if let Some(model) = models.get_mut(model_id) {+ model.supports_streaming = supports_streaming;+ model.supports_translation = supports_translation;+ model.supports_language_detection = supports_language_detection;+ // An empty set means the model is language-agnostic — but it is also+ // what a failed capability read leaves behind, so keep the probed /+ // catalog list rather than blanking a known one to nothing.+ if !supported_languages.is_empty() {+ model.supports_language_selection = supported_languages.len() > 1;+ model.supported_languages = supported_languages;+ }+ }+ }+fn migrate_bundled_models(&self) -> Result<()> {// Check for bundled models and copy them to user directorylet bundled_models = ["ggml-small.bin"]; // Add other bundled models here if anyfor filename in &bundled_models {let bundled_path = self.app_handle.path().resolve(- &format!("resources/models/{}", filename),+ format!("resources/models/{}", filename),tauri::path::BaseDirectory::Resource,);@@ -723,6 +1279,12 @@ impl ModelManager {let mut models = self.available_models.lock().unwrap();for model in models.values_mut() {+ if let ModelSource::HuggingFace { repo_id, revision } = &model.source {+ model.is_downloaded = hf_cached_path(repo_id, revision, &model.filename).is_some();+ model.is_downloading = false;+ model.partial_size = 0;+ continue;+ }if model.is_directory {// For directory-based models, check if the directory existslet model_path = self.models_dir.join(&model.filename);@@ -791,11 +1353,22 @@ impl ModelManager {}}- // If no model is selected, pick the first downloaded one+ // If onboarding is still pending, do not auto-select just because a+ // compatible model exists on disk or in the shared HF cache. The+ // onboarding model step should present that choice explicitly.+ if !settings.onboarding_completed {+ debug!("Skipping model auto-selection until onboarding is complete");+ return Ok(());+ }++ // If no model is selected, pick the first downloaded one using the same+ // ranked order the UI receives.if settings.selected_model.is_empty() {- // Find the first available (downloaded) model- let models = self.available_models.lock().unwrap();- if let Some(available_model) = models.values().find(|model| model.is_downloaded) {+ if let Some(available_model) = self+ .get_available_models()+ .into_iter()+ .find(|model| model.is_downloaded)+ {info!("Auto-selecting model: {} ({})",available_model.id, available_model.name@@ -813,9 +1386,10 @@ impl ModelManager {Ok(())}- /// Discover custom Whisper models (.bin files) in the models directory.+ /// Discover custom Whisper-family models in the models directory: legacy+ /// GGML `.bin` files and `.gguf` files (both load through transcribe-cpp)./// Skips files that match predefined model filenames.- fn discover_custom_whisper_models(+ fn discover_custom_transcribe_models(models_dir: &Path,available_models: &mut HashMap<String, ModelInfo>,) -> Result<()> {@@ -823,14 +1397,14 @@ impl ModelManager {return Ok(());}- // Collect filenames of predefined Whisper file-based models to skip+ // Collect filenames of predefined transcribe-cpp file-based models to skiplet predefined_filenames: HashSet<String> = available_models.values()- .filter(|m| matches!(m.engine_type, EngineType::Whisper) && !m.is_directory)+ .filter(|m| matches!(m.engine_type, EngineType::TranscribeCpp) && !m.is_directory).map(|m| m.filename.clone()).collect();- // Scan models directory for .bin files+ // Scan models directory for .bin / .gguf filesfor entry in fs::read_dir(models_dir)? {let entry = match entry {Ok(e) => e,@@ -842,7 +1416,7 @@ impl ModelManager {let path = entry.path();- // Only process .bin files (not directories)+ // Skip directories; the .bin / .gguf extension filter is below.if !path.is_file() {continue;}@@ -857,28 +1431,31 @@ impl ModelManager {continue;}- // Only process .bin files (Whisper GGML format).- // This also excludes .partial downloads (e.g., "model.bin.partial").- // If we add discovery for other formats, add a .partial check before this filter.- if !filename.ends_with(".bin") {+ // Only process Whisper-family model files: legacy GGML `.bin` or+ // GGUF `.gguf` (both load through transcribe-cpp). Anything else —+ // including `.partial` downloads like "model.bin.partial" — is+ // skipped, since it ends in neither extension. The model ID is the+ // filename with its extension removed.+ let (model_id, is_gguf) = if let Some(stem) = filename.strip_suffix(".bin") {+ (stem.to_string(), false)+ } else if let Some(stem) = filename.strip_suffix(".gguf") {+ (stem.to_string(), true)+ } else {continue;- }+ };// Skip predefined model filesif predefined_filenames.contains(&filename) {continue;}- // Generate model ID from filename (remove .bin extension)- let model_id = filename.trim_end_matches(".bin").to_string();-// Skip if model ID already exists (shouldn't happen, but be safe)if available_models.contains_key(&model_id) {continue;}// Generate display name: replace - and _ with space, capitalize words- let display_name = model_id+ let fallback_display_name = model_id.replace(['-', '_'], " ").split_whitespace().map(|word| {@@ -900,9 +1477,21 @@ impl ModelManager {}};+ // Probe GGUF headers for advertised capabilities so a dropped-in+ // model surfaces streaming / translation / languages just like a+ // Handy-downloaded one. Legacy `.bin` files have no GGUF header, so+ // they stay "unknown" until transcribe-cpp reconciles them at load.+ let probe = if is_gguf {+ GgufHeaderProber.probe_file(&path)+ } else {+ CapabilityProbe::default()+ };+ let caps = local_caps(&probe);+ let display_name = probed_display_name(&probe).unwrap_or(fallback_display_name);+info!(- "Discovered custom Whisper model: {} ({}, {} MB)",- model_id, filename, size_mb+ "Discovered custom transcribe-cpp model: {} ({}, {} MB, streaming={})",+ model_id, filename, size_mb, caps.supports_streaming);available_models.insert(@@ -912,21 +1501,22 @@ impl ModelManager {name: display_name,description: "Not officially supported".to_string(),filename,- url: None, // Custom models have no download URL- sha256: None, // Custom models skip verification+ source: ModelSource::Local, // already on disk; nothing to downloadsize_mb,is_downloaded: true, // Already present on diskis_downloading: false,partial_size: 0,is_directory: false,- engine_type: EngineType::Whisper,+ engine_type: EngineType::TranscribeCpp,accuracy_score: 0.0, // Sentinel: UI hides score bars when both are 0speed_score: 0.0,- supports_translation: false,+ supports_translation: caps.supports_translation,is_recommended: false,- supported_languages: vec![],- supports_language_selection: true,+ supported_languages: caps.supported_languages,+ supports_language_selection: caps.supports_language_selection,is_custom: true,+ supports_streaming: caps.supports_streaming,+ supports_language_detection: caps.supports_language_detection,},);}@@ -934,6 +1524,141 @@ impl ModelManager {Ok(())}+ /// Discover transcribe-cpp-compatible GGUF models already present in the+ /// shared Hugging Face cache, so models downloaded by Handy (or any other+ /// tool) appear in "Your Models" without re-downloading. Only architectures+ /// transcribe-cpp recognises are surfaced; arbitrary (e.g. LLM) GGUFs that+ /// share the cache are ignored.+ fn discover_hf_cache_models(available_models: &mut HashMap<String, ModelInfo>) {+ Self::discover_hf_cache_models_in(Cache::from_env().path(), available_models);+ }++ /// Scan a Hugging Face cache root (`<cache>/models--*`) for GGUF snapshots.+ /// Split from [`Self::discover_hf_cache_models`] so it can be tested against+ /// a synthetic cache directory.+ fn discover_hf_cache_models_in(+ cache_root: &Path,+ available_models: &mut HashMap<String, ModelInfo>,+ ) {+ if !cache_root.is_dir() {+ return;+ }++ // Repo+file pairs already represented (e.g. recommended/added models) so+ // the same file is not listed twice.+ let known_hf: HashSet<(String, String)> = available_models+ .values()+ .filter_map(|m| match &m.source {+ ModelSource::HuggingFace { repo_id, .. } => {+ Some((repo_id.clone(), m.filename.clone()))+ }+ _ => None,+ })+ .collect();++ let prober = GgufHeaderProber;++ let entries = match fs::read_dir(cache_root) {+ Ok(entries) => entries,+ Err(_) => return,+ };++ for entry in entries.flatten() {+ let folder = entry.file_name();+ let folder = folder.to_string_lossy();+ let Some(rest) = folder.strip_prefix("models--") else {+ continue;+ };+ // Reverse hf-hub's `org/name` -> `models--org--name` folder naming.+ let repo_id = rest.replace("--", "/");++ let refs_dir = entry.path().join("refs");+ let Some(revision) = Self::pick_hf_revision(&refs_dir) else {+ continue;+ };+ let Ok(commit) = fs::read_to_string(refs_dir.join(&revision)) else {+ continue;+ };+ let snapshot = entry.path().join("snapshots").join(commit.trim());+ let Ok(files) = fs::read_dir(&snapshot) else {+ continue;+ };++ for file in files.flatten() {+ let fname = file.file_name().to_string_lossy().to_string();+ if !fname.ends_with(".gguf") {+ continue;+ }+ if known_hf.contains(&(repo_id.clone(), fname.clone())) {+ continue;+ }+ let model_id = format!("{}/{}", repo_id, fname);+ if available_models.contains_key(&model_id) {+ continue;+ }++ let path = snapshot.join(&fname);+ let probe = prober.probe_file(&path);+ // Only surface models transcribe-cpp recognises.+ if probe.verdict != Compatibility::Compatible {+ continue;+ }+ let caps = local_caps(&probe);++ let size_mb = path+ .metadata()+ .map(|m| m.len() / (1024 * 1024))+ .unwrap_or(0);+ let display = probed_display_name(&probe)+ .unwrap_or_else(|| fname.trim_end_matches(".gguf").to_string());++ info!("Discovered HF cache model: {} ({})", model_id, repo_id);+ available_models.insert(+ model_id.clone(),+ ModelInfo {+ id: model_id,+ name: display,+ description: format!("From Hugging Face cache: {}", repo_id),+ filename: fname,+ source: ModelSource::HuggingFace {+ repo_id: repo_id.clone(),+ revision: revision.clone(),+ },+ size_mb,+ 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,+ is_recommended: false,+ supported_languages: caps.supported_languages,+ supports_language_selection: caps.supports_language_selection,+ is_custom: false,+ supports_streaming: caps.supports_streaming,+ supports_language_detection: caps.supports_language_detection,+ },+ );+ }+ }+ }++ /// Pick a cache ref to resolve a snapshot from, preferring `main`.+ fn pick_hf_revision(refs_dir: &Path) -> Option<String> {+ if refs_dir.join("main").is_file() {+ return Some("main".to_string());+ }+ fs::read_dir(refs_dir).ok()?.flatten().find_map(|e| {+ if e.path().is_file() {+ e.file_name().to_str().map(str::to_string)+ } else {+ None+ }+ })+ }+/// Verifies the SHA256 of `path` against `expected_sha256` (if provided)./// On mismatch or read error the partial file is deleted and an error is returned,/// so the next download attempt always starts from a clean state.@@ -984,6 +1709,93 @@ impl ModelManager {Ok(format!("{:x}", hasher.finalize()))}+ /// Download a Hugging Face-sourced model into the shared HF cache via+ /// hf-hub, reporting progress through the same `model-download-progress`+ /// event the URL path uses. Relies on hf-hub's stock token + cache (no+ /// custom environment wiring).+ async fn download_hf_model(+ &self,+ model_info: &ModelInfo,+ repo_id: String,+ revision: String,+ ) -> Result<()> {+ let model_id = model_info.id.clone();+ let filename = model_info.filename.clone();++ // Already in the shared cache (possibly from another tool)? Done.+ if hf_cached_path(&repo_id, &revision, &filename).is_some() {+ self.update_download_status()?;+ let _ = self.app_handle.emit("model-download-complete", &model_id);+ return Ok(());+ }++ // Mark downloading; the guard resets the flag on any error path.+ {+ let mut models = self.available_models.lock().unwrap();+ if let Some(model) = models.get_mut(&model_id) {+ model.is_downloading = true;+ }+ }++ // Register a cancellation token so `cancel_download` can abort this+ // transfer promptly. The guard removes it on every exit path.+ let cancel_token = CancellationToken::new();+ {+ let mut flags = self.cancel_flags.lock().unwrap();+ flags.insert(model_id.clone(), cancel_token.clone());+ }++ let mut cleanup = DownloadCleanup {+ available_models: &self.available_models,+ cancel_flags: &self.cancel_flags,+ model_id: model_id.clone(),+ disarmed: false,+ };++ info!(+ "Downloading HF model {} from {}@{} ({})",+ model_id, repo_id, revision, filename+ );++ // Download chunks in parallel (default is 1 = sequential). Throughput+ // scales near-linearly with this count because each connection is capped+ // (~8 MB/s observed per stream), so we stack several to approach the+ // link's real bandwidth. 8 stays light on CPU/RAM (~80 MB peak buffers)+ // even on older machines and is browser-like in connection count.+ let api = ApiBuilder::from_env()+ .with_progress(false)+ .with_max_files(8)+ .build()+ .map_err(|e| anyhow::anyhow!("Failed to init Hugging Face API: {}", e))?;+ let repo = api.repo(Repo::with_revision(repo_id, RepoType::Model, revision));+ let progress = HfDownloadProgress::new(self.app_handle.clone(), model_id.clone());+ match repo+ .download_with_progress_cancellable(&filename, progress, cancel_token)+ .await+ {+ Ok(_) => {}+ Err(hf_hub::api::tokio::ApiError::Cancelled) => {+ // User cancelled. hf-hub leaves the partially downloaded+ // `.sync.part` in the shared cache, so a later attempt resumes+ // instead of restarting. The guard resets is_downloading and+ // drops the token; `cancel_download` already emitted+ // `model-download-cancelled`.+ info!("HF download cancelled for: {}", model_id);+ return Ok(());+ }+ Err(e) => {+ return Err(anyhow::anyhow!("Hugging Face download failed: {}", e));+ }+ }++ cleanup.disarmed = true;+ self.update_download_status()?;+ self.cancel_flags.lock().unwrap().remove(&model_id);+ let _ = self.app_handle.emit("model-download-complete", &model_id);+ info!("HF model {} downloaded", model_id);+ Ok(())+ }+pub async fn download_model(&self, model_id: &str) -> Result<()> {let model_info = {let models = self.available_models.lock().unwrap();@@ -993,9 +1805,17 @@ impl ModelManager {let model_info =model_info.ok_or_else(|| anyhow::anyhow!("Model not found: {}", model_id))?;- let url = model_info- .url- .ok_or_else(|| anyhow::anyhow!("No download URL for model"))?;+ let (url, expected_sha256) = match &model_info.source {+ ModelSource::Url { url, sha256 } => (url.clone(), sha256.clone()),+ ModelSource::HuggingFace { repo_id, revision } => {+ return self+ .download_hf_model(&model_info, repo_id.clone(), revision.clone())+ .await;+ }+ ModelSource::Local => {+ return Err(anyhow::anyhow!("No download source for model"));+ }+ };let model_path = self.models_dir.join(&model_info.filename);let partial_path = self.models_dir@@ -1029,11 +1849,11 @@ impl ModelManager {}}- // Create cancellation flag for this download- let cancel_flag = Arc::new(AtomicBool::new(false));+ // Create cancellation token for this download+ let cancel_token = CancellationToken::new();{let mut flags = self.cancel_flags.lock().unwrap();- flags.insert(model_id.to_string(), cancel_flag.clone());+ flags.insert(model_id.to_string(), cancel_token.clone());}// Guard ensures is_downloading and cancel_flags are cleaned up on every@@ -1125,7 +1945,7 @@ impl ModelManager {// Download with progresswhile let Some(chunk) = stream.next().await {// Check if download was cancelled- if cancel_flag.load(Ordering::Relaxed) {+ if cancel_token.is_cancelled() {drop(file);info!("Download cancelled for: {}", model_id);// Keep partial file for resume functionality.@@ -1195,7 +2015,7 @@ impl ModelManager {let _ = self.app_handle.emit("model-verification-started", model_id);info!("Verifying SHA256 for model {}...", model_id);let verify_path = partial_path.clone();- let verify_expected = model_info.sha256.clone();+ let verify_expected = expected_sha256.clone();let verify_model_id = model_id.to_string();let verify_result = tokio::task::spawn_blocking(move || {Self::verify_sha256(&verify_path, verify_expected.as_deref(), &verify_model_id)@@ -1337,6 +2157,32 @@ impl ModelManager {debug!("ModelManager: Found model info: {:?}", model_info);+ if let ModelSource::HuggingFace { repo_id, revision } = &model_info.source {+ // Cached at <cache>/models--org--name/snapshots/<rev>/<file>; remove+ // the whole repo dir (blobs + refs + snapshots). Per product decision,+ // delete hard-removes from the shared HF cache.+ let mut deleted = false;+ if let Some(file) = hf_cached_path(repo_id, revision, &model_info.filename) {+ if let Some(repo_dir) = file.ancestors().nth(3) {+ if repo_dir+ .file_name()+ .and_then(|n| n.to_str())+ .is_some_and(|n| n.starts_with("models--"))+ {+ info!("Deleting HF cache repo at: {:?}", repo_dir);+ fs::remove_dir_all(repo_dir)?;+ deleted = true;+ }+ }+ }+ if !deleted {+ return Err(anyhow::anyhow!("No model files found to delete"));+ }+ self.update_download_status()?;+ let _ = self.app_handle.emit("model-deleted", model_id);+ return Ok(());+ }+let model_path = self.models_dir.join(&model_info.filename);let partial_path = self.models_dir@@ -1411,6 +2257,12 @@ impl ModelManager {));}+ if let ModelSource::HuggingFace { repo_id, revision } = &model_info.source {+ return hf_cached_path(repo_id, revision, &model_info.filename).ok_or_else(|| {+ anyhow::anyhow!("Complete model file not found in HF cache: {}", model_id)+ });+ }+let model_path = self.models_dir.join(&model_info.filename);let partial_path = self.models_dir@@ -1442,12 +2294,14 @@ impl ModelManager {pub fn cancel_download(&self, model_id: &str) -> Result<()> {debug!("ModelManager: cancel_download called for: {}", model_id);- // Set the cancellation flag to stop the download loop+ // Trigger the cancellation token to stop the download. The HF path+ // aborts its in-flight chunk tasks and unwinds promptly; the URL path+ // observes it on the next chunk of its stream loop.{let flags = self.cancel_flags.lock().unwrap();- if let Some(flag) = flags.get(model_id) {- flag.store(true, Ordering::Relaxed);- info!("Cancellation flag set for: {}", model_id);+ if let Some(token) = flags.get(model_id) {+ token.cancel();+ info!("Cancellation token triggered for: {}", model_id);} else {warn!("No active download found for: {}", model_id);}@@ -1479,7 +2333,48 @@ mod tests {use tempfile::TempDir;#[test]- fn test_discover_custom_whisper_models() {+ fn test_effective_language_accepts_chinese_script_intent_for_zh_capability() {+ let languages = vec!["zh".to_string()];++ assert_eq!(effective_language("zh-Hans", &languages, false), "zh-Hans");+ assert_eq!(effective_language("zh-Hant", &languages, false), "zh-Hant");+ }++ #[test]+ fn test_effective_language_falls_back_to_canonical_chinese() {+ let languages = vec!["zh-Hant".to_string()];++ assert_eq!(effective_language("auto", &languages, false), "zh");+ }++ #[test]+ fn test_canonicalize_supported_languages_collapses_chinese_scripts() {+ let languages = canonicalize_supported_languages(+ vec!["en", "zh", "zh-Hans", "zh-Hant", "yue"]+ .into_iter()+ .map(String::from)+ .collect(),+ );++ assert_eq!(languages, vec!["en", "zh", "yue"]);+ }++ fn build_test_gguf_string_metadata(kvs: &[(&str, &str)]) -> Vec<u8> {+ let mut out = Vec::new();+ out.extend_from_slice(b"GGUF");+ out.extend_from_slice(&3u32.to_le_bytes());+ out.extend_from_slice(&0u64.to_le_bytes());+ out.extend_from_slice(&(kvs.len() as u64).to_le_bytes());+ for (key, value) in kvs {+ push_gguf_str(&mut out, key);+ out.extend_from_slice(&8u32.to_le_bytes()); // GGUF string value type.+ push_gguf_str(&mut out, value);+ }+ out+ }++ #[test]+ fn test_discover_custom_transcribe_models() {let temp_dir = TempDir::new().unwrap();let models_dir = temp_dir.path().to_path_buf();@@ -1490,10 +2385,20 @@ mod tests {let mut another_file = File::create(models_dir.join("whisper_medical_v2.bin")).unwrap();another_file.write_all(b"another fake model").unwrap();+ // Custom GGUF model (also supported by transcribe-cpp)+ let mut gguf_file = File::create(models_dir.join("my-gguf-model.gguf")).unwrap();+ gguf_file+ .write_all(&build_test_gguf_string_metadata(&[(+ "general.name",+ "Friendly GGUF Name",+ )]))+ .unwrap();+// Create files that should be ignoredFile::create(models_dir.join(".hidden-model.bin")).unwrap(); // Hidden file- File::create(models_dir.join("readme.txt")).unwrap(); // Non-.bin file+ File::create(models_dir.join("readme.txt")).unwrap(); // Non-model fileFile::create(models_dir.join("ggml-small.bin")).unwrap(); // Predefined filename+ File::create(models_dir.join("download.bin.partial")).unwrap(); // Partial downloadfs::create_dir(models_dir.join("some-directory.bin")).unwrap(); // Directory// Set up available_models with a predefined Whisper model@@ -1505,14 +2410,16 @@ mod tests {name: "Whisper Small".to_string(),description: "Test".to_string(),filename: "ggml-small.bin".to_string(),- url: Some("https://example.com".to_string()),- sha256: None,+ source: ModelSource::Url {+ url: "https://example.com".to_string(),+ sha256: None,+ },size_mb: 100,is_downloaded: false,is_downloading: false,partial_size: 0,is_directory: false,- engine_type: EngineType::Whisper,+ engine_type: EngineType::TranscribeCpp,accuracy_score: 0.5,speed_score: 0.5,supports_translation: true,@@ -1520,11 +2427,15 @@ mod tests {supported_languages: vec!["en".to_string()],supports_language_selection: true,is_custom: false,+ supports_streaming: false,+ // Legacy entry: preserve the historical "Auto offered" behavior.+ // (Catalog GGUFs and on-disk probes derive this from metadata.)+ supports_language_detection: true,},);// Discover custom models- ModelManager::discover_custom_whisper_models(&models_dir, &mut models).unwrap();+ ModelManager::discover_custom_transcribe_models(&models_dir, &mut models).unwrap();// Should have discovered 2 custom models (my-custom-model and whisper_medical_v2)assert!(models.contains_key("my-custom-model"));@@ -1534,7 +2445,7 @@ mod tests {let custom = models.get("my-custom-model").unwrap();assert_eq!(custom.name, "My Custom Model");assert_eq!(custom.filename, "my-custom-model.bin");- assert!(custom.url.is_none()); // Custom models have no URL+ assert!(matches!(custom.source, ModelSource::Local)); // Custom models have no remote sourceassert!(custom.is_downloaded);assert!(custom.is_custom);assert_eq!(custom.accuracy_score, 0.0);@@ -1545,9 +2456,18 @@ mod tests {let medical = models.get("whisper_medical_v2").unwrap();assert_eq!(medical.name, "Whisper Medical V2");- // Should NOT have discovered hidden, non-.bin, predefined, or directories+ // Verify .gguf models are discovered too (extension stripped for the id)+ assert!(models.contains_key("my-gguf-model"));+ let gguf = models.get("my-gguf-model").unwrap();+ 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 directoriesassert!(!models.contains_key(".hidden-model"));assert!(!models.contains_key("readme"));+ assert!(!models.contains_key("download.bin"));assert!(!models.contains_key("some-directory"));}@@ -1559,7 +2479,7 @@ mod tests {let mut models = HashMap::new();let count_before = models.len();- ModelManager::discover_custom_whisper_models(&models_dir, &mut models).unwrap();+ ModelManager::discover_custom_transcribe_models(&models_dir, &mut models).unwrap();// No new models should be addedassert_eq!(models.len(), count_before);@@ -1573,7 +2493,7 @@ mod tests {let count_before = models.len();// Should not error, just return Ok- let result = ModelManager::discover_custom_whisper_models(&models_dir, &mut models);+ let result = ModelManager::discover_custom_transcribe_models(&models_dir, &mut models);assert!(result.is_ok());assert_eq!(models.len(), count_before);}@@ -1646,4 +2566,80 @@ mod tests {assert!(result.is_err(), "missing file must return an error");}++ fn push_gguf_str(out: &mut Vec<u8>, val: &str) {+ out.extend_from_slice(&(val.len() as u64).to_le_bytes());+ out.extend_from_slice(val.as_bytes());+ }++ fn write_synthetic_gguf(path: &Path, arch: &str, languages: &[&str]) {+ let mut out: Vec<u8> = Vec::new();+ out.extend_from_slice(&0x4655_4747u32.to_le_bytes()); // magic "GGUF"+ out.extend_from_slice(&3u32.to_le_bytes()); // version+ out.extend_from_slice(&0u64.to_le_bytes()); // tensor_count+ out.extend_from_slice(&2u64.to_le_bytes()); // kv_count+ // general.architecture : string+ push_gguf_str(&mut out, "general.architecture");+ out.extend_from_slice(&8u32.to_le_bytes()); // STRING+ push_gguf_str(&mut out, arch);+ // general.languages : array<string>+ push_gguf_str(&mut out, "general.languages");+ out.extend_from_slice(&9u32.to_le_bytes()); // ARRAY+ out.extend_from_slice(&8u32.to_le_bytes()); // elem STRING+ out.extend_from_slice(&(languages.len() as u64).to_le_bytes());+ for l in languages {+ push_gguf_str(&mut out, l);+ }+ fs::write(path, out).unwrap();+ }++ #[test]+ fn test_discover_hf_cache_models_filters_by_arch() {+ let tmp = TempDir::new().unwrap();+ let root = tmp.path();++ // ASR repo: a whisper gguf -> should be discovered.+ let repo = root.join("models--handy-computer--whisper-test");+ fs::create_dir_all(repo.join("snapshots").join("abc123")).unwrap();+ fs::create_dir_all(repo.join("refs")).unwrap();+ fs::write(repo.join("refs").join("main"), "abc123").unwrap();+ write_synthetic_gguf(+ &repo+ .join("snapshots")+ .join("abc123")+ .join("whisper-q8.gguf"),+ "whisper",+ &["en", "de"],+ );++ // Non-ASR (llama) gguf -> must be ignored.+ let repo2 = root.join("models--someone--llama-7b");+ fs::create_dir_all(repo2.join("snapshots").join("def456")).unwrap();+ fs::create_dir_all(repo2.join("refs")).unwrap();+ fs::write(repo2.join("refs").join("main"), "def456").unwrap();+ write_synthetic_gguf(+ &repo2.join("snapshots").join("def456").join("llama-q8.gguf"),+ "llama",+ &[],+ );++ let mut models = HashMap::new();+ ModelManager::discover_hf_cache_models_in(root, &mut models);++ let id = "handy-computer/whisper-test/whisper-q8.gguf";+ let m = models.get(id).expect("whisper gguf should be discovered");+ assert!(m.is_downloaded);+ assert!(+ matches!(&m.source, ModelSource::HuggingFace { repo_id, revision }+ if repo_id == "handy-computer/whisper-test" && revision == "main")+ );+ assert_eq!(+ m.supported_languages,+ vec!["en".to_string(), "de".to_string()]+ );+ assert!(+ !models.contains_key("someone/llama-7b/llama-q8.gguf"),+ "non-ASR gguf must be ignored"+ );+ }}diff --git a/src-tauri/src/managers/model_capabilities.rs b/src-tauri/src/managers/model_capabilities.rsnew file mode 100644index 00000000..8ac6aa48--- /dev/null+++ b/src-tauri/src/managers/model_capabilities.rs@@ -0,0 +1,268 @@+//! Model capability probing — the seam between Handy's model UI and "what can+//! this GGUF actually do".+//!+//! Capabilities are canonical *in the GGUF itself*: transcribe-cpp reads them+//! from the model's metadata at load time, and the runtime reconciles the+//! registry against that ground truth once a model is loaded — streaming,+//! translation, language detection, and the supported-language set (see+//! [`crate::managers::model::ModelManager::set_runtime_capabilities`]). This+//! module covers the other half — reading the same values from the GGUF header+//! *before* download, so search/listing can show them honestly ahead of a load.+//!+//! Everything goes through the [`CapabilityProber`] trait. Today the only+//! implementation, [`GgufHeaderProber`], parses a local GGUF's header directly+//! via [`crate::managers::gguf_meta`]. If transcribe-cpp later exposes a+//! metadata-only probe (covering parakeet-style *inferred* streaming and legacy+//! `.bin`), a `TranscribeCppProber` can be dropped in behind this same trait+//! without touching any caller.++use serde::{Deserialize, Serialize};+use specta::Type;+use std::path::Path;++use super::gguf_meta::{self, GgufError, GgufMetadata};++/// Architecture strings transcribe-cpp can load — the `.name` of each arch under+/// its `src/arch/`, which is exactly the value stored in `general.architecture`.+/// Keep this in sync with transcribe-cpp; an arch absent here still parses, it's+/// just surfaced as [`Compatibility::MaybeIncompatible`] rather than promised.+pub const KNOWN_ARCHES: &[&str] = &[+ "whisper",+ "parakeet",+ "qwen3_asr",+ "voxtral",+ "voxtral_realtime",+ "cohere",+ "cohere_asr",+ "canary",+ "canary_qwen",+ "moonshine",+ "moonshine_streaming",+ "sensevoice",+ "gigaam",+ "granite",+ "granite_speech",+ "granite_nar",+ "granite_speech_nar",+ "funasr_nano",+ "medasr",+];++// GGUF metadata keys transcribe-cpp writes for ASR models.+const KEY_ARCH: &str = "general.architecture";+const KEY_NAME: &str = "general.name";+const KEY_VARIANT: &str = "stt.variant";+const KEY_LANGUAGES: &str = "general.languages";+const KEY_CAP_STREAMING: &str = "stt.capability.streaming";+const KEY_CAP_TRANSLATE: &str = "stt.capability.translate";+const KEY_CAP_LANG_DETECT: &str = "stt.capability.lang_detect";+const PROBE_KEYS: &[&str] = &[+ KEY_ARCH,+ KEY_NAME,+ KEY_VARIANT,+ KEY_LANGUAGES,+ KEY_CAP_STREAMING,+ KEY_CAP_TRANSLATE,+ KEY_CAP_LANG_DETECT,+];++/// How confident we are that Handy can run a given model, judged from its GGUF+/// header alone (pre-download).+#[derive(Debug, Clone, Copy, PartialEq, Eq, Default, Serialize, Deserialize, Type)]+#[serde(rename_all = "snake_case")]+pub enum Compatibility {+ /// Parsed as GGUF and the architecture is one transcribe-cpp ships.+ Compatible,+ /// Parsed as GGUF, but the architecture is unknown to us — might work.+ MaybeIncompatible,+ /// Not a GGUF we can use (bad magic, unsupported version, malformed).+ Unsupported,+ /// We haven't looked yet.+ #[default]+ Unknown,+}++/// Capabilities surfaced in the model UI. Every field is optional on purpose:+/// `None` means "not known yet" — a community model whose header omits the key,+/// or a field (parakeet streaming) the header parse can't determine. The UI+/// renders that honestly as unknown, and the runtime fills it in for real once+/// the model is loaded.+#[derive(Debug, Clone, Default, Serialize, Deserialize, Type)]+pub struct CapabilityProbe {+ pub verdict: Compatibility,+ /// `general.name`, when present.+ pub display_name: Option<String>,+ /// `general.architecture`, when present.+ pub architecture: Option<String>,+ /// `stt.variant`, when present.+ pub variant: Option<String>,+ /// `general.languages` — transcribable language codes.+ pub languages: Option<Vec<String>>,+ /// `stt.capability.streaming` — native live-streaming support.+ pub supports_streaming: Option<bool>,+ /// `stt.capability.translate` — translation to English.+ pub supports_translation: Option<bool>,+ /// `stt.capability.lang_detect` — automatic language detection.+ pub supports_language_detect: Option<bool>,+}++impl CapabilityProbe {+ /// A probe for something we definitively could not read as a usable GGUF.+ pub fn unsupported() -> Self {+ CapabilityProbe {+ verdict: Compatibility::Unsupported,+ ..Default::default()+ }+ }++ /// Build a probe from parsed GGUF metadata.+ ///+ /// Streaming for the parakeet family is *inferred* by transcribe-cpp's+ /// native loader from encoder hparams rather than a flat bool, so when the+ /// explicit `stt.capability.streaming` key is absent we leave it `None`+ /// (unknown) and let post-load reconciliation settle it — we never guess.+ pub fn from_metadata(meta: &GgufMetadata) -> Self {+ let architecture = meta.get_str(KEY_ARCH).map(str::to_string);+ let verdict = match architecture.as_deref() {+ Some(arch) if KNOWN_ARCHES.contains(&arch) => Compatibility::Compatible,+ _ => Compatibility::MaybeIncompatible,+ };+ CapabilityProbe {+ verdict,+ display_name: meta.get_str(KEY_NAME).map(str::to_string),+ architecture,+ variant: meta.get_str(KEY_VARIANT).map(str::to_string),+ languages: meta.get_string_array(KEY_LANGUAGES),+ supports_streaming: meta.get_bool(KEY_CAP_STREAMING),+ supports_translation: meta.get_bool(KEY_CAP_TRANSLATE),+ supports_language_detect: meta.get_bool(KEY_CAP_LANG_DETECT),+ }+ }+}++/// Reads model capabilities from a local GGUF's header. See the module docs for+/// the substitution story (`GgufHeaderProber` now, a transcribe-cpp-backed+/// prober later).+pub trait CapabilityProber: Send + Sync {+ /// Probe a GGUF already on disk (custom-dir + HF-cache scans, post-download).+ fn probe_file(&self, path: &Path) -> CapabilityProbe;+}++/// Pure-Rust prober backed by [`crate::managers::gguf_meta`]. The default and,+/// for the foreseeable future, only implementation.+pub struct GgufHeaderProber;++impl CapabilityProber for GgufHeaderProber {+ fn probe_file(&self, path: &Path) -> CapabilityProbe {+ match read_header_metadata(path) {+ Ok(meta) => CapabilityProbe::from_metadata(&meta),+ Err(_) => CapabilityProbe::unsupported(),+ }+ }+}++/// Read just enough of `path` to parse its GGUF metadata header, without ever+/// loading the (potentially multi-GB) tensor data. Grows the prefix+/// geometrically if a header is unusually large.+fn read_header_metadata(path: &Path) -> Result<GgufMetadata, GgufError> {+ // The KV metadata block precedes the tensor-info table. Shipping ASR models+ // place all of it well within the first 64 KiB, so that's the common-case+ // read. Older / community GGUFs may carry it deeper, so the loop grows the+ // prefix geometrically (jumping straight to the size the parser reports it+ // needs) up to a hard cap.+ const INITIAL_PREFIX: usize = 64 << 10; // 64 KiB+ const MAX_PREFIX: usize = 16 << 20; // 16 MiB++ /// Read up to `size` bytes from the start of `path`, tolerating short reads.+ fn read_prefix(path: &Path, size: usize) -> std::io::Result<Vec<u8>> {+ use std::io::Read;+ let mut file = std::fs::File::open(path)?;+ let mut buf = vec![0u8; size];+ let mut filled = 0;+ while filled < buf.len() {+ match file.read(&mut buf[filled..]) {+ Ok(0) => break,+ Ok(n) => filled += n,+ Err(ref e) if e.kind() == std::io::ErrorKind::Interrupted => continue,+ Err(e) => return Err(e),+ }+ }+ buf.truncate(filled);+ Ok(buf)+ }++ let mut size = INITIAL_PREFIX;+ loop {+ let buf = read_prefix(path, size).map_err(|_| GgufError::Malformed("cannot read file"))?;+ let read_len = buf.len();+ match gguf_meta::parse_header(&buf, PROBE_KEYS) {+ Ok(meta) => return Ok(meta),+ Err(GgufError::Truncated { needed }) => {+ if read_len < size {+ // Hit EOF and still truncated → file shorter than its header.+ return Err(GgufError::Malformed("file shorter than its header"));+ }+ let next = needed.max(size.saturating_mul(2)).min(MAX_PREFIX);+ if next <= size {+ return Err(GgufError::Truncated { needed });+ }+ size = next;+ }+ Err(e) => return Err(e),+ }+ }+}++#[cfg(test)]+mod tests {+ use super::super::gguf_meta::{GgufMetadata, GgufValue};+ use super::*;+ use std::collections::HashMap;++ fn meta_with(kvs: Vec<(&str, GgufValue)>) -> GgufMetadata {+ let mut kv = HashMap::new();+ for (k, v) in kvs {+ kv.insert(k.to_string(), v);+ }+ GgufMetadata { kv }+ }++ #[test]+ fn known_arch_is_compatible_and_reads_caps() {+ let meta = meta_with(vec![+ ("general.architecture", GgufValue::String("parakeet".into())),+ (+ "general.name",+ GgufValue::String("Parakeet Unified EN 0.6B".into()),+ ),+ ("stt.capability.streaming", GgufValue::Bool(true)),+ (+ "general.languages",+ GgufValue::Array(vec![GgufValue::String("en".into())]),+ ),+ ]);+ let probe = CapabilityProbe::from_metadata(&meta);+ assert_eq!(probe.verdict, Compatibility::Compatible);+ assert_eq!(+ probe.display_name.as_deref(),+ Some("Parakeet Unified EN 0.6B")+ );+ assert_eq!(probe.architecture.as_deref(), Some("parakeet"));+ assert_eq!(probe.supports_streaming, Some(true));+ assert_eq!(probe.languages, Some(vec!["en".to_string()]));+ // Absent key stays unknown rather than defaulting to false.+ assert_eq!(probe.supports_translation, None);+ }++ #[test]+ fn unknown_arch_is_maybe_incompatible() {+ let meta = meta_with(vec![(+ "general.architecture",+ GgufValue::String("llama".into()),+ )]);+ assert_eq!(+ CapabilityProbe::from_metadata(&meta).verdict,+ Compatibility::MaybeIncompatible+ );+ }+}diff --git a/src-tauri/src/managers/transcription.rs b/src-tauri/src/managers/transcription.rsindex 1f7412f7..699ef3d3 100644--- a/src-tauri/src/managers/transcription.rs+++ b/src-tauri/src/managers/transcription.rs@@ -2,18 +2,24 @@ use crate::audio_toolkit::{apply_custom_words, filter_transcription_output};use crate::managers::audio::AudioRecordingManager;use crate::managers::model::{EngineType, ModelManager};use crate::settings::{- get_settings, ModelUnloadTimeout, OrtAcceleratorSetting, WhisperAcceleratorSetting,+ get_settings, AppSettings, ModelUnloadTimeout, OrtAcceleratorSetting,+ TranscribeAcceleratorSetting,};use anyhow::Result;use log::{debug, error, info, warn};-use serde::Serialize;+use serde::{Deserialize, Serialize};use specta::Type;use std::panic::{catch_unwind, AssertUnwindSafe};use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};-use std::sync::{Arc, Condvar, Mutex, MutexGuard, OnceLock};+use std::sync::{mpsc, Arc, Condvar, Mutex, MutexGuard, OnceLock};use std::thread;-use std::time::{Duration, SystemTime};+use std::time::{Duration, Instant, SystemTime};use tauri::{AppHandle, Emitter, Manager};+use tauri_specta::Event;+use transcribe_cpp::{+ Backend, Feature, Model, ModelOptions, RunExtension, RunOptions, Session, StreamOptions, Task,+ TimestampKind, WhisperRunOptions,+};use transcribe_rs::{onnx::{canary::CanaryModel,@@ -24,10 +30,12 @@ use transcribe_rs::{sense_voice::{SenseVoiceModel, SenseVoiceParams},Quantization,},- whisper_cpp::{WhisperEngine, WhisperInferenceParams, WhisperLoadParams},SpeechModel, TranscribeOptions,};+const STREAM_PERF_LOG_INTERVAL: Duration = Duration::from_secs(5);+const STREAM_FINALIZE_REPLY_TIMEOUT: Duration = Duration::from_secs(30);+#[derive(Clone, Debug, Serialize)]pub struct ModelStateEvent {pub event_type: String,@@ -36,8 +44,123 @@ pub struct ModelStateEvent {pub error: Option<String>,}+/// Live transcription snapshot emitted to the overlay during a streaming run.+/// `committed` is the append-only, flicker-free prefix; `tentative` is the+/// volatile suffix the model may still rewrite.+#[derive(Clone, Debug, Serialize, Deserialize, Type, tauri_specta::Event)]+pub struct StreamTextEvent {+ pub committed: String,+ pub tentative: String,+}++/// Phase of the streaming overlay card, emitted to drive its UI state.+#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize, Type)]+#[serde(rename_all = "lowercase")]+pub enum StreamPhase {+ /// Receiving audio / live text (or waiting for the stream to begin). Rust+ /// does not emit this today; the frontend starts in this phase and Rust only+ /// emits transitions away from it.+ Listening,+ /// Finalizing or post-processing — show a spinner.+ Working,+}++/// Semantic kind of "working" phase, used to localize the spinner label.+#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize, Type)]+#[serde(rename_all = "lowercase")]+pub enum StreamWorkKind {+ Transcribing,+ Polishing,+}++/// Emitted to switch the streaming overlay to a working spinner.+#[derive(Clone, Debug, Serialize, Deserialize, Type, tauri_specta::Event)]+pub struct StreamPhaseEvent {+ pub phase: StreamPhase,+ /// Present only when `phase` is `Working`.+ #[serde(skip_serializing_if = "Option::is_none")]+ pub kind: Option<StreamWorkKind>,+}++/// Commands sent to the streaming worker thread. Audio frames and the finalize+/// request travel the same channel so FIFO ordering guarantees every fed frame+/// is processed before finalize runs.+enum StreamCmd {+ Feed(Vec<f32>),+ /// Flush the stream and reply with the final text, or `None` if no stream+ /// was ever active (caller should fall back to batch transcription).+ Finalize(mpsc::Sender<Option<String>>),+ Cancel,+}++/// Routes real-time audio frames to the active streaming worker. Shared between+/// the [`TranscriptionManager`] (opens/closes the route) and the audio recorder's+/// per-frame callback (feeds frames). The recorder holds an `Arc<StreamRouter>`+/// directly, so a frame with no stream pending costs a single relaxed atomic+/// load — no Tauri state lookup, no mutex lock.+pub struct StreamRouter {+ /// Command channel to the active streaming worker, present from+ /// `start_stream` until `finalize_stream`/`cancel_stream`.+ tx: Mutex<Option<mpsc::Sender<StreamCmd>>>,+ /// True while a stream is pending or active (channel is open). The audio+ /// callback checks this first to avoid the mutex lock when no stream runs.+ open: Arc<AtomicBool>,+}++impl StreamRouter {+ fn new() -> Self {+ Self {+ tx: Mutex::new(None),+ open: Arc::new(AtomicBool::new(false)),+ }+ }++ /// Open a fresh command channel for a new streaming session, returning the+ /// receiver the worker should drain. Caller must ensure no prior channel is+ /// still open.+ fn open(&self) -> mpsc::Receiver<StreamCmd> {+ let (tx, rx) = mpsc::channel::<StreamCmd>();+ *self.tx.lock().unwrap() = Some(tx);+ self.open.store(true, Ordering::Relaxed);+ rx+ }++ /// Take the sender out (closing the channel to new feeds). Returns the+ /// sender so the caller can send the final `Finalize`/`Cancel` command.+ fn take(&self) -> Option<mpsc::Sender<StreamCmd>> {+ self.open.store(false, Ordering::Relaxed);+ self.tx.lock().unwrap().take()+ }++ /// Drop the channel and mark closed without sending a final command (used+ /// when the worker exits without a finalize/cancel handshake).+ fn clear(&self) {+ self.open.store(false, Ordering::Relaxed);+ *self.tx.lock().unwrap() = None;+ }++ /// Forward a 16 kHz frame to the active streaming worker. Cheap no-op (a+ /// single relaxed atomic load) when no stream is pending.+ pub fn feed(&self, frame: &[f32]) {+ if !self.open.load(Ordering::Relaxed) {+ return;+ }+ if let Some(tx) = self.tx.lock().unwrap().as_ref() {+ let _ = tx.send(StreamCmd::Feed(frame.to_vec()));+ }+ }++ /// Whether a stream is pending or active.+ pub fn is_open(&self) -> bool {+ self.open.load(Ordering::Relaxed)+ }+}+enum LoadedEngine {- Whisper(WhisperEngine),+ /// Whisper-family models (whisper, breeze-asr, custom .bin/.gguf) via+ /// transcribe-cpp. Holds the live `Session`, which keeps its `Model` alive+ /// internally, so repeated dictation reuses the session without reloading.+ TranscribeCpp(Session),Parakeet(ParakeetModel),Moonshine(MoonshineModel),MoonshineStreaming(StreamingModel),@@ -62,6 +185,37 @@ impl Drop for LoadingGuard {}}+/// RAII guard that clears the streaming worker/lease flags on any worker exit -+/// normal return, early return, or a panic in an engine call that unwinds the+/// detached worker thread. Tokens prevent an older worker from clearing a newer+/// worker's state if a start/finalize race ever slips through.+struct StreamWorkerGuard {+ worker_id: u64,+ active_stream_worker: Arc<AtomicU64>,+ active_engine_lease: Arc<AtomicU64>,+ stream_active: Arc<AtomicBool>,+}++impl Drop for StreamWorkerGuard {+ fn drop(&mut self) {+ if self.active_stream_worker.load(Ordering::Acquire) == self.worker_id {+ self.stream_active.store(false, Ordering::Release);+ }+ let _ = self.active_engine_lease.compare_exchange(+ self.worker_id,+ 0,+ Ordering::AcqRel,+ Ordering::Acquire,+ );+ let _ = self.active_stream_worker.compare_exchange(+ self.worker_id,+ 0,+ Ordering::AcqRel,+ Ordering::Acquire,+ );+ }+}+#[derive(Clone)]pub struct TranscriptionManager {engine: Arc<Mutex<Option<LoadedEngine>>>,@@ -73,6 +227,28 @@ pub struct TranscriptionManager {watcher_handle: Arc<Mutex<Option<thread::JoinHandle<()>>>>,is_loading: Arc<Mutex<bool>>,loading_condvar: Arc<Condvar>,+ reload_model_on_next_use: Arc<AtomicBool>,+ /// Routes real-time audio frames to the active streaming worker; see+ /// [`StreamRouter`]. Shared with the audio recorder so per-frame feeds skip+ /// Tauri state and the manager lock.+ router: Arc<StreamRouter>,+ /// True only while a transcribe-cpp `Stream` is actually in flight (set by+ /// the worker once `stream()` succeeds). Used for overlay/UI decisions.+ stream_active: Arc<AtomicBool>,+ /// Streaming uses four independent flags: router open = frames should route,+ /// worker active = no second worker may start, engine lease = engine is out+ /// of the mutex, stream active = UI should show a live session.+ ///+ /// Monotonic id source for stream workers; zero means "no worker".+ next_stream_worker_id: Arc<AtomicU64>,+ /// Nonzero while a stream worker exists, even if it has not leased the engine+ /// yet. This prevents a second worker from starting after finalize/cancel+ /// closes the router but before the first worker has fully exited.+ active_stream_worker: Arc<AtomicU64>,+ /// Nonzero while the streaming worker has taken the engine out of `engine`.+ /// `is_model_loaded()` consults this so the model still reports "loaded"+ /// while the worker holds it.+ active_engine_lease: Arc<AtomicU64>,}impl TranscriptionManager {@@ -87,6 +263,12 @@ impl TranscriptionManager {watcher_handle: Arc::new(Mutex::new(None)),is_loading: Arc::new(Mutex::new(false)),loading_condvar: Arc::new(Condvar::new()),+ reload_model_on_next_use: Arc::new(AtomicBool::new(false)),+ router: Arc::new(StreamRouter::new()),+ stream_active: Arc::new(AtomicBool::new(false)),+ next_stream_worker_id: Arc::new(AtomicU64::new(1)),+ active_stream_worker: Arc::new(AtomicU64::new(0)),+ active_engine_lease: Arc::new(AtomicU64::new(0)),};// Start the idle watcher@@ -118,7 +300,7 @@ impl TranscriptionManager {// model is never unloaded mid-session.let is_recording = app_handle_cloned.try_state::<Arc<AudioRecordingManager>>()- .map_or(false, |a| a.is_recording());+ .is_some_and(|a| a.is_recording());if is_recording {manager_cloned.touch_activity();continue;@@ -172,8 +354,16 @@ impl TranscriptionManager {}pub fn is_model_loaded(&self) -> bool {- let engine = self.lock_engine();- engine.is_some()+ // The engine may be leased out to the streaming worker (taken out of+ // the mutex). It's still loaded, just in use, so report true.+ self.lock_engine().is_some() || self.active_engine_lease.load(Ordering::Acquire) != 0+ }++ /// Accelerator changes should not disturb the current transcription. Mark+ /// the cached engine stale; the next model-use path reloads it with the+ /// latest settings.+ pub fn reload_model_on_next_use(&self) {+ self.reload_model_on_next_use.store(true, Ordering::Release);}/// Atomically check whether a model load is in progress and, if not, mark@@ -255,15 +445,17 @@ impl TranscriptionManager {}/// Like [`load_model`](Self::load_model), but lets a caller hard-select the- /// compute device for this one load by its `--list-devices` index (0 = CPU,- /// 1.. = a specific GPU). `None` keeps the persisted accelerator setting- /// (which may be Auto). Only affects whisper.cpp models; the selection is- /// not persisted.+ /// compute device for this one load by its `transcribe_cpp::devices()`+ /// registry index (the index shown by `--list-devices`). `None` keeps the+ /// persisted accelerator setting (which may be Auto). Only affects+ /// transcribe-cpp (whisper-family) models; the selection is not persisted.pub fn load_model_with_device(&self,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);@@ -299,6 +491,19 @@ impl TranscriptionManager {let model_path = self.model_manager.get_model_path(model_id)?;+ // Drop the current engine BEFORE building the new one so transcribe-cpp+ // frees the previous native context first — avoids holding two models at+ // once (peak memory on large GGUFs). Clear the id too: if the new load+ // fails, status should read "no loaded model", not the dropped engine.+ {+ let mut engine = self.lock_engine();+ *engine = None;+ }+ {+ let mut current_model = self.current_model_id.lock().unwrap();+ *current_model = None;+ }+// Create appropriate engine based on model typelet emit_loading_failed = |error_msg: &str| {let _ = self.app_handle.emit(@@ -313,33 +518,69 @@ impl TranscriptionManager {};let loaded_engine = match model_info.engine_type {- EngineType::Whisper => {- // With an explicit `device_index` (the --device-index flag),- // hard-select that device for this load via load_with_params;- // otherwise WhisperEngine::load reads the persisted accelerator- // preference from the global atomics (set by- // apply_accelerator_settings). The selection is not persisted.- let engine = match device_index {- Some(idx) => {- let (use_gpu, gpu_device) = resolve_device_index(idx)- .inspect_err(|e| emit_loading_failed(&e.to_string()))?;- WhisperEngine::load_with_params(- &model_path,- WhisperLoadParams {- use_gpu,- gpu_device,- ..Default::default()- },+ EngineType::TranscribeCpp => {+ // The whisper backend is chosen at load time (transcribe-cpp has+ // no runtime global). 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).+ let (backend, gpu_device) = match device_index {+ Some(index) => resolve_device_index(index).inspect_err(|e| {+ emit_loading_failed(&e.to_string());+ })?,+ None => {+ let settings = get_settings(&self.app_handle);+ let accelerator = settings.transcribe_accelerator;+ (+ select_transcribe_backend(accelerator),+ resolve_gpu_device(accelerator, settings.transcribe_gpu_device),)}- None => WhisperEngine::load(&model_path),- }- .map_err(|e| {+ };+ let model_options = ModelOptions {+ backend,+ gpu_device,+ };+ let model = Model::load_with(&model_path, &model_options).map_err(|e| {let error_msg = format!("Failed to load whisper model {}: {}", model_id, e);emit_loading_failed(&error_msg);anyhow::anyhow!(error_msg)})?;- LoadedEngine::Whisper(engine)+ // The bound backend may differ from the request (e.g. CPU+ // fallback under Auto); log what actually loaded.+ let bound_backend = model.backend();+ let session = model.session().map_err(|e| {+ let error_msg = format!(+ "Failed to create session for whisper 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 = session.model().capabilities();+ self.model_manager.set_runtime_capabilities(+ model_id,+ caps.supports_streaming,+ caps.supports_translate,+ caps.supports_language_detect,+ caps.languages.clone(),+ );+ info!(+ "Loaded whisper model '{}' (requested {:?}, gpu_device {}, bound backend '{}', \+ supports_streaming={}, supports_translate={}, supports_language_detect={})",+ model_id,+ backend,+ gpu_device,+ bound_backend,+ caps.supports_streaming,+ caps.supports_translate,+ caps.supports_language_detect+ );+ LoadedEngine::TranscribeCpp(session)}EngineType::Parakeet => {let engine =@@ -448,13 +689,23 @@ impl TranscriptionManager {/// Kicks off the model loading in a background thread if it's not already loadedpub fn initiate_model_load(&self) {let mut is_loading = self.is_loading.lock().unwrap();- if *is_loading || self.is_model_loaded() {+ if *is_loading {+ return;+ }++ let reload_pending = self.reload_model_on_next_use.load(Ordering::Acquire);+ if !reload_pending && self.is_model_loaded() {return;}*is_loading = true;let self_clone = self.clone();thread::spawn(move || {+ if reload_pending {+ self_clone+ .reload_model_on_next_use+ .store(false, Ordering::Release);+ }let settings = get_settings(&self_clone.app_handle);if let Err(e) = self_clone.load_model(&settings.selected_model) {error!("Failed to load model: {}", e);@@ -470,6 +721,376 @@ impl TranscriptionManager {current_model.clone()}+ /// 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.+ pub fn current_backend(&self) -> Option<String> {+ match self.lock_engine().as_ref() {+ Some(LoadedEngine::TranscribeCpp(session)) => {+ Some(session.model().backend().to_string())+ }+ Some(_) => Some("onnx".to_string()),+ None => None,+ }+ }++ /// Whether a live streaming run is currently in flight.+ pub fn is_streaming(&self) -> bool {+ self.stream_active.load(Ordering::Acquire)+ }++ /// Shared handle to the stream router, used by the audio recorder to feed+ /// real-time frames without going through Tauri state on every frame.+ pub fn stream_router(&self) -> Arc<StreamRouter> {+ Arc::clone(&self.router)+ }++ /// Begin a live streaming transcription on the held engine's session.+ /// Audio frames pushed via [`StreamRouter::feed`] (captured directly by the+ /// audio recorder) are decoded incrementally and emitted to the overlay as+ /// [`StreamTextEvent`].+ ///+ /// Non-blocking: spawns a worker that waits for any in-progress model load,+ /// verifies the model supports streaming, then begins the stream. If the+ /// model can't stream, the worker idles until finalize/cancel and reports+ /// `None` so the caller falls back to batch transcription. Frames sent+ /// before the stream begins queue on the channel and are not lost.+ pub fn start_stream(&self) {+ if self.router.is_open() || self.active_stream_worker.load(Ordering::Acquire) != 0 {+ warn!("start_stream called while a stream worker is already active");+ return;+ }+ let worker_id = self.next_stream_worker_id.fetch_add(1, Ordering::Relaxed);+ if self+ .active_stream_worker+ .compare_exchange(0, worker_id, Ordering::AcqRel, Ordering::Acquire)+ .is_err()+ {+ warn!("start_stream lost a race with another stream worker");+ return;+ }+ let rx = self.router.open();+ self.stream_active.store(false, Ordering::Release);++ let manager = self.clone();+ thread::spawn(move || manager.run_stream_worker(rx, worker_id));+ }++ fn run_stream_worker(&self, rx: mpsc::Receiver<StreamCmd>, worker_id: u64) {+ let _worker = StreamWorkerGuard {+ worker_id,+ active_stream_worker: Arc::clone(&self.active_stream_worker),+ active_engine_lease: Arc::clone(&self.active_engine_lease),+ stream_active: Arc::clone(&self.stream_active),+ };++ // Wait for any in-progress model load to finish (start_stream races the+ // background load kicked off when recording starts).+ {+ let mut is_loading = self.is_loading.lock().unwrap();+ while *is_loading {+ is_loading = self.loading_condvar.wait(is_loading).unwrap();+ }+ }++ let model_id = self.get_current_model().unwrap_or_default();++ // Take the engine out of the mutex so we own it during streaming,+ // structurally excluding any concurrent batch transcription (which+ // transcribe-cpp's compute_lock would refuse anyway). Returned when the+ // worker exits, or dropped if the model was switched/unloaded mid-stream.+ if self+ .active_engine_lease+ .compare_exchange(0, worker_id, Ordering::AcqRel, Ordering::Acquire)+ .is_err()+ {+ warn!("Live preview: another worker already holds the transcription engine");+ self.router.clear();+ drain_until_finalize(rx);+ return;+ }+ let mut engine = match self.lock_engine().take() {+ Some(e) => e,+ None => {+ info!(+ "Live preview: model '{}' was unloaded before streaming could begin; \+ falling back to batch transcription",+ model_id+ );+ let _ = self.active_engine_lease.compare_exchange(+ worker_id,+ 0,+ Ordering::AcqRel,+ Ordering::Acquire,+ );+ self.router.clear();+ drain_until_finalize(rx);+ return;+ }+ };++ // Only transcribe-cpp models expose streaming; ONNX engines fall back to+ // batch. The loaded session (not the ModelManager copy) is the source of+ // truth for run-path capabilities.+ let (supports_streaming, supports_translate, languages) = match &engine {+ LoadedEngine::TranscribeCpp(session) => {+ let model = session.model();+ let caps = model.capabilities();+ info!(+ "Live preview: model '{}' arch='{}' variant='{}' supports_streaming={} \+ supports_translate={} languages={:?}",+ model_id,+ model.arch(),+ model.variant(),+ caps.supports_streaming,+ caps.supports_translate,+ caps.languages,+ );+ (+ caps.supports_streaming,+ caps.supports_translate,+ caps.languages,+ )+ }+ _ => {+ info!(+ "Live preview: model '{}' is not a transcribe-cpp model; \+ streaming is unavailable, using batch transcription",+ model_id+ );+ (false, false, Vec::new())+ }+ };++ if !supports_streaming {+ self.return_engine(engine, &model_id);+ self.router.clear();+ drain_until_finalize(rx);+ return;+ }++ // Build run options mirroring the offline transcribe-cpp path: task ++ // language gated against what the model actually advertises.+ let settings = get_settings(&self.app_handle);+ let effective_language =+ effective_language_for_model(&settings, self.model_manager.as_ref(), &model_id);+ let run_plan = transcribe_cpp_run_plan(+ settings.translate_to_english,+ &effective_language,+ &languages,+ supports_translate,+ );+ let run_options = RunOptions {+ task: run_plan.task,+ language: run_plan.language,+ target_language: run_plan.target_language,+ ..Default::default()+ };++ // Run the stream on the held session. The Stream borrows the session+ // (and thus the engine) for its lifetime, so the feed/finalize loop+ // lives in a labeled block — when it exits, the borrow is released and+ // the engine can be moved into return_engine().+ let mut finalize_reply: Option<mpsc::Sender<Option<String>>> = None;+ let mut finalize_result: Option<Option<String>> = None;+ let stream_started = 'stream: {+ let session = match &mut engine {+ LoadedEngine::TranscribeCpp(s) => s,+ _ => break 'stream false,+ };++ // Read the backend string before beginning the stream — the+ // `Stream` borrows `session` mutably for its lifetime, so we can't+ // call `session.model()` once it exists.+ let backend = session.model().backend();++ // StreamOptions::default() uses CommitPolicy::Auto and lets the+ // family pick its own streaming strategy (no family-specific ext).+ let mut stream = match session.stream(&run_options, &StreamOptions::default()) {+ Ok(s) => s,+ Err(e) => {+ error!("Failed to begin stream: {}", e);+ break 'stream false;+ }+ };++ self.stream_active.store(true, Ordering::Release);+ self.touch_activity();+ info!(+ "Live streaming transcription started (model '{}', backend '{}')",+ model_id, backend+ );++ let mut perf = StreamPerf::new();+ while let Ok(cmd) = rx.recv() {+ match cmd {+ StreamCmd::Feed(pcm) => {+ self.touch_activity();+ perf.record_feed(pcm.len());+ let feed_start = Instant::now();+ match stream.feed(&pcm) {+ Ok(update) => {+ perf.record_compute(feed_start.elapsed());+ perf.record_update(+ update.revision,+ update.input_received_ms,+ update.audio_committed_ms,+ update.buffered_ms,+ );+ if update.committed_changed || update.tentative_changed {+ let text = stream.text();+ perf.record_emit();+ self.emit_stream_text(&text.committed, &text.tentative);+ }+ perf.maybe_log();+ }+ Err(e) => {+ perf.record_compute(feed_start.elapsed());+ warn!("stream feed failed: {}", e);+ }+ }+ }+ StreamCmd::Finalize(reply) => {+ let finalize_start = Instant::now();+ let result = match stream.finalize() {+ // After finalize the committed prefix holds the full+ // text; display() = committed + tentative is the safe read.+ Ok(update) => {+ perf.record_compute(finalize_start.elapsed());+ perf.record_update(+ update.revision,+ update.input_received_ms,+ update.audio_committed_ms,+ update.buffered_ms,+ );+ Some(stream.text().display())+ }+ Err(e) => {+ perf.record_compute(finalize_start.elapsed());+ error!(+ "stream finalize failed: {}; falling back to batch transcription",+ e+ );+ None+ }+ };+ let chars = match &result {+ Some(text) => text.len(),+ _ => 0,+ };+ perf.log_finalized(chars);+ finalize_reply = Some(reply);+ finalize_result = Some(result);+ break;+ }+ StreamCmd::Cancel => {+ stream.reset();+ break;+ }+ }+ }++ true+ };+ // `stream` + the `&mut engine` borrow are released here.++ if !stream_started {+ // Stream never began (model doesn't support streaming or begin+ // failed); drain so the finalize handshake still completes and the+ // caller falls back to batch transcription. Return the engine first+ // so the fallback can immediately use it.+ self.return_engine(engine, &model_id);+ drain_until_finalize(rx);+ return;+ }++ self.return_engine(engine, &model_id);+ if let (Some(reply), Some(result)) = (finalize_reply, finalize_result) {+ let _ = reply.send(result);+ }+ // `_worker` drops here, clearing this worker's active/lease flags after+ // the engine has been returned to the pool.+ }++ /// Return the leased 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: LoadedEngine, expected_model_id: &str) {+ let still_current =+ self.current_model_id.lock().unwrap().as_deref() == Some(expected_model_id);+ if still_current {+ *self.lock_engine() = 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 was active and the caller may fall back+ /// to batch transcription. `Err` means finalize itself failed or timed out.+ /// A timeout may still leave the worker holding the engine, so callers+ /// should surface it instead of immediately starting a batch fallback.+ pub fn finalize_stream(&self) -> Result<Option<String>> {+ let Some(tx) = self.router.take() else {+ return Ok(None);+ };+ let (reply_tx, reply_rx) = mpsc::channel();+ if tx.send(StreamCmd::Finalize(reply_tx)).is_err() {+ return Ok(None);+ }+ let raw = match reply_rx.recv_timeout(STREAM_FINALIZE_REPLY_TIMEOUT) {+ Ok(Some(text)) => text,+ Ok(None) => return Ok(None),+ Err(mpsc::RecvTimeoutError::Disconnected) => return Ok(None),+ Err(mpsc::RecvTimeoutError::Timeout) => {+ self.stream_active.store(false, Ordering::Release);+ return Err(anyhow::anyhow!(+ "Timed out waiting {:?} for live transcription to finalize",+ STREAM_FINALIZE_REPLY_TIMEOUT+ ));+ }+ };++ let settings = get_settings(&self.app_handle);+ // Streaming models do not receive a decode prompt, so custom words+ // always go through the shared fuzzy post-correction path.+ let filtered = post_process_transcription_text(raw, &settings, false);++ self.maybe_unload_immediately("streaming transcription");+ Ok(Some(filtered))+ }++ /// Abandon any active stream without producing text (e.g. on cancel).+ pub fn cancel_stream(&self) {+ if let Some(tx) = self.router.take() {+ let _ = tx.send(StreamCmd::Cancel);+ }+ self.stream_active.store(false, Ordering::Release);+ }++ /// Emit a working-phase event to the streaming overlay (spinner + label).+ pub fn emit_stream_working(&self, kind: StreamWorkKind) {+ let _ = StreamPhaseEvent {+ phase: StreamPhase::Working,+ kind: Some(kind),+ }+ .emit(&self.app_handle);+ }++ fn emit_stream_text(&self, committed: &str, tentative: &str) {+ let _ = StreamTextEvent {+ committed: committed.to_string(),+ tentative: tentative.to_string(),+ }+ .emit(&self.app_handle);+ }+pub fn transcribe(&self, audio: Vec<f32>) -> Result<String> {#[cfg(debug_assertions)]if std::env::var("HANDY_FORCE_TRANSCRIPTION_FAILURE").is_ok() {@@ -482,8 +1103,9 @@ impl TranscriptionManager {self.touch_activity();let st = std::time::Instant::now();+ let audio_len = audio.len();- debug!("Audio vector length: {}", audio.len());+ debug!("Audio vector length: {}", audio_len);if audio.is_empty() {debug!("Empty audio vector");@@ -517,30 +1139,23 @@ impl TranscriptionManager {let active_model = self.get_current_model().unwrap_or_else(|| settings.selected_model.clone());- let validated_language = if settings.selected_language == "auto" {- "auto".to_string()- } else {- let is_supported = self- .model_manager- .get_model_info(&active_model)- .map(|info| {- info.supported_languages.is_empty()- || info- .supported_languages- .contains(&settings.selected_language)- })- .unwrap_or(true);-- if is_supported {- settings.selected_language.clone()- } else {- warn!(- "Language '{}' not supported by current model, falling back to auto-detect",- settings.selected_language- );- "auto".to_string()- }- };+ // Resolve the persisted language *intent* into the language this model+ // will actually use. The coercion is capability-aware (a must-pick model+ // never receives "auto") and computed fresh here — it is never written+ // back to settings, so the intent survives switching models and back.+ let validated_language =+ effective_language_for_model(&settings, self.model_manager.as_ref(), &active_model);+ if validated_language != settings.selected_language {+ debug!(+ "Language intent '{}' resolved to '{}' for model '{}'",+ settings.selected_language, validated_language, active_model+ );+ }++ // Whether the loaded transcribe-cpp model accepts a decode prompt+ // (whisper family). Gates the whisper-only run extension below, and+ // whether fuzzy custom-word correction still runs afterwards.+ let mut model_takes_initial_prompt = false;// Perform transcription with the appropriate engine.// We use catch_unwind to prevent engine panics from poisoning the mutex,@@ -563,121 +1178,169 @@ impl TranscriptionManager {// Release the lock before transcribing — no mutex held during the engine calldrop(engine_guard);- let transcribe_result = catch_unwind(AssertUnwindSafe(- || -> Result<transcribe_rs::TranscriptionResult> {- match &mut engine {- LoadedEngine::Whisper(whisper_engine) => {- let whisper_language = if validated_language == "auto" {+ // Probe live transcribe-cpp capabilities once (cheap GGUF-metadata+ // reads); the loaded session is the source of truth, not the+ // ModelManager copy. The whisper run extension is kind-tagged, so+ // non-whisper archs (parakeet, voxtral, …) reject it with+ // INVALID_ARG; attach it — and translate — only where supported.+ let mut model_supports_translate = false;+ let mut model_languages: Vec<String> = Vec::new();+ if let LoadedEngine::TranscribeCpp(session) = &engine {+ let model = session.model();+ let caps = model.capabilities();+ model_takes_initial_prompt = model.supports(Feature::InitialPrompt);+ model_supports_translate = caps.supports_translate;+ model_languages = caps.languages;+ debug!(+ "transcribe-cpp model '{}' on '{}': initial_prompt={}, translate={}, languages={:?}",+ settings.selected_model,+ model.backend(),+ model_takes_initial_prompt,+ model_supports_translate,+ model_languages+ );+ }++ let transcribe_result = catch_unwind(AssertUnwindSafe(|| -> Result<String> {+ match &mut engine {+ LoadedEngine::TranscribeCpp(session) => {+ // Custom words become the initial prompt ONLY for models+ // that accept one (whisper family). Attaching the+ // whisper run extension to a non-whisper arch is rejected+ // with INVALID_ARG, so skip it there and let the fuzzy+ // post-correction handle custom words instead.+ let family =+ if settings.custom_words.is_empty() || !model_takes_initial_prompt {None} else {- let normalized = if validated_language == "zh-Hans"- || validated_language == "zh-Hant"- {- "zh".to_string()- } else {- validated_language.clone()- };- Some(normalized)+ Some(RunExtension::Whisper(WhisperRunOptions {+ initial_prompt: Some(settings.custom_words.join(", ")),+ ..Default::default()+ }))};- let params = WhisperInferenceParams {- language: whisper_language,- translate: settings.translate_to_english,- initial_prompt: if settings.custom_words.is_empty() {- None- } else {- Some(settings.custom_words.join(", "))- },- ..Default::default()- };+ let run_plan = transcribe_cpp_run_plan(+ settings.translate_to_english,+ &validated_language,+ &model_languages,+ model_supports_translate,+ );- whisper_engine- .transcribe_with(&audio, ¶ms)- .map_err(|e| anyhow::anyhow!("Whisper transcription failed: {}", e))- }- LoadedEngine::Parakeet(parakeet_engine) => {- let params = ParakeetParams {- timestamp_granularity: Some(TimestampGranularity::Segment),- ..Default::default()- };- parakeet_engine- .transcribe_with(&audio, ¶ms)- .map_err(|e| {- anyhow::anyhow!("Parakeet transcription failed: {}", e)- })- }- LoadedEngine::Moonshine(moonshine_engine) => moonshine_engine- .transcribe(&audio, &TranscribeOptions::default())- .map_err(|e| anyhow::anyhow!("Moonshine transcription failed: {}", e)),- LoadedEngine::MoonshineStreaming(streaming_engine) => streaming_engine- .transcribe(&audio, &TranscribeOptions::default())- .map_err(|e| {- anyhow::anyhow!("Moonshine streaming transcription failed: {}", e)- }),- LoadedEngine::SenseVoice(sense_voice_engine) => {- let language = match validated_language.as_str() {- "zh" | "zh-Hans" | "zh-Hant" => 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,- };- let params = SenseVoiceParams {- language,- use_itn: Some(true),- };- sense_voice_engine- .transcribe_with(&audio, ¶ms)- .map_err(|e| {- anyhow::anyhow!("SenseVoice transcription failed: {}", e)- })- }- LoadedEngine::GigaAM(gigaam_engine) => gigaam_engine- .transcribe(&audio, &TranscribeOptions::default())- .map_err(|e| anyhow::anyhow!("GigaAM transcription failed: {}", e)),- LoadedEngine::Canary(canary_engine) => {- let lang = if validated_language == "auto" {- None+ let run_options = RunOptions {+ task: run_plan.task,+ language: run_plan.language,+ target_language: run_plan.target_language,+ // Whisper-family long-form (>30s) decode degenerates into a+ // repetition loop when an initial prompt is set AND timestamps+ // are off — a shared whisper.cpp behavior (verified: whisper.cpp+ // collapses in the same prompt + no-timestamps cell). Handy runs+ // whisper.cpp with timestamps on, so request segment timestamps+ // here too for parity, which keeps multi-window decode stable.+ // Only whisper advertises InitialPrompt; other arches keep None.+ timestamps: if model_takes_initial_prompt {+ TimestampKind::Segment} else {- Some(validated_language.clone())- };- let options = TranscribeOptions {- language: lang,- translate: settings.translate_to_english,- ..Default::default()- };- canary_engine- .transcribe(&audio, &options)- .map_err(|e| anyhow::anyhow!("Canary transcription failed: {}", e))- }- LoadedEngine::Cohere(cohere_engine) => {- let lang = if validated_language == "auto" {- None- } else if validated_language == "zh-Hans"- || validated_language == "zh-Hant"- {- Some("zh".to_string())- } else {- Some(validated_language.clone())- };- let options = TranscribeOptions {- language: lang,- ..Default::default()- };- cohere_engine- .transcribe(&audio, &options)- .map_err(|e| anyhow::anyhow!("Cohere transcription failed: {}", e))- }+ TimestampKind::None+ },+ family,+ ..Default::default()+ };++ debug!(+ "transcribe-cpp run: task={:?}, language={:?}, initial_prompt={}",+ run_options.task,+ run_options.language,+ run_options.family.is_some()+ );++ session+ .run(&audio, &run_options)+ .map(|t| t.text)+ .map_err(|e| {+ anyhow::anyhow!("transcribe-cpp transcription failed: {}", e)+ })}- },- ));+ LoadedEngine::Parakeet(parakeet_engine) => {+ let params = ParakeetParams {+ timestamp_granularity: Some(TimestampGranularity::Segment),+ ..Default::default()+ };+ parakeet_engine+ .transcribe_with(&audio, ¶ms)+ .map(|r| r.text)+ .map_err(|e| anyhow::anyhow!("Parakeet transcription failed: {}", e))+ }+ LoadedEngine::Moonshine(moonshine_engine) => moonshine_engine+ .transcribe(&audio, &TranscribeOptions::default())+ .map(|r| r.text)+ .map_err(|e| anyhow::anyhow!("Moonshine transcription failed: {}", e)),+ LoadedEngine::MoonshineStreaming(streaming_engine) => streaming_engine+ .transcribe(&audio, &TranscribeOptions::default())+ .map(|r| r.text)+ .map_err(|e| {+ anyhow::anyhow!("Moonshine streaming transcription failed: {}", e)+ }),+ LoadedEngine::SenseVoice(sense_voice_engine) => {+ let language = match normalize_cjk_language(&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,+ };+ let params = SenseVoiceParams {+ language,+ use_itn: Some(true),+ };+ sense_voice_engine+ .transcribe_with(&audio, ¶ms)+ .map(|r| r.text)+ .map_err(|e| anyhow::anyhow!("SenseVoice transcription failed: {}", e))+ }+ LoadedEngine::GigaAM(gigaam_engine) => gigaam_engine+ .transcribe(&audio, &TranscribeOptions::default())+ .map(|r| r.text)+ .map_err(|e| anyhow::anyhow!("GigaAM transcription failed: {}", e)),+ LoadedEngine::Canary(canary_engine) => {+ let lang = if validated_language == "auto" {+ None+ } else {+ Some(validated_language.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))+ }+ LoadedEngine::Cohere(cohere_engine) => {+ let lang = if validated_language == "auto" {+ None+ } else {+ Some(normalize_cjk_language(&validated_language).to_string())+ };+ 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))+ }+ }+ }));match transcribe_result {Ok(inner_result) => {- // Success or normal error — put the engine back- let mut engine_guard = self.lock_engine();- *engine_guard = Some(engine);+ // 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) => {@@ -722,30 +1385,12 @@ impl TranscriptionManager {}};- // Apply word correction if custom words are configured.- // Skip for Whisper models since custom words are already passed as initial_prompt.- let is_whisper = self- .model_manager- .get_model_info(&settings.selected_model)- .map(|info| matches!(info.engine_type, EngineType::Whisper))- .unwrap_or(false);-- let corrected_result = if !settings.custom_words.is_empty() && !is_whisper {- apply_custom_words(- &result.text,- &settings.custom_words,- settings.word_correction_threshold,- )- } else {- result.text- };-- // Filter out filler words and hallucinations- let filtered_result = filter_transcription_output(- &corrected_result,- &settings.app_language,- &settings.custom_filler_words,- );+ // Apply fuzzy word correction if custom words are configured — UNLESS the+ // words were already handed to the model as an initial prompt (whisper+ // family). Non-whisper transcribe-cpp models can't take a prompt, so they+ // still get fuzzy correction here, same as the ONNX engines.+ let filtered_result =+ post_process_transcription_text(result, &settings, model_takes_initial_prompt);let et = std::time::Instant::now();let translation_note = if settings.translate_to_english {@@ -753,10 +1398,15 @@ impl TranscriptionManager {} else {""};+ // Real-time factor. Input PCM is 16 kHz mono, so audio length in seconds+ // is samples / 16000. `speedup` is audio_secs / elapsed_secs — e.g. 4.00x+ // means transcribed 4x faster than real time+ let elapsed_secs = (et - st).as_secs_f64();+ let audio_secs = audio_len as f64 / 16_000.0;+ let speedup = real_time_factor(audio_secs, elapsed_secs);info!(- "Transcription completed in {}ms{}",- (et - st).as_millis(),- translation_note+ "Transcription completed in {:.2}s for {:.2}s of audio ({:.2}x real-time){}",+ elapsed_secs, audio_secs, speedup, translation_note);let final_result = filtered_result;@@ -773,28 +1423,396 @@ impl TranscriptionManager {}}-/// Apply the user's accelerator preferences to the transcribe-rs global atomics.-/// Called on startup and whenever the user changes the setting.+struct StreamPerf {+ feed_count: u64,+ emit_count: u64,+ streamed_samples: u64,+ stream_compute_elapsed: Duration,+ last_log: Instant,+ latest_revision: i32,+ latest_input_received_ms: i64,+ latest_audio_committed_ms: i64,+ latest_buffered_ms: i64,+}++impl StreamPerf {+ fn new() -> Self {+ Self {+ feed_count: 0,+ emit_count: 0,+ streamed_samples: 0,+ stream_compute_elapsed: Duration::ZERO,+ last_log: Instant::now(),+ latest_revision: 0,+ latest_input_received_ms: 0,+ latest_audio_committed_ms: 0,+ latest_buffered_ms: 0,+ }+ }++ fn record_feed(&mut self, samples: usize) {+ self.feed_count += 1;+ self.streamed_samples += samples as u64;+ }++ fn record_compute(&mut self, elapsed: Duration) {+ self.stream_compute_elapsed += elapsed;+ }++ fn record_update(+ &mut self,+ revision: i32,+ input_received_ms: i64,+ audio_committed_ms: i64,+ buffered_ms: i64,+ ) {+ self.latest_revision = revision;+ self.latest_input_received_ms = input_received_ms;+ self.latest_audio_committed_ms = audio_committed_ms;+ self.latest_buffered_ms = buffered_ms;+ }++ fn record_emit(&mut self) {+ self.emit_count += 1;+ }++ fn maybe_log(&mut self) {+ if self.last_log.elapsed() < STREAM_PERF_LOG_INTERVAL {+ return;+ }++ let audio_secs = self.audio_secs();+ let compute_secs = self.compute_secs();+ debug!(+ "Live preview perf: {:.2}s streamed audio, {:.2}s model compute ({:.2}x real-time), \+ input_received={:.2}s, committed_audio={:.2}s, buffered={}ms, revision={}, \+ {} frames fed, {} updates emitted",+ audio_secs,+ compute_secs,+ real_time_factor(audio_secs, compute_secs),+ self.latest_input_received_ms as f64 / 1000.0,+ self.latest_audio_committed_ms as f64 / 1000.0,+ self.latest_buffered_ms,+ self.latest_revision,+ self.feed_count,+ self.emit_count,+ );+ self.last_log = Instant::now();+ }++ fn log_finalized(&self, chars: usize) {+ let audio_secs = self.audio_secs();+ let compute_secs = self.compute_secs();+ info!(+ "Live preview finalized in {:.2}s model compute for {:.2}s streamed audio ({:.2}x real-time): \+ input_received={:.2}s, committed_audio={:.2}s, buffered={}ms, revision={}, \+ {} frames fed, {} updates emitted, {} chars",+ compute_secs,+ audio_secs,+ real_time_factor(audio_secs, compute_secs),+ self.latest_input_received_ms as f64 / 1000.0,+ self.latest_audio_committed_ms as f64 / 1000.0,+ self.latest_buffered_ms,+ self.latest_revision,+ self.feed_count,+ self.emit_count,+ chars+ );+ }++ fn audio_secs(&self) -> f64 {+ self.streamed_samples as f64 / 16_000.0+ }++ fn compute_secs(&self) -> f64 {+ self.stream_compute_elapsed.as_secs_f64()+ }+}++fn real_time_factor(audio_secs: f64, compute_secs: f64) -> f64 {+ if compute_secs > 0.0 {+ audio_secs / compute_secs+ } else {+ 0.0+ }+}++fn normalize_cjk_language(language: &str) -> &str {+ match language {+ "zh-Hans" | "zh-Hant" => "zh",+ other => other,+ }+}++/// Resolve the persisted language intent into the language a specific model can+/// use without writing the coerced value back to settings.+fn effective_language_for_model(+ settings: &AppSettings,+ model_manager: &ModelManager,+ model_id: &str,+) -> String {+ match model_manager.get_model_info(model_id) {+ Some(info) => crate::managers::model::effective_language(+ &settings.selected_language,+ &info.supported_languages,+ info.supports_language_detection,+ ),+ None => settings.selected_language.clone(),+ }+}++struct TranscribeCppRunPlan {+ task: Task,+ language: Option<String>,+ target_language: Option<String>,+}++/// Build the transcribe-cpp language/task options shared by batch and live+/// streaming paths.+fn transcribe_cpp_run_plan(+ translate_to_english: bool,+ effective_language: &str,+ model_languages: &[String],+ model_supports_translate: bool,+) -> TranscribeCppRunPlan {+ let requested_language = match effective_language {+ "auto" => None,+ other => Some(normalize_cjk_language(other).to_string()),+ };+ // Only pass a language the loaded model actually advertises (per+ // capabilities().languages); otherwise auto-detect rather than failing with+ // UNSUPPORTED_LANGUAGE. Language-agnostic models report an empty list, so+ // they always stay on auto.+ let language = requested_language.filter(|lang| model_languages.iter().any(|l| l == lang));+ let (task, target_language) = cpp_translation_task(+ translate_to_english,+ model_supports_translate,+ language.as_deref(),+ );++ TranscribeCppRunPlan {+ task,+ language,+ target_language,+ }+}++fn post_process_transcription_text(+ raw: String,+ settings: &AppSettings,+ custom_words_already_prompted: bool,+) -> String {+ let corrected = if !settings.custom_words.is_empty() && !custom_words_already_prompted {+ apply_custom_words(+ &raw,+ &settings.custom_words,+ settings.word_correction_threshold,+ )+ } else {+ raw+ };++ filter_transcription_output(+ &corrected,+ &settings.app_language,+ &settings.custom_filler_words,+ )+}++/// Decide a transcribe-cpp run's task + translation target from settings.+///+/// "Translate to English" only fires where the model advertises translation.+/// Unlike transcribe-rs (which forces the target to English itself when its+/// `translate` flag is set), transcribe-cpp requires an explicit+/// `target_language`: a null target defaults to the *source*, so a non-English+/// source silently becomes e.g. es→es and Canary rejects the unadvertised pair.+/// An English source is skipped entirely — en→en is not a real translation, and+/// it's reachable by default since auto-detect-less models coerce intent to "en".+///+/// Returns `(task, target_language)` ready to drop into `RunOptions`.+fn cpp_translation_task(+ translate_to_english: bool,+ model_supports_translate: bool,+ source_language: Option<&str>,+) -> (Task, Option<String>) {+ let translate_to_en =+ translate_to_english && model_supports_translate && source_language != Some("en");+ if translate_to_en {+ (Task::Translate, Some("en".to_string()))+ } else {+ (Task::Transcribe, None)+ }+}++/// Drain a stream command channel, ignoring fed audio, until the caller+/// finalizes or cancels. Used when streaming can't actually run (model not+/// loaded / not streaming-capable) so the finalize handshake still completes+/// and the caller falls back to batch transcription.+fn drain_until_finalize(rx: mpsc::Receiver<StreamCmd>) {+ while let Ok(cmd) = rx.recv() {+ match cmd {+ StreamCmd::Feed(_) => {}+ StreamCmd::Finalize(reply) => {+ let _ = reply.send(None);+ break;+ }+ StreamCmd::Cancel => break,+ }+ }+}++/// Initialize the transcribe-cpp native backend once at startup: route native ++/// ggml diagnostics into the `log` facade and register compute backend modules.+/// In a static build (macOS Metal) `init_backends_default` is a harmless no-op;+/// in a `dynamic-backends` build it loads the per-ISA CPU / GPU modules. Must run+/// before the first model load.+pub fn init_transcribe_backend() {+ transcribe_cpp::init_logging();+ match transcribe_cpp::init_backends_default() {+ Ok(()) => {+ let devices = transcribe_cpp::devices();+ info!(+ "transcribe-cpp initialized with {} compute device(s): [{}]",+ devices.len(),+ devices+ .iter()+ .map(|d| format!("{} ({})", d.name, d.kind))+ .collect::<Vec<_>>()+ .join(", ")+ );+ }+ Err(e) => warn!("Failed to initialize transcribe-cpp backends: {}", e),+ }+}++/// Human-readable list of the transcribe-cpp compute devices registered at+/// startup, for the `--list-devices` flag. The reported `index` is the+/// value to pass to `--device-index`. Backends must be initialized first+/// (see [`init_transcribe_backend`]).+pub fn describe_compute_devices() -> Vec<String> {+ transcribe_cpp::devices()+ .into_iter()+ .map(|d| {+ let idx = d+ .index+ .map(|i| i.to_string())+ .unwrap_or_else(|| "-".to_string());+ let name = if d.description.is_empty() {+ d.name+ } else {+ d.description+ };+ let vram_mb = d.memory_total / (1024 * 1024);+ format!(+ "index={} kind={} name={} vram={}MB",+ idx, d.kind, name, vram_mb+ )+ })+ .collect()+}++/// Resolve a `--list-devices` registry index to the (backend, gpu_device) pair+/// for a transcribe-cpp model load (the `--device-index` flag). The+/// backend is set explicitly from the device's kind, so there's no "index 0 =+/// auto" ambiguity. Errors if the index isn't a registered, loadable device.+fn resolve_device_index(index: usize) -> Result<(Backend, i32)> {+ let device = transcribe_cpp::devices()+ .into_iter()+ .find(|d| d.index == Some(index))+ .ok_or_else(|| {+ anyhow::anyhow!("No compute device with index {index} (see --list-devices)")+ })?;+ let backend = match device.kind.as_str() {+ "cpu" => Backend::Cpu,+ "metal" => Backend::Metal,+ "cuda" => Backend::Cuda,+ "vulkan" => Backend::Vulkan,+ other => {+ return Err(anyhow::anyhow!(+ "Device index {index} has kind '{other}', which cannot host a model"+ ))+ }+ };+ // gpu_device is a registry index used only by GPU backends; CPU ignores it.+ let gpu_device = if matches!(backend, Backend::Cpu) {+ 0+ } else {+ index as i32+ };+ Ok((backend, gpu_device))+}++/// Map Handy's whisper accelerator setting to a transcribe-cpp [`Backend`].+///+/// `Auto` lets the library pick the best device (with CPU fallback). `Cpu` forces+/// strict CPU. `Gpu` requests the platform GPU backend, but only if a device for+/// it is actually registered — otherwise it falls back to `Auto` so the load+/// never fails outright on a machine without that GPU backend.+fn select_transcribe_backend(setting: TranscribeAcceleratorSetting) -> Backend {+ match setting {+ TranscribeAcceleratorSetting::Cpu => Backend::Cpu,+ TranscribeAcceleratorSetting::Auto => Backend::Auto,+ TranscribeAcceleratorSetting::Gpu => {+ #[cfg(target_os = "macos")]+ let candidates = [Backend::Metal];+ #[cfg(not(target_os = "macos"))]+ let candidates = [Backend::Cuda, Backend::Vulkan];++ match candidates+ .into_iter()+ .find(|&b| transcribe_cpp::backend_available(b))+ {+ Some(b) => b,+ None => {+ warn!("No GPU backend available for transcribe.cpp; falling back to Auto");+ Backend::Auto+ }+ }+ }+ }+}++/// Resolve the user's stored GPU device choice into a [`ModelOptions::gpu_device`]+/// registry index for the next model load.+///+/// Settings store a registry index into [`transcribe_cpp::devices`] (`-1` is the+/// UI's auto/CPU sentinel); transcribe-cpp treats `0` as "auto / first match" and+/// rejects an out-of-range or non-GPU index. So an explicit selection is honored+/// only when the user chose the GPU accelerator and the stored index still+/// resolves to a registered GPU device — otherwise fall back to `0` so a stale+/// selection can never fail the load.+fn resolve_gpu_device(setting: TranscribeAcceleratorSetting, gpu_device: i32) -> i32 {+ if setting != TranscribeAcceleratorSetting::Gpu || gpu_device <= 0 {+ return 0;+ }+ let still_valid = transcribe_cpp::devices()+ .iter()+ .any(|d| d.index == Some(gpu_device as usize) && d.kind != "cpu" && d.kind != "accel");+ if still_valid {+ gpu_device+ } else {+ warn!(+ "Stored transcribe GPU device index {} is no longer available; using auto",+ gpu_device+ );+ 0+ }+}++/// 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);- let whisper_pref = match settings.whisper_accelerator {- WhisperAcceleratorSetting::Auto => accel::WhisperAccelerator::Auto,- WhisperAcceleratorSetting::Cpu => accel::WhisperAccelerator::CpuOnly,- WhisperAcceleratorSetting::Gpu => accel::WhisperAccelerator::Gpu,- };- accel::set_whisper_accelerator(whisper_pref);- accel::set_whisper_gpu_device(settings.whisper_gpu_device);info!(- "Whisper accelerator set to: {}, gpu_device: {}",- whisper_pref,- if settings.whisper_gpu_device == accel::GPU_DEVICE_AUTO {- "auto".to_string()- } else {- settings.whisper_gpu_device.to_string()- }+ "transcribe.cpp accelerator preference: {:?} (applied on next model load)",+ settings.transcribe_accelerator);let ort_pref = match settings.ort_accelerator {@@ -808,68 +1826,6 @@ pub fn apply_accelerator_settings(app: &tauri::AppHandle) {info!("ORT accelerator set to: {}", ort_pref);}-/// Human-readable list of the whisper compute devices selectable via-/// `--device-index`, for the `--list-devices` flag. Index 0 is always CPU;-/// indices 1.. are the GPUs enumerated by transcribe-rs (whisper.cpp), in-/// order. The reported `index` is the value to pass to `--device-index`.-pub fn describe_compute_devices() -> Vec<String> {- let mut out = vec!["index=0 kind=cpu name=CPU".to_string()];- for (i, d) in cached_gpu_devices().iter().enumerate() {- out.push(format!(- "index={} kind=gpu name={} vram={}MB",- i + 1,- d.name,- d.total_vram_mb- ));- }- out-}--/// Resolve a `--list-devices` index to the (use_gpu, gpu_device) pair for a-/// whisper.cpp model load (the `--device-index` flag). Index 0 selects the CPU-/// (use_gpu = false); indices 1.. select the Nth GPU by its backend id. Errors-/// if the index isn't a registered device.-fn resolve_device_index(index: usize) -> Result<(bool, i32)> {- if index == 0 {- return Ok((false, 0));- }- let gpus = cached_gpu_devices();- let gpu = gpus.get(index - 1).ok_or_else(|| {- anyhow::anyhow!("No compute device with index {index} (see --list-devices)")- })?;- Ok((true, gpu.id))-}--/// Human-readable description of the whisper compute device that a load with the-/// given `--device-index` will actually bind, for headless diagnostics (e.g.-/// confirming `--device-index` bound a GPU rather than falling back to CPU).-/// Mirrors transcribe-rs's resolution: an explicit index, else the persisted-/// accelerator setting (whose Auto reports as "gpu:auto"). whisper.cpp only.-pub fn describe_effective_whisper_device(device_index: Option<usize>) -> String {- use transcribe_rs::accel::{get_whisper_accelerator, get_whisper_gpu_device, GPU_DEVICE_AUTO};-- let (use_gpu, gpu_device) = match device_index {- Some(idx) => match resolve_device_index(idx) {- Ok(pair) => pair,- Err(_) => return format!("index {idx} (invalid)"),- },- None => (- get_whisper_accelerator().use_gpu(),- get_whisper_gpu_device(),- ),- };- if !use_gpu {- return "cpu".to_string();- }- if gpu_device == GPU_DEVICE_AUTO {- return "gpu:auto".to_string();- }- match cached_gpu_devices().iter().find(|d| d.id == gpu_device) {- Some(d) => format!("gpu:{} ({})", gpu_device, d.name),- None => format!("gpu:{}", gpu_device),- }-}-#[derive(Serialize, Clone, Debug, Type)]pub struct GpuDeviceOption {pub id: i32,@@ -880,25 +1836,23 @@ pub struct GpuDeviceOption {static GPU_DEVICES: OnceLock<Vec<GpuDeviceOption>> = OnceLock::new();fn cached_gpu_devices() -> &'static [GpuDeviceOption] {- use transcribe_rs::whisper_cpp::gpu::list_gpu_devices;-+ // GPU compute devices transcribe-cpp registered at startup. `id` is the+ // device's registry index (`Device::index`, not a re-counted position) so it+ // feeds straight back as `ModelOptions::gpu_device` (see `resolve_gpu_device`).+ // `total_vram_mb` is the backend-reported capacity, 0 when unreported (some+ // Metal/Vulkan drivers).GPU_DEVICES.get_or_init(|| {- // ggml's Vulkan backend uses FMA3 instructions internally.- // On older CPUs without FMA3 (e.g. Sandy Bridge Xeons) this causes- // a SIGILL crash that cannot be caught. Skip enumeration entirely- // on those CPUs — GPU-accelerated whisper won't work there anyway.- #[cfg(target_arch = "x86_64")]- if !std::arch::is_x86_feature_detected!("fma") {- warn!("CPU lacks FMA3 support — skipping GPU device enumeration");- return Vec::new();- }-- list_gpu_devices()+ transcribe_cpp::devices().into_iter()+ .filter(|d| d.kind != "cpu" && d.kind != "accel").map(|d| GpuDeviceOption {- id: d.id,- name: d.name,- total_vram_mb: d.total_vram / (1024 * 1024),+ id: d.index.unwrap_or(0) as i32,+ name: if d.description.is_empty() {+ d.name+ } else {+ d.description+ },+ total_vram_mb: (d.memory_total / (1024 * 1024)) as usize,}).collect()})@@ -906,7 +1860,7 @@ fn cached_gpu_devices() -> &'static [GpuDeviceOption] {#[derive(Serialize, Clone, Debug, Type)]pub struct AvailableAccelerators {- pub whisper: Vec<String>,+ pub transcribe: Vec<String>,pub ort: Vec<String>,pub gpu_devices: Vec<GpuDeviceOption>,}@@ -920,15 +1874,60 @@ pub fn get_available_accelerators() -> AvailableAccelerators {.map(|a| a.to_string()).collect();- let whisper_options = vec!["auto".to_string(), "cpu".to_string(), "gpu".to_string()];+ let transcribe_options = vec!["auto".to_string(), "cpu".to_string(), "gpu".to_string()];AvailableAccelerators {- whisper: whisper_options,+ transcribe: transcribe_options,ort: ort_options,gpu_devices: cached_gpu_devices().to_vec(),}}+#[cfg(test)]+mod tests {+ use super::*;++ fn languages(codes: &[&str]) -> Vec<String> {+ codes.iter().map(|code| (*code).to_string()).collect()+ }++ #[test]+ fn transcribe_cpp_run_plan_maps_chinese_variants() {+ let plan = transcribe_cpp_run_plan(false, "zh-Hant", &languages(&["zh"]), true);++ assert!(matches!(plan.task, Task::Transcribe));+ assert_eq!(plan.language.as_deref(), Some("zh"));+ assert_eq!(plan.target_language, None);+ }++ #[test]+ fn transcribe_cpp_run_plan_skips_english_translation() {+ let plan = transcribe_cpp_run_plan(true, "en", &languages(&["en", "es"]), true);++ assert!(matches!(plan.task, Task::Transcribe));+ assert_eq!(plan.language.as_deref(), Some("en"));+ assert_eq!(plan.target_language, None);+ }++ #[test]+ fn transcribe_cpp_run_plan_translates_supported_non_english() {+ let plan = transcribe_cpp_run_plan(true, "es", &languages(&["en", "es"]), true);++ assert!(matches!(plan.task, Task::Translate));+ assert_eq!(plan.language.as_deref(), Some("es"));+ assert_eq!(plan.target_language.as_deref(), Some("en"));+ }++ #[test]+ fn transcribe_cpp_run_plan_requires_model_translation_support() {+ let plan = transcribe_cpp_run_plan(true, "es", &languages(&["en", "es"]), false);++ assert!(matches!(plan.task, Task::Transcribe));+ assert_eq!(plan.language.as_deref(), Some("es"));+ assert_eq!(plan.target_language, None);+ }+}+impl Drop for TranscriptionManager {fn drop(&mut self) {// Skip shutdown unless this is the very last clone. TranscriptionManagerdiff --git a/src-tauri/src/managers/transcription_mock.rs b/src-tauri/src/managers/transcription_mock.rsdeleted file mode 100644index a0879a28..00000000--- a/src-tauri/src/managers/transcription_mock.rs+++ /dev/null@@ -1,107 +0,0 @@-// CI-only mock TranscriptionManager - avoids whisper/Vulkan dependencies.-// This file is copied over transcription.rs during CI tests.-// Existing tests don't exercise transcription, so this is safe.--use crate::managers::model::ModelManager;-use anyhow::Result;-use serde::Serialize;-use specta::Type;-use std::sync::Arc;-use tauri::AppHandle;--#[derive(Clone, Debug, Serialize)]-pub struct ModelStateEvent {- pub event_type: String,- pub model_id: Option<String>,- pub model_name: Option<String>,- pub error: Option<String>,-}--/// RAII guard that is a no-op in the mock — mirrors the real `LoadingGuard`.-pub struct LoadingGuard;--#[derive(Clone)]-pub struct TranscriptionManager {- #[allow(dead_code)]- app_handle: AppHandle,-}--impl TranscriptionManager {- pub fn new(app_handle: &AppHandle, _model_manager: Arc<ModelManager>) -> Result<Self> {- Ok(Self {- app_handle: app_handle.clone(),- })- }-- pub fn is_model_loaded(&self) -> bool {- false- }-- pub fn try_start_loading(&self) -> Option<LoadingGuard> {- Some(LoadingGuard)- }-- pub fn unload_model(&self) -> Result<()> {- Ok(())- }-- pub fn maybe_unload_immediately(&self, _context: &str) {}-- pub fn load_model(&self, _model_id: &str) -> Result<()> {- Ok(())- }-- pub fn load_model_with_device(- &self,- _model_id: &str,- _device_index: Option<usize>,- ) -> Result<()> {- Ok(())- }-- pub fn initiate_model_load(&self) {}-- pub fn get_current_model(&self) -> Option<String> {- None- }-- pub fn transcribe(&self, _audio: Vec<f32>) -> Result<String> {- Ok(String::new())- }-}--/// No-op in CI mock.-pub fn apply_accelerator_settings(_app: &tauri::AppHandle) {}--/// Empty in CI mock (no compute devices enumerated).-pub fn describe_compute_devices() -> Vec<String> {- Vec::new()-}--/// CPU placeholder in CI mock.-pub fn describe_effective_whisper_device(_device_index: Option<usize>) -> String {- "cpu".to_string()-}--#[derive(Serialize, Clone, Debug, Type)]-pub struct GpuDeviceOption {- pub id: i32,- pub name: String,- pub total_vram_mb: usize,-}--#[derive(Serialize, Clone, Debug, Type)]-pub struct AvailableAccelerators {- pub whisper: Vec<String>,- pub ort: Vec<String>,- pub gpu_devices: Vec<GpuDeviceOption>,-}--/// Returns empty lists in CI mock.-pub fn get_available_accelerators() -> AvailableAccelerators {- AvailableAccelerators {- whisper: vec![],- ort: vec![],- gpu_devices: vec![],- }-}diff --git a/src-tauri/src/overlay.rs b/src-tauri/src/overlay.rsindex 0ba59c1a..35f6ef7d 100644--- a/src-tauri/src/overlay.rs+++ b/src-tauri/src/overlay.rs@@ -1,6 +1,6 @@use crate::input;use crate::settings;-use crate::settings::OverlayPosition;+use crate::settings::{OverlayPosition, OverlayStyle};use std::sync::atomic::{AtomicBool, Ordering};use tauri::{AppHandle, Emitter, Manager, PhysicalPosition, PhysicalSize};@@ -14,7 +14,7 @@ use tauri::WebviewWindowBuilder;use tauri::WebviewUrl;#[cfg(target_os = "macos")]-use tauri_nspanel::{tauri_panel, CollectionBehavior, PanelBuilder, PanelLevel};+use tauri_nspanel::{tauri_panel, CollectionBehavior, PanelBuilder, PanelLevel, StyleMask};#[cfg(target_os = "linux")]use gtk_layer_shell::{Edge, KeyboardMode, Layer, LayerShell};@@ -32,8 +32,31 @@ tauri_panel! {})}-const OVERLAY_WIDTH: f64 = 172.0;-const OVERLAY_HEIGHT: f64 = 36.0;+// Native overlay window sizes (logical points). One window is reused for every+// state and resized in `show_overlay_state`; each size need only be at least as+// large as the card it hosts (the `--ov-*` vars in RecordingOverlay.css). The+// card is CSS-anchored flush to the screen edge, so window height doesn't move+// where the card sits — only OVERLAY_TOP_OFFSET / OVERLAY_BOTTOM_OFFSET do. Keep+// these in sync with the CSS card geometry.+//+// Compact overlay (Minimal / transcribing / processing): the 40h pill animates+// width from 172 (--ov-rest-w) to 216 (--ov-work-w) and expands from center, so+// the window must fit the widest state plus a little slack.+const OVERLAY_WIDTH: f64 = 256.0;+const OVERLAY_HEIGHT: f64 = 46.0;++// Actual is 394x118, just a little extra+const OVERLAY_STREAM_WIDTH: f64 = 400.0;+const OVERLAY_STREAM_HEIGHT: f64 = 120.0;++/// Overlay window size (logical) for a given UI state.+fn overlay_dimensions(state: &str) -> (f64, f64) {+ if state == "streaming" {+ (OVERLAY_STREAM_WIDTH, OVERLAY_STREAM_HEIGHT)+ } else {+ (OVERLAY_WIDTH, OVERLAY_HEIGHT)+ }+}#[cfg(target_os = "macos")]const OVERLAY_TOP_OFFSET: f64 = 46.0;@@ -58,7 +81,7 @@ fn update_gtk_layer_shell_anchors(overlay_window: &tauri::webview::WebviewWindowgtk_window.set_anchor(Edge::Top, true);gtk_window.set_anchor(Edge::Bottom, false);}- OverlayPosition::Bottom | OverlayPosition::None => {+ OverlayPosition::Bottom => {gtk_window.set_anchor(Edge::Bottom, true);gtk_window.set_anchor(Edge::Top, false);}@@ -201,7 +224,11 @@ fn is_mouse_within_monitor(/// We must use LogicalPosition (not PhysicalPosition) because Tauri/tao/// converts PhysicalPosition using the scale factor of the monitor the window/// is *currently* on, which is wrong when moving cross-monitor.-fn calculate_overlay_position(app_handle: &AppHandle) -> Option<(f64, f64)> {+fn calculate_overlay_position(+ app_handle: &AppHandle,+ width: f64,+ height: f64,+) -> Option<(f64, f64)> {let monitor = get_monitor_with_cursor(app_handle)?;let scale = monitor.scale_factor();let monitor_x = monitor.position().x as f64 / scale;@@ -211,17 +238,23 @@ fn calculate_overlay_position(app_handle: &AppHandle) -> Option<(f64, f64)> {let settings = settings::get_settings(app_handle);- let x = monitor_x + (monitor_width - OVERLAY_WIDTH) / 2.0;+ let x = monitor_x + (monitor_width - width) / 2.0;let y = match settings.overlay_position {OverlayPosition::Top => monitor_y + OVERLAY_TOP_OFFSET,- OverlayPosition::Bottom | OverlayPosition::None => {- monitor_y + monitor_height - OVERLAY_HEIGHT - OVERLAY_BOTTOM_OFFSET- }+ OverlayPosition::Bottom => monitor_y + monitor_height - height - OVERLAY_BOTTOM_OFFSET,};Some((x, y))}+/// Current overlay window size in logical units (points), for repositioning+/// without assuming a fixed size (compact vs. streaming).+fn current_overlay_logical_size(window: &tauri::webview::WebviewWindow) -> Option<(f64, f64)> {+ let size = window.inner_size().ok()?;+ let scale = window.scale_factor().ok()?;+ Some((size.width as f64 / scale, size.height as f64 / scale))+}+/// Creates the recording overlay window and keeps it hidden by default#[cfg(not(target_os = "macos"))]pub fn create_recording_overlay(app_handle: &AppHandle) {@@ -229,7 +262,7 @@ pub fn create_recording_overlay(app_handle: &AppHandle) {// for Layer Shell as we use anchors. On other platforms, we require a monitor.#[cfg(not(target_os = "linux"))]{- let position = calculate_overlay_position(app_handle);+ let position = calculate_overlay_position(app_handle, OVERLAY_WIDTH, OVERLAY_HEIGHT);if position.is_none() {debug!("Failed to determine overlay position, not creating overlay window");return;@@ -255,6 +288,7 @@ pub fn create_recording_overlay(app_handle: &AppHandle) {.always_on_top(true).skip_taskbar(true).transparent(true)+ .focusable(false).focused(false).visible(false);@@ -286,7 +320,7 @@ pub fn create_recording_overlay(app_handle: &AppHandle) {/// Creates the recording overlay panel and keeps it hidden by default (macOS)#[cfg(target_os = "macos")]pub fn create_recording_overlay(app_handle: &AppHandle) {- if let Some((x, y)) = calculate_overlay_position(app_handle) {+ if let Some((x, y)) = calculate_overlay_position(app_handle, OVERLAY_WIDTH, OVERLAY_HEIGHT) {// PanelBuilder creates a Tauri window then converts it to NSPanel.// The window remains registered, so get_webview_window() still works.match PanelBuilder::<_, RecordingOverlayPanel>::new(app_handle, "recording_overlay")@@ -302,7 +336,8 @@ pub fn create_recording_overlay(app_handle: &AppHandle) {.transparent(true).no_activate(true).corner_radius(0.0)- .with_window(|w| w.decorations(false).transparent(true))+ .style_mask(StyleMask::empty().borderless().nonactivating_panel())+ .with_window(|w| w.decorations(false).transparent(true).focusable(false)).collection_behavior(CollectionBehavior::new().can_join_all_spaces()@@ -311,7 +346,7 @@ pub fn create_recording_overlay(app_handle: &AppHandle) {.build(){Ok(panel) => {- let _ = panel.hide();+ panel.hide();}Err(e) => {log::error!("Failed to create recording overlay panel: {}", e);@@ -321,15 +356,25 @@ pub fn create_recording_overlay(app_handle: &AppHandle) {}fn show_overlay_state(app_handle: &AppHandle, state: &str) {- // Check if overlay should be shown based on position setting+ // Whether the overlay shows at all is governed by overlay_style; position+ // only chooses Top vs Bottom placement.let settings = settings::get_settings(app_handle);- if settings.overlay_position == OverlayPosition::None {+ if settings.overlay_style == OverlayStyle::None {return;}- update_overlay_position(app_handle);-+ // Size the overlay for this state (compact vs. streaming), then position it.+ let (width, height) = overlay_dimensions(state);if let Some(overlay_window) = app_handle.get_webview_window("recording_overlay") {+ #[cfg(target_os = "linux")]+ update_gtk_layer_shell_anchors(&overlay_window);++ let _ = overlay_window.set_size(tauri::Size::Logical(tauri::LogicalSize { width, height }));+ if let Some((x, y)) = calculate_overlay_position(app_handle, width, height) {+ let _ = overlay_window+ .set_position(tauri::Position::Logical(tauri::LogicalPosition { x, y }));+ }+let _ = overlay_window.show();// On Windows, aggressively re-assert "topmost" in the native Z-order after showing@@ -345,6 +390,11 @@ pub fn show_recording_overlay(app_handle: &AppHandle) {show_overlay_state(app_handle, "recording");}+/// Shows the larger streaming overlay that displays live transcription text+pub fn show_streaming_overlay(app_handle: &AppHandle) {+ show_overlay_state(app_handle, "streaming");+}+/// Shows the transcribing overlay windowpub fn show_transcribing_overlay(app_handle: &AppHandle) {show_overlay_state(app_handle, "transcribing");@@ -363,7 +413,11 @@ pub fn update_overlay_position(app_handle: &AppHandle) {update_gtk_layer_shell_anchors(&overlay_window);}- if let Some((x, y)) = calculate_overlay_position(app_handle) {+ // Use the window's current size so centering stays correct whether the+ // overlay is in compact or streaming layout.+ let (width, height) = current_overlay_logical_size(&overlay_window)+ .unwrap_or((OVERLAY_WIDTH, OVERLAY_HEIGHT));+ if let Some((x, y)) = calculate_overlay_position(app_handle, width, height) {let _ = overlay_window.set_position(tauri::Position::Logical(tauri::LogicalPosition { x, y }));}@@ -386,29 +440,28 @@ pub fn hide_recording_overlay(app_handle: &AppHandle) {}}-// Cached "overlay is enabled" flag, kept in sync with the-// overlay_position setting. Avoids reading the Tauri store on every-// audio callback (~24 Hz during recording). Defaults to false so the-// audio path doesn't emit until lib.rs::setup populates the cache from-// initial settings.+// Cached "overlay is enabled" flag, kept in sync with overlay_style. Avoids+// reading the Tauri store on every audio callback (~24 Hz during recording).+// Defaults to false so the audio path doesn't emit until lib.rs::setup+// populates the cache from initial settings.static OVERLAY_ENABLED: AtomicBool = AtomicBool::new(false);/// Update the cached overlay-enabled flag. Called from `lib.rs` at-/// startup after settings load, and from `change_overlay_position_setting`-/// whenever the user changes the overlay position.+/// startup after settings load, and from `change_overlay_style_setting`+/// whenever the user changes whether the overlay is shown.pub fn update_overlay_enabled_cache(enabled: bool) {OVERLAY_ENABLED.store(enabled, Ordering::Relaxed);}pub fn emit_levels(app_handle: &AppHandle, levels: &[f32]) {// Skip emission when the overlay is disabled. The recording_overlay- // window is created at boot regardless of overlay_position, so- // without this guard a hidden overlay's WebKit subprocess still+ // window is created at boot regardless of overlay_style, so without this+ // guard a hidden overlay's WebKit subprocess still// processes every event. Each event drives some kind of WebKit// C++ allocation that accumulates without bound (mechanism not// directly characterized; see issue #1279 for the investigation).- // For users with `overlay_position: none` (the Linux default) this- // skip eliminates the upstream driver of that accumulation.+ // For users with `overlay_style: none` (the Linux default) this skip+ // eliminates the upstream driver of that accumulation.if !OVERLAY_ENABLED.load(Ordering::Relaxed) {return;}diff --git a/src-tauri/src/portable.rs b/src-tauri/src/portable.rsindex 5d7bf7d0..8b827848 100644--- a/src-tauri/src/portable.rs+++ b/src-tauri/src/portable.rs@@ -1,13 +1,13 @@+//! Portable mode support for Handy.+//!+//! When a file named `portable` exists next to the executable, all user data+//! (settings, models, recordings, database, logs) is stored in a `Data/`+//! directory alongside the executable instead of `%APPDATA%`.+use std::path::PathBuf;use std::sync::OnceLock;use tauri::Manager;-/// Portable mode support for Handy.-///-/// When a file named `portable` exists next to the executable, all user data-/// (settings, models, recordings, database, logs) is stored in a `Data/`-/// directory alongside the executable instead of `%APPDATA%`.-static PORTABLE_DATA_DIR: OnceLock<Option<PathBuf>> = OnceLock::new();/// Detect portable mode by looking for a `portable` marker file next to the exe.diff --git a/src-tauri/src/settings.rs b/src-tauri/src/settings.rsindex 878d5a98..69d1be25 100644--- a/src-tauri/src/settings.rs+++ b/src-tauri/src/settings.rs@@ -109,17 +109,34 @@ pub struct PostProcessProvider {#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Type)]#[serde(rename_all = "lowercase")]pub enum OverlayPosition {- None,Top,+ // `none` is retired: overlay visibility is owned by `OverlayStyle` now. The+ // alias keeps legacy stores (`"overlay_position": "none"`) deserializing+ // instead of failing the whole load; the one-time overlay migration reads the+ // raw stored string to recover the old "hidden" intent as `OverlayStyle::None`.+ #[serde(alias = "none")]Bottom,}+/// Which recording overlay to display. `Minimal` and `Live` share one base+/// (the pill); `Live` grows into the panel that shows live transcription text.+/// `None` hides the overlay entirely. Decoupled from whether the model runs in+/// streaming mode (that is driven purely by model capability).#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Type)]+#[serde(rename_all = "lowercase")]+pub enum OverlayStyle {+ None,+ Minimal,+ Live,+}++#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Type, Default)]#[serde(rename_all = "snake_case")]pub enum ModelUnloadTimeout {Never,Immediately,Min2,+ #[default]Min5,Min10,Min15,@@ -138,16 +155,18 @@ pub enum PasteMethod {ExternalScript,}-#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Type)]+#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Type, Default)]#[serde(rename_all = "snake_case")]pub enum ClipboardHandling {+ #[default]DontModify,CopyToClipboard,}-#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Type)]+#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Type, Default)]#[serde(rename_all = "snake_case")]pub enum AutoSubmitKey {+ #[default]Enter,CtrlEnter,CmdEnter,@@ -179,12 +198,6 @@ impl Default for KeyboardImplementation {}}-impl Default for ModelUnloadTimeout {- fn default() -> Self {- ModelUnloadTimeout::Min5- }-}-impl Default for PasteMethod {fn default() -> Self {// Default to CtrlV for macOS and Windows, Direct for Linux@@ -195,18 +208,6 @@ impl Default for PasteMethod {}}-impl Default for ClipboardHandling {- fn default() -> Self {- ClipboardHandling::DontModify- }-}--impl Default for AutoSubmitKey {- fn default() -> Self {- AutoSubmitKey::Enter- }-}-impl ModelUnloadTimeout {pub fn to_minutes(self) -> Option<u64> {match self {@@ -248,18 +249,19 @@ impl SoundTheme {}}- pub fn to_start_path(&self) -> String {+ pub fn to_start_path(self) -> String {format!("resources/{}_start.wav", self.as_str())}- pub fn to_stop_path(&self) -> String {+ pub fn to_stop_path(self) -> String {format!("resources/{}_stop.wav", self.as_str())}}-#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Type)]+#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Type, Default)]#[serde(rename_all = "snake_case")]pub enum TypingTool {+ #[default]Auto,Wtype,Kwtype,@@ -268,29 +270,19 @@ pub enum TypingTool {Xdotool,}-impl Default for TypingTool {- fn default() -> Self {- TypingTool::Auto- }-}--#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Type)]+#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Type, Default)]#[serde(rename_all = "snake_case")]-pub enum WhisperAcceleratorSetting {+pub enum TranscribeAcceleratorSetting {+ #[default]Auto,Cpu,Gpu,}-impl Default for WhisperAcceleratorSetting {- fn default() -> Self {- WhisperAcceleratorSetting::Auto- }-}--#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Type)]+#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Type, Default)]#[serde(rename_all = "snake_case")]pub enum OrtAcceleratorSetting {+ #[default]Auto,Cpu,Cuda,@@ -299,12 +291,6 @@ pub enum OrtAcceleratorSetting {Rocm,}-impl Default for OrtAcceleratorSetting {- fn default() -> Self {- OrtAcceleratorSetting::Auto- }-}-#[derive(Clone, Serialize, Deserialize, Type)]#[serde(transparent)]pub(crate) struct SecretMap(HashMap<String, String>);@@ -336,6 +322,11 @@ impl std::ops::DerefMut for SecretMap {/* still handy for composing the initial JSON in the store ------------- */#[derive(Serialize, Deserialize, Debug, Clone, Type)]pub struct AppSettings {+ /// Internal settings schema marker for one-time migrations. Fresh installs+ /// start at the current version; existing stores missing this key are+ /// treated as version 0 and migrated forward.+ #[serde(default = "default_settings_schema_version")]+ pub settings_schema_version: u32,pub bindings: HashMap<String, ShortcutBinding>,pub push_to_talk: bool,pub audio_feedback: bool,@@ -349,8 +340,18 @@ pub struct AppSettings {pub autostart_enabled: bool,#[serde(default = "default_update_checks_enabled")]pub update_checks_enabled: bool,+ #[serde(default = "default_show_whats_new_on_update")]+ pub show_whats_new_on_update: bool,+ /// The app version whose What's New the user has already seen. Fresh installs+ /// default to the current version (nothing is "new" to them). Existing users+ /// upgrading from before this key existed are blanked by the migration so they+ /// see the current release's notes — see `apply_settings_migrations`.+ #[serde(default = "default_whats_new_last_seen_version")]+ pub whats_new_last_seen_version: String,#[serde(default = "default_model")]pub selected_model: String,+ #[serde(default)]+ pub onboarding_completed: bool,#[serde(default = "default_always_on_microphone")]pub always_on_microphone: bool,#[serde(default)]@@ -423,19 +424,32 @@ pub struct AppSettings {#[serde(default)]pub custom_filler_words: Option<Vec<String>>,#[serde(default)]- pub whisper_accelerator: WhisperAcceleratorSetting,+ pub transcribe_accelerator: TranscribeAcceleratorSetting,#[serde(default)]pub ort_accelerator: OrtAcceleratorSetting,- #[serde(default = "default_whisper_gpu_device")]- pub whisper_gpu_device: i32,+ #[serde(default = "default_transcribe_gpu_device")]+ pub transcribe_gpu_device: i32,#[serde(default)]pub extra_recording_buffer_ms: u64,+ #[serde(default = "default_vad_enabled")]+ pub vad_enabled: bool,+ /// Which recording overlay to show: None / Minimal / Live. Streaming mode is+ /// not gated on this — that follows model capability. Migrated from the old+ /// `overlay_position` (position `none` → style `None`).+ #[serde(default = "default_overlay_style")]+ pub overlay_style: OverlayStyle,}fn default_model() -> String {"".to_string()}+const CURRENT_SETTINGS_SCHEMA_VERSION: u32 = 1;++fn default_settings_schema_version() -> u32 {+ CURRENT_SETTINGS_SCHEMA_VERSION+}+fn default_always_on_microphone() -> bool {false}@@ -456,15 +470,35 @@ fn default_update_checks_enabled() -> bool {true}+fn default_show_whats_new_on_update() -> bool {+ true+}++fn default_whats_new_last_seen_version() -> String {+ env!("CARGO_PKG_VERSION").to_string()+}+fn default_selected_language() -> String {"auto".to_string()}fn default_overlay_position() -> OverlayPosition {+ // Position only matters when the overlay is shown; whether it shows at all is+ // `overlay_style` (Linux defaults that to None). So a single default suffices.+ OverlayPosition::Bottom+}++fn default_overlay_style() -> OverlayStyle {+ // Linux hides the overlay by default; other platforms show the live overlay.+ // Position is independent and only selects top vs. bottom placement.#[cfg(target_os = "linux")]- return OverlayPosition::None;+ return OverlayStyle::None;#[cfg(not(target_os = "linux"))]- return OverlayPosition::Bottom;+ return OverlayStyle::Live;+}++fn default_vad_enabled() -> bool {+ true}fn default_debug_mode() -> bool {@@ -646,7 +680,7 @@ fn default_post_process_prompts() -> Vec<LLMPrompt> {}]}-fn default_whisper_gpu_device() -> i32 {+fn default_transcribe_gpu_device() -> i32 {-1 // auto}@@ -765,6 +799,7 @@ pub fn get_default_settings() -> AppSettings {);AppSettings {+ settings_schema_version: default_settings_schema_version(),bindings,push_to_talk: true,audio_feedback: false,@@ -773,7 +808,10 @@ pub fn get_default_settings() -> AppSettings {start_hidden: default_start_hidden(),autostart_enabled: default_autostart_enabled(),update_checks_enabled: default_update_checks_enabled(),+ show_whats_new_on_update: default_show_whats_new_on_update(),+ whats_new_last_seen_version: default_whats_new_last_seen_version(),selected_model: "".to_string(),+ onboarding_completed: false,always_on_microphone: false,selected_microphone: None,clamshell_microphone: None,@@ -810,10 +848,12 @@ pub fn get_default_settings() -> AppSettings {typing_tool: default_typing_tool(),external_script_path: None,custom_filler_words: None,- whisper_accelerator: WhisperAcceleratorSetting::default(),+ transcribe_accelerator: TranscribeAcceleratorSetting::default(),ort_accelerator: OrtAcceleratorSetting::default(),- whisper_gpu_device: default_whisper_gpu_device(),+ transcribe_gpu_device: default_transcribe_gpu_device(),extra_recording_buffer_ms: 0,+ vad_enabled: default_vad_enabled(),+ overlay_style: default_overlay_style(),}}@@ -848,23 +888,25 @@ pub fn load_or_create_app_settings(app: &AppHandle) -> AppSettings {let mut settings = if let Some(settings_value) = store.get("settings") {// Parse the entire settings object- match serde_json::from_value::<AppSettings>(settings_value) {+ match serde_json::from_value::<AppSettings>(settings_value.clone()) {Ok(mut settings) => {debug!("Found existing settings: {:?}", settings);let default_settings = get_default_settings();- let mut updated = false;+ let mut updated = apply_settings_migrations(&mut settings, &settings_value);// Merge default bindings into existing settingsfor (key, value) in default_settings.bindings {- if !settings.bindings.contains_key(&key) {- debug!("Adding missing binding: {}", key);- settings.bindings.insert(key, value);+ if let std::collections::hash_map::Entry::Vacant(entry) =+ settings.bindings.entry(key)+ {+ debug!("Adding missing binding: {}", entry.key());+ entry.insert(value);updated = true;}}if updated {- debug!("Settings updated with new bindings");+ debug!("Settings updated with defaults/migrations");store.set("settings", serde_json::to_value(&settings).unwrap());}@@ -896,12 +938,22 @@ pub fn get_settings(app: &AppHandle) -> AppSettings {.store(crate::portable::store_path(SETTINGS_STORE_PATH)).expect("Failed to initialize store");+ // Settings reads also persist one-time migrations. Migration helpers are+ // idempotent, so this converges after the first read of an older store.let mut settings = if let Some(settings_value) = store.get("settings") {- serde_json::from_value::<AppSettings>(settings_value).unwrap_or_else(|_| {- let default_settings = get_default_settings();- store.set("settings", serde_json::to_value(&default_settings).unwrap());- default_settings- })+ match serde_json::from_value::<AppSettings>(settings_value.clone()) {+ Ok(mut settings) => {+ if apply_settings_migrations(&mut settings, &settings_value) {+ store.set("settings", serde_json::to_value(&settings).unwrap());+ }+ settings+ }+ Err(_) => {+ let default_settings = get_default_settings();+ store.set("settings", serde_json::to_value(&default_settings).unwrap());+ default_settings+ }+ }} else {let default_settings = get_default_settings();store.set("settings", serde_json::to_value(&default_settings).unwrap());@@ -915,6 +967,68 @@ pub fn get_settings(app: &AppHandle) -> AppSettings {settings}+fn apply_settings_migrations(+ settings: &mut AppSettings,+ settings_value: &serde_json::Value,+) -> bool {+ let mut updated = false;++ // One-time onboarding migration: users with an explicit selected model have+ // already made it through model selection. Users who merely have compatible+ // files on disk should still see onboarding.+ if settings_value.get("onboarding_completed").is_none() {+ settings.onboarding_completed = !settings.selected_model.is_empty();+ updated = true;+ }++ // One-time What's New migration: migrations only run on an existing store+ // (fresh installs stamp the current version via get_default_settings). A+ // missing key here means a user upgrading from before it existed — blank it+ // so they see the current release's What's New, mirroring the onboarding+ // migration's explicit first-run-vs-upgrade decision.+ if settings_value.get("whats_new_last_seen_version").is_none() {+ settings.whats_new_last_seen_version = String::new();+ updated = true;+ }++ let stored_schema_version = settings_value+ .get("settings_schema_version")+ .and_then(|v| v.as_u64())+ .unwrap_or(0);+ if stored_schema_version < 1 {+ // `transcribe_gpu_device` used to be a UI ordinal; it is now a+ // transcribe.cpp registry index. A positive legacy value can point at a+ // different GPU after CPU/accelerator/backend devices are included in+ // the registry, so reset ambiguous explicit selections to Auto once.+ if settings.transcribe_gpu_device > 0 {+ settings.transcribe_accelerator = TranscribeAcceleratorSetting::Auto;+ settings.transcribe_gpu_device = default_transcribe_gpu_device();+ }+ settings.settings_schema_version = CURRENT_SETTINGS_SCHEMA_VERSION;+ updated = true;+ }++ // One-time overlay migration (only while the new key is absent): the retired+ // overlay_position `none` meant "hide the overlay" → OverlayStyle::None; any+ // other position had it visible → Live. The position enum no longer has a+ // `none` variant (legacy "none" deserializes to Bottom via a serde alias), so+ // read the raw stored string to recover the old intent.+ if settings_value.get("overlay_style").is_none() {+ let was_hidden = settings_value+ .get("overlay_position")+ .and_then(|v| v.as_str())+ == Some("none");+ settings.overlay_style = if was_hidden {+ OverlayStyle::None+ } else {+ OverlayStyle::Live+ };+ updated = true;+ }++ updated+}+pub fn write_settings(app: &AppHandle, settings: AppSettings) {let store = app.store(crate::portable::store_path(SETTINGS_STORE_PATH))@@ -956,6 +1070,107 @@ mod tests {let settings = get_default_settings();assert!(!settings.auto_submit);assert_eq!(settings.auto_submit_key, AutoSubmitKey::Enter);+ assert_eq!(+ settings.settings_schema_version,+ CURRENT_SETTINGS_SCHEMA_VERSION+ );+ }++ #[cfg(not(target_os = "linux"))]+ #[test]+ fn default_overlay_style_is_live_when_overlay_defaults_on() {+ let settings = get_default_settings();+ assert_eq!(settings.overlay_style, OverlayStyle::Live);+ }++ #[test]+ fn overlay_migration_keeps_disabled_overlay_off() {+ let mut settings = get_default_settings();++ // Legacy store: overlay was hidden via the retired position "none".+ let raw = serde_json::json!({+ "selected_model": "",+ "overlay_position": "none"+ });++ assert!(apply_settings_migrations(&mut settings, &raw));+ assert_eq!(settings.overlay_style, OverlayStyle::None);+ }++ #[test]+ fn legacy_none_overlay_position_deserializes_to_bottom() {+ // A persisted "none" must not fail the whole settings load; the serde+ // alias folds it onto Bottom (visibility is owned by overlay_style).+ let raw = serde_json::json!({ "overlay_position": "none" });+ let position: OverlayPosition =+ serde_json::from_value(raw.get("overlay_position").unwrap().clone())+ .expect("legacy \"none\" should deserialize, not error");+ assert_eq!(position, OverlayPosition::Bottom);+ }++ #[test]+ fn overlay_migration_promotes_enabled_overlay_to_live() {+ let mut settings = get_default_settings();+ settings.overlay_position = OverlayPosition::Top;+ settings.overlay_style = OverlayStyle::Minimal;++ let raw = serde_json::json!({+ "selected_model": "",+ "overlay_position": "top"+ });++ assert!(apply_settings_migrations(&mut settings, &raw));+ assert_eq!(settings.overlay_style, OverlayStyle::Live);+ assert_eq!(settings.overlay_position, OverlayPosition::Top);+ }++ #[test]+ fn gpu_device_migration_resets_legacy_positive_selection_to_auto() {+ let mut settings = get_default_settings();+ settings.transcribe_accelerator = TranscribeAcceleratorSetting::Gpu;+ settings.transcribe_gpu_device = 2;++ let raw = serde_json::json!({+ "transcribe_accelerator": "gpu",+ "transcribe_gpu_device": 2+ });++ assert!(apply_settings_migrations(&mut settings, &raw));+ assert_eq!(+ settings.transcribe_accelerator,+ TranscribeAcceleratorSetting::Auto+ );+ assert_eq!(+ settings.transcribe_gpu_device,+ default_transcribe_gpu_device()+ );+ assert_eq!(+ settings.settings_schema_version,+ CURRENT_SETTINGS_SCHEMA_VERSION+ );+ }++ #[test]+ fn gpu_device_migration_keeps_current_schema_positive_selection() {+ let mut settings = get_default_settings();+ settings.transcribe_accelerator = TranscribeAcceleratorSetting::Gpu;+ settings.transcribe_gpu_device = 2;++ let raw = serde_json::json!({+ "settings_schema_version": CURRENT_SETTINGS_SCHEMA_VERSION,+ "onboarding_completed": false,+ "whats_new_last_seen_version": default_whats_new_last_seen_version(),+ "overlay_style": "live",+ "transcribe_accelerator": "gpu",+ "transcribe_gpu_device": 2+ });++ assert!(!apply_settings_migrations(&mut settings, &raw));+ assert_eq!(+ settings.transcribe_accelerator,+ TranscribeAcceleratorSetting::Gpu+ );+ assert_eq!(settings.transcribe_gpu_device, 2);}#[test]diff --git a/src-tauri/src/shortcut/mod.rs b/src-tauri/src/shortcut/mod.rsindex 70b10fa8..3a33b3b7 100644--- a/src-tauri/src/shortcut/mod.rs+++ b/src-tauri/src/shortcut/mod.rs@@ -23,7 +23,7 @@ use tauri_plugin_autostart::ManagerExt;use crate::settings::APPLE_INTELLIGENCE_DEFAULT_MODEL_ID;use crate::settings::{self, get_settings, AutoSubmitKey, ClipboardHandling, KeyboardImplementation, LLMPrompt,- OverlayPosition, PasteMethod, ShortcutBinding, SoundTheme, TypingTool,+ OverlayPosition, OverlayStyle, PasteMethod, ShortcutBinding, SoundTheme, TypingTool,APPLE_INTELLIGENCE_PROVIDER_ID,};use crate::tray;@@ -283,14 +283,12 @@ pub fn change_keyboard_implementation_setting(settings::write_settings(&app, settings);// Initialize new implementation if needed (HandyKeys needs state)- if new_impl == KeyboardImplementation::HandyKeys {- if initialize_handy_keys_with_rollback(&app)? {- // Shortcuts already registered during init- return Ok(ImplementationChangeResult {- success: true,- reset_bindings: vec![],- });- }+ if new_impl == KeyboardImplementation::HandyKeys && initialize_handy_keys_with_rollback(&app)? {+ // Shortcuts already registered during init+ return Ok(ImplementationChangeResult {+ success: true,+ reset_bindings: vec![],+ });}// Register all shortcuts with new implementation, resetting invalid ones@@ -539,9 +537,10 @@ pub fn change_selected_language_setting(app: AppHandle, language: String) -> Respub fn change_overlay_position_setting(app: AppHandle, position: String) -> Result<(), String> {let mut settings = settings::get_settings(&app);let parsed = match position.as_str() {- "none" => OverlayPosition::None,+ // "none" is retired (visibility is overlay_style now); fold legacy callers+ // onto Bottom rather than warn.+ "none" | "bottom" => OverlayPosition::Bottom,"top" => OverlayPosition::Top,- "bottom" => OverlayPosition::Bottom,other => {warn!("Invalid overlay position '{}', defaulting to bottom", other);OverlayPosition::Bottom@@ -550,16 +549,40 @@ pub fn change_overlay_position_setting(app: AppHandle, position: String) -> Resusettings.overlay_position = parsed;settings::write_settings(&app, settings);- // Keep the cached overlay-enabled flag in sync so emit_levels stops- // (or resumes) emitting on the next audio callback.- crate::overlay::update_overlay_enabled_cache(parsed != OverlayPosition::None);-+ // Whether the overlay shows at all is owned by overlay_style now; position+ // only ever toggles Top/Bottom, so the enabled cache is untouched here.// Update overlay position without recreating windowcrate::utils::update_overlay_position(&app);Ok(())}+#[tauri::command]+#[specta::specta]+pub fn change_overlay_style_setting(app: AppHandle, style: String) -> Result<(), String> {+ let mut settings = settings::get_settings(&app);+ let parsed = match style.as_str() {+ "none" => OverlayStyle::None,+ "minimal" => OverlayStyle::Minimal,+ "live" => OverlayStyle::Live,+ other => {+ warn!("Invalid overlay style '{}', defaulting to minimal", other);+ OverlayStyle::Minimal+ }+ };+ settings.overlay_style = parsed;+ settings::write_settings(&app, settings);++ // Keep the cached overlay-enabled flag in sync so emit_levels stops (or+ // resumes) emitting on the next audio callback.+ crate::overlay::update_overlay_enabled_cache(parsed != OverlayStyle::None);++ // Reposition in case the window needs to re-center for the new style.+ crate::utils::update_overlay_position(&app);++ Ok(())+}+#[tauri::command]#[specta::specta]pub fn change_debug_mode_setting(app: AppHandle, enabled: bool) -> Result<(), String> {@@ -647,6 +670,49 @@ pub fn change_update_checks_setting(app: AppHandle, enabled: bool) -> Result<(),Ok(())}+#[tauri::command]+#[specta::specta]+pub fn change_show_whats_new_on_update_setting(+ app: AppHandle,+ enabled: bool,+) -> Result<(), String> {+ let mut settings = settings::get_settings(&app);+ settings.show_whats_new_on_update = enabled;+ settings::write_settings(&app, settings);++ let _ = app.emit(+ "settings-changed",+ serde_json::json!({+ "setting": "show_whats_new_on_update",+ "value": enabled+ }),+ );++ Ok(())+}++#[tauri::command]+#[specta::specta]+pub fn change_whats_new_last_seen_version_setting(+ app: AppHandle,+ version: String,+) -> Result<(), String> {+ let version = version.trim().to_string();+ let mut settings = settings::get_settings(&app);+ settings.whats_new_last_seen_version = version.clone();+ settings::write_settings(&app, settings);++ let _ = app.emit(+ "settings-changed",+ serde_json::json!({+ "setting": "whats_new_last_seen_version",+ "value": version+ }),+ );++ Ok(())+}+#[tauri::command]#[specta::specta]pub fn update_custom_words(app: AppHandle, words: Vec<String>) -> Result<(), String> {@@ -1077,6 +1143,15 @@ pub fn change_lazy_stream_close_setting(app: AppHandle, enabled: bool) -> ResultOk(())}+#[tauri::command]+#[specta::specta]+pub fn change_vad_enabled_setting(app: AppHandle, enabled: bool) -> Result<(), String> {+ let mut settings = settings::get_settings(&app);+ settings.vad_enabled = enabled;+ settings::write_settings(&app, settings);+ Ok(())+}+#[tauri::command]#[specta::specta]pub fn change_app_language_setting(app: AppHandle, language: String) -> Result<(), String> {@@ -1103,29 +1178,24 @@ pub fn change_show_tray_icon_setting(app: AppHandle, enabled: bool) -> Result<()Ok(())}-/// Save accelerator settings, re-apply globals, and unload the model so it-/// reloads with the new backend on next transcription.-fn apply_and_reload_accelerator(app: &AppHandle, s: settings::AppSettings) {+/// Save accelerator settings and make the next model use reload with them.+/// The currently running transcription, if any, keeps its existing engine.+fn save_accelerator_and_reload_next_use(app: &AppHandle, s: settings::AppSettings) {settings::write_settings(app, s);- crate::managers::transcription::apply_accelerator_settings(app);let tm = app.state::<std::sync::Arc<crate::managers::transcription::TranscriptionManager>>();- if tm.is_model_loaded() {- if let Err(e) = tm.unload_model() {- log::warn!("Failed to unload model after accelerator change: {e}");- }- }+ tm.reload_model_on_next_use();}#[tauri::command]#[specta::specta]-pub fn change_whisper_accelerator_setting(+pub fn change_transcribe_accelerator_setting(app: AppHandle,- accelerator: settings::WhisperAcceleratorSetting,+ accelerator: settings::TranscribeAcceleratorSetting,) -> Result<(), String> {let mut s = settings::get_settings(&app);- s.whisper_accelerator = accelerator;- apply_and_reload_accelerator(&app, s);+ s.transcribe_accelerator = accelerator;+ save_accelerator_and_reload_next_use(&app, s);Ok(())}@@ -1137,23 +1207,23 @@ pub fn change_ort_accelerator_setting() -> Result<(), String> {let mut s = settings::get_settings(&app);s.ort_accelerator = accelerator;- apply_and_reload_accelerator(&app, s);+ save_accelerator_and_reload_next_use(&app, s);Ok(())}#[tauri::command]#[specta::specta]-pub fn change_whisper_gpu_device(app: AppHandle, device: i32) -> Result<(), String> {+pub fn change_transcribe_gpu_device(app: AppHandle, device: i32) -> Result<(), String> {let mut s = settings::get_settings(&app);- s.whisper_gpu_device = device;- apply_and_reload_accelerator(&app, s);+ s.transcribe_gpu_device = device;+ save_accelerator_and_reload_next_use(&app, s);Ok(())}/// Return which accelerators and GPU devices are available for this build.////// First-call cost is dominated by enumerating GPU devices through the-/// whisper.cpp Metal/Vulkan backend, which loads dynamic libraries and+/// transcribe.cpp Metal/Vulkan backend, which loads dynamic libraries and/// probes hardware. Run it on the blocking pool so the webview thread/// stays responsive — see also the startup pre-warm in `lib.rs`.#[tauri::command]diff --git a/src-tauri/src/transcription_coordinator.rs b/src-tauri/src/transcription_coordinator.rsindex 255cd4d4..e35495c0 100644--- a/src-tauri/src/transcription_coordinator.rs+++ b/src-tauri/src/transcription_coordinator.rs@@ -62,7 +62,7 @@ impl TranscriptionCoordinator {// Releases always pass through for push-to-talk.if is_pressed {let now = Instant::now();- if last_press.map_or(false, |t| now.duration_since(t) < DEBOUNCE) {+ if last_press.is_some_and(|t| now.duration_since(t) < DEBOUNCE) {debug!("Debounced press for '{binding_id}'");continue;}@@ -166,7 +166,7 @@ fn start(app: &AppHandle, stage: &mut Stage, binding_id: &str, hotkey_string: &saction.start(app, binding_id, hotkey_string);if app.try_state::<Arc<AudioRecordingManager>>()- .map_or(false, |a| a.is_recording())+ .is_some_and(|a| a.is_recording()){*stage = Stage::Recording(binding_id.to_string());} else {diff --git a/src-tauri/src/utils.rs b/src-tauri/src/utils.rsindex 063e4b31..79005ec0 100644--- a/src-tauri/src/utils.rs+++ b/src-tauri/src/utils.rs@@ -25,12 +25,15 @@ pub fn cancel_current_operation(app: &AppHandle) {let recording_was_active = audio_manager.is_recording();audio_manager.cancel_recording();+ // Abandon any live streaming transcription+ let tm = app.state::<Arc<TranscriptionManager>>();+ tm.cancel_stream();+// Update tray icon and hide overlaychange_tray_icon(app, crate::tray::TrayIconState::Idle);hide_recording_overlay(app);// Unload model if immediate unload is enabled- let tm = app.state::<Arc<TranscriptionManager>>();tm.maybe_unload_immediately("cancellation");// Notify coordinator so it can keep lifecycle state coherent.diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.jsonindex 274f86b4..8c93fdf2 100644--- a/src-tauri/tauri.conf.json+++ b/src-tauri/tauri.conf.json@@ -1,7 +1,7 @@{"$schema": "https://schema.tauri.app/config/2","productName": "Handy",- "version": "0.8.3",+ "version": "0.9.0","identifier": "com.pais.handy","build": {"beforeDevCommand": "bun run dev",@@ -45,16 +45,24 @@},"linux": {"deb": {- "depends": ["libgtk-layer-shell0"]+ "depends": ["libgtk-layer-shell0"],+ "files": {+ "/usr/lib": "transcribe-libs"+ }},"rpm": {"compression": {"type": "none"+ },+ "files": {+ "/usr/lib": "transcribe-libs"}},"appimage": {"bundleMediaFramework": true,- "files": {}+ "files": {+ "/usr/lib": "transcribe-libs"+ }}},"windows": {diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.jsonnew file mode 100644index 00000000..d9b28262--- /dev/null+++ b/src-tauri/tauri.windows.conf.json@@ -0,0 +1,8 @@+{+ "bundle": {+ "resources": {+ "resources": "resources",+ "transcribe-libs": "."+ }+ }+}diff --git a/src/App.css b/src/App.cssindex d8168d66..f0d79153 100644--- a/src/App.css+++ b/src/App.css@@ -1,14 +1,16 @@@import "tailwindcss";--@theme {- /* Design tokens */- --color-text: #0f0f0f;- --color-background: #fbfbfb;- --color-background-ui: #da5893;- --color-logo-primary: #faa2ca;- --color-logo-stroke: #382731;- --color-text-stroke: #f6f6f6;- --color-mid-gray: #808080;+@import "./styles/theme.css";++/* Register the shared color tokens (src/styles/theme.css) as Tailwind+ utilities */+@theme inline {+ --color-text: var(--color-text);+ --color-background: var(--color-background);+ --color-background-ui: var(--color-background-ui);+ --color-logo-primary: var(--color-logo-primary);+ --color-logo-stroke: var(--color-logo-stroke);+ --color-text-stroke: var(--color-text-stroke);+ --color-mid-gray: var(--color-mid-gray);}:root {@@ -17,13 +19,6 @@line-height: 24px;font-weight: 400;- /* Colors - Light Theme */- /* --color-text: #0f0f0f;- --color-background: #fbfbfb;- --color-logo-primary: #FAA2CA;- --color-logo-stroke: #382731;- --color-text-stroke: #f6f6f6; */-/* Typography settings */font-synthesis: none;text-rendering: optimizeLegibility;@@ -59,11 +54,6 @@@media (prefers-color-scheme: dark) {:root {- /* Colors - Dark Theme */- --color-text: #fbfbfb;- --color-background: #2c2b29;- --color-logo-primary: #f28cbb;- --color-logo-stroke: #fad1ed;/* Just a bit darker than the (already dark) background, keeping its warm tint */--color-log-surface: color-mix(in srgb, var(--color-background), black 15%);}diff --git a/src/App.tsx b/src/App.tsxindex 453e8910..0866e398 100644--- a/src/App.tsx+++ b/src/App.tsx@@ -13,6 +13,7 @@ import AccessibilityPermissions from "./components/AccessibilityPermissions";import Footer from "./components/footer";import Onboarding, { AccessibilityOnboarding } from "./components/onboarding";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 { commands } from "@/bindings";@@ -137,6 +138,19 @@ function App() {};}, [t]);+ // Listen for transcription failures and show a toast.+ // The payload is the backend error message (also logged to handy.log).+ useEffect(() => {+ const unlisten = listen<string>("transcription-error", (event) => {+ toast.error(t("errors.transcriptionFailedTitle"), {+ description: event.payload,+ });+ });+ return () => {+ unlisten.then((fn) => fn());+ };+ }, [t]);+// Listen for model loading failures and show a toastuseEffect(() => {const unlisten = listen<ModelStateEvent>("model-state-changed", (event) => {@@ -167,12 +181,13 @@ function App() {const checkOnboardingStatus = async () => {try {- // Check if they have any models available- const result = await commands.hasAnyModelsAvailable();- const hasModels = result.status === "ok" && result.data;+ const settingsResult = await commands.getAppSettings();+ const hasCompletedOnboarding =+ settingsResult.status === "ok" &&+ settingsResult.data.onboarding_completed === true;const currentPlatform = platform();- if (hasModels) {+ if (hasCompletedOnboarding) {// Returning user - check if they need to grant permissions firstsetIsReturningUser(true);@@ -264,6 +279,7 @@ function App() {},}}/>+ <WhatsNewGate />{/* Main content area that takes remaining space */}<div className="flex-1 flex overflow-hidden"><Sidebardiff --git a/src/bindings.ts b/src/bindings.tsindex 476c4118..fba9384a 100644--- a/src/bindings.ts+++ b/src/bindings.ts@@ -93,6 +93,14 @@ async changeOverlayPositionSetting(position: string) : Promise<Result<null, strielse return { status: "error", error: e as any };}},+async changeOverlayStyleSetting(style: string) : Promise<Result<null, string>> {+ try {+ return { status: "ok", data: await TAURI_INVOKE("change_overlay_style_setting", { style }) };+} catch (e) {+ if(e instanceof Error) throw e;+ else return { status: "error", error: e as any };+}+},async changeDebugModeSetting(enabled: boolean) : Promise<Result<null, string>> {try {return { status: "ok", data: await TAURI_INVOKE("change_debug_mode_setting", { enabled }) };@@ -319,6 +327,14 @@ async changeLazyStreamCloseSetting(enabled: boolean) : Promise<Result<null, strielse return { status: "error", error: e as any };}},+async changeVadEnabledSetting(enabled: boolean) : Promise<Result<null, string>> {+ try {+ return { status: "ok", data: await TAURI_INVOKE("change_vad_enabled_setting", { enabled }) };+} catch (e) {+ if(e instanceof Error) throw e;+ else return { status: "error", error: e as any };+}+},async changeAppLanguageSetting(language: string) : Promise<Result<null, string>> {try {return { status: "ok", data: await TAURI_INVOKE("change_app_language_setting", { language }) };@@ -335,6 +351,22 @@ async changeUpdateChecksSetting(enabled: boolean) : Promise<Result<null, string>else return { status: "error", error: e as any };}},+async changeShowWhatsNewOnUpdateSetting(enabled: boolean) : Promise<Result<null, string>> {+ try {+ return { status: "ok", data: await TAURI_INVOKE("change_show_whats_new_on_update_setting", { enabled }) };+} catch (e) {+ if(e instanceof Error) throw e;+ else return { status: "error", error: e as any };+}+},+async changeWhatsNewLastSeenVersionSetting(version: string) : Promise<Result<null, string>> {+ try {+ return { status: "ok", data: await TAURI_INVOKE("change_whats_new_last_seen_version_setting", { version }) };+} catch (e) {+ if(e instanceof Error) throw e;+ else return { status: "error", error: e as any };+}+},/*** Change the keyboard implementation with runtime switching.* This will unregister all shortcuts from the old implementation,@@ -363,9 +395,9 @@ async changeShowTrayIconSetting(enabled: boolean) : Promise<Result<null, string>else return { status: "error", error: e as any };}},-async changeWhisperAcceleratorSetting(accelerator: WhisperAcceleratorSetting) : Promise<Result<null, string>> {+async changeTranscribeAcceleratorSetting(accelerator: TranscribeAcceleratorSetting) : Promise<Result<null, string>> {try {- return { status: "ok", data: await TAURI_INVOKE("change_whisper_accelerator_setting", { accelerator }) };+ return { status: "ok", data: await TAURI_INVOKE("change_transcribe_accelerator_setting", { accelerator }) };} catch (e) {if(e instanceof Error) throw e;else return { status: "error", error: e as any };@@ -379,9 +411,9 @@ async changeOrtAcceleratorSetting(accelerator: OrtAcceleratorSetting) : Promise<else return { status: "error", error: e as any };}},-async changeWhisperGpuDevice(device: number) : Promise<Result<null, string>> {+async changeTranscribeGpuDevice(device: number) : Promise<Result<null, string>> {try {- return { status: "ok", data: await TAURI_INVOKE("change_whisper_gpu_device", { device }) };+ return { status: "ok", data: await TAURI_INVOKE("change_transcribe_gpu_device", { device }) };} catch (e) {if(e instanceof Error) throw e;else return { status: "error", error: e as any };@@ -391,7 +423,7 @@ async changeWhisperGpuDevice(device: number) : Promise<Result<null, string>> {* Return which accelerators and GPU devices are available for this build.** First-call cost is dominated by enumerating GPU devices through the- * whisper.cpp Metal/Vulkan backend, which loads dynamic libraries and+ * transcribe.cpp Metal/Vulkan backend, which loads dynamic libraries and* probes hardware. Run it on the blocking pool so the webview thread* stays responsive — see also the startup pre-warm in `lib.rs`.*/@@ -610,17 +642,13 @@ async isModelLoading() : Promise<Result<boolean, string>> {else return { status: "error", error: e as any };}},-async hasAnyModelsAvailable() : Promise<Result<boolean, string>> {- try {- return { status: "ok", data: await TAURI_INVOKE("has_any_models_available") };-} catch (e) {- if(e instanceof Error) throw e;- else return { status: "error", error: e as any };-}-},-async hasAnyModelsOrDownloads() : Promise<Result<boolean, string>> {+/**+ * Re-scan local sources (custom models dir + shared HF cache) for models added+ * since launch+ */+async rescanLocalModels() : Promise<Result<null, string>> {try {- return { status: "ok", data: await TAURI_INVOKE("has_any_models_or_downloads") };+ return { status: "ok", data: await TAURI_INVOKE("rescan_local_models") };} catch (e) {if(e instanceof Error) throw e;else return { status: "error", error: e as any };@@ -821,9 +849,13 @@ async isLaptop() : Promise<Result<boolean, string>> {export const events = __makeEvents__<{-historyUpdatePayload: HistoryUpdatePayload+historyUpdatePayload: HistoryUpdatePayload,+streamPhaseEvent: StreamPhaseEvent,+streamTextEvent: StreamTextEvent}>({-historyUpdatePayload: "history-update-payload"+historyUpdatePayload: "history-update-payload",+streamPhaseEvent: "stream-phase-event",+streamTextEvent: "stream-text-event"})/** user-defined constants **/@@ -832,14 +864,39 @@ historyUpdatePayload: "history-update-payload"/** user-defined types **/-export type AppSettings = { bindings: Partial<{ [key in string]: ShortcutBinding }>; push_to_talk: boolean; audio_feedback: boolean; audio_feedback_volume?: number; sound_theme?: SoundTheme; start_hidden?: boolean; autostart_enabled?: boolean; update_checks_enabled?: boolean; selected_model?: string; always_on_microphone?: boolean; selected_microphone?: string | null; clamshell_microphone?: string | null; selected_output_device?: string | null; translate_to_english?: boolean; selected_language?: string; overlay_position?: OverlayPosition; debug_mode?: boolean; log_level?: LogLevel; custom_words?: string[]; model_unload_timeout?: ModelUnloadTimeout; word_correction_threshold?: number; history_limit?: number; recording_retention_period?: RecordingRetentionPeriod; paste_method?: PasteMethod; clipboard_handling?: ClipboardHandling; auto_submit?: boolean; auto_submit_key?: AutoSubmitKey; post_process_enabled?: boolean; post_process_provider_id?: string; post_process_providers?: PostProcessProvider[]; post_process_api_keys?: SecretMap; post_process_models?: Partial<{ [key in string]: string }>; post_process_prompts?: LLMPrompt[]; post_process_selected_prompt_id?: string | null; mute_while_recording?: boolean; append_trailing_space?: boolean; app_language?: string; experimental_enabled?: boolean; lazy_stream_close?: boolean; keyboard_implementation?: KeyboardImplementation; show_tray_icon?: boolean; paste_delay_ms?: number; typing_tool?: TypingTool; external_script_path: string | null; custom_filler_words?: string[] | null; whisper_accelerator?: WhisperAcceleratorSetting; ort_accelerator?: OrtAcceleratorSetting; whisper_gpu_device?: number; extra_recording_buffer_ms?: number }+export type AppSettings = {+/**+ * Internal settings schema marker for one-time migrations. Fresh installs+ * start at the current version; existing stores missing this key are+ * treated as version 0 and migrated forward.+ */+settings_schema_version?: number; bindings: Partial<{ [key in string]: ShortcutBinding }>; push_to_talk: boolean; audio_feedback: boolean; audio_feedback_volume?: number; sound_theme?: SoundTheme; start_hidden?: boolean; autostart_enabled?: boolean; update_checks_enabled?: boolean; show_whats_new_on_update?: boolean;+/**+ * The app version whose What's New the user has already seen. Fresh installs+ * default to the current version (nothing is "new" to them). Existing users+ * upgrading from before this key existed are blanked by the migration so they+ * see the current release's notes — see `apply_settings_migrations`.+ */+whats_new_last_seen_version?: string; selected_model?: string; onboarding_completed?: boolean; always_on_microphone?: boolean; selected_microphone?: string | null; clamshell_microphone?: string | null; selected_output_device?: string | null; translate_to_english?: boolean; selected_language?: string; overlay_position?: OverlayPosition; debug_mode?: boolean; log_level?: LogLevel; custom_words?: string[]; model_unload_timeout?: ModelUnloadTimeout; word_correction_threshold?: number; history_limit?: number; recording_retention_period?: RecordingRetentionPeriod; paste_method?: PasteMethod; clipboard_handling?: ClipboardHandling; auto_submit?: boolean; auto_submit_key?: AutoSubmitKey; post_process_enabled?: boolean; post_process_provider_id?: string; post_process_providers?: PostProcessProvider[]; post_process_api_keys?: SecretMap; post_process_models?: Partial<{ [key in string]: string }>; post_process_prompts?: LLMPrompt[]; post_process_selected_prompt_id?: string | null; mute_while_recording?: boolean; append_trailing_space?: boolean; app_language?: string; experimental_enabled?: boolean; lazy_stream_close?: boolean; keyboard_implementation?: KeyboardImplementation; show_tray_icon?: boolean; paste_delay_ms?: number; typing_tool?: TypingTool; external_script_path: string | null; custom_filler_words?: string[] | null; transcribe_accelerator?: TranscribeAcceleratorSetting; ort_accelerator?: OrtAcceleratorSetting; transcribe_gpu_device?: number; extra_recording_buffer_ms?: number; vad_enabled?: boolean;+/**+ * Which recording overlay to show: None / Minimal / Live. Streaming mode is+ * not gated on this — that follows model capability. Migrated from the old+ * `overlay_position` (position `none` → style `None`).+ */+overlay_style?: OverlayStyle }export type AudioDevice = { index: string; name: string; is_default: boolean }export type AutoSubmitKey = "enter" | "ctrl_enter" | "cmd_enter"-export type AvailableAccelerators = { whisper: string[]; ort: string[]; gpu_devices: GpuDeviceOption[] }+export type AvailableAccelerators = { transcribe: string[]; ort: string[]; gpu_devices: GpuDeviceOption[] }export type BindingResponse = { success: boolean; binding: ShortcutBinding | null; error: string | null }export type ClipboardHandling = "dont_modify" | "copy_to_clipboard"export type CustomSounds = { start: boolean; stop: boolean }-export type EngineType = "Whisper" | "Parakeet" | "Moonshine" | "MoonshineStreaming" | "SenseVoice" | "GigaAM" | "Canary" | "Cohere"+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: number; 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 }@@ -854,11 +911,42 @@ reset_bindings: string[] }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; url: string | null; sha256: string | null; 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 }+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 ModelLoadStatus = { is_loaded: boolean; current_model: string | null }+/**+ * Where a model comes from and how Handy obtains it — the routing discriminant+ * for downloading and on-disk resolution.+ */+export type ModelSource =+/**+ * Direct HTTP download from a URL (current blob.handy.computer hosting).+ */+{ Url: { url: string;+/**+ * Expected SHA-256 for integrity verification; `None` skips it.+ */+sha256: string | null } } |+/**+ * A file inside a Hugging Face Hub repo, fetched via hf-hub into the shared+ * HF cache (so other tools reuse it). The file within the repo is+ * [`ModelInfo::filename`].+ */+{ HuggingFace: { repo_id: string; revision: string } } |+/**+ * Already present on disk — a user-provided custom model, or one discovered+ * in a shared cache. Nothing to download.+ */+"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 = "none" | "top" | "bottom"+export type OverlayPosition = "top" | "bottom"+/**+ * Which recording overlay to display. `Minimal` and `Live` share one base+ * (the pill); `Live` grows into the panel that shows live transcription text.+ * `None` hides the overlay entirely. Decoupled from whether the model runs in+ * streaming mode (that is driven purely by model capability).+ */+export type OverlayStyle = "none" | "minimal" | "live"export type PaginatedHistory = { entries: HistoryEntry[]; has_more: boolean }export type PasteMethod = "ctrl_v" | "direct" | "none" | "shift_insert" | "ctrl_shift_v" | "external_script"export type PermissionAccess = "allowed" | "denied" | "unknown"@@ -867,8 +955,40 @@ export type RecordingRetentionPeriod = "never" | "preserve_limit" | "days_3" | "export type SecretMap = Partial<{ [key in string]: string }>export type ShortcutBinding = { id: string; name: string; description: string; default_binding: string; current_binding: string }export type SoundTheme = "marimba" | "pop" | "custom"+/**+ * Phase of the streaming overlay card, emitted to drive its UI state.+ */+export type StreamPhase =+/**+ * Receiving audio / live text (or waiting for the stream to begin). Rust+ * does not emit this today; the frontend starts in this phase and Rust only+ * emits transitions away from it.+ */+"listening" |+/**+ * Finalizing or post-processing — show a spinner.+ */+"working"+/**+ * Emitted to switch the streaming overlay to a working spinner.+ */+export type StreamPhaseEvent = { phase: StreamPhase;+/**+ * Present only when `phase` is `Working`.+ */+kind?: StreamWorkKind | null }+/**+ * Live transcription snapshot emitted to the overlay during a streaming run.+ * `committed` is the append-only, flicker-free prefix; `tentative` is the+ * volatile suffix the model may still rewrite.+ */+export type StreamTextEvent = { committed: string; tentative: string }+/**+ * Semantic kind of "working" phase, used to localize the spinner label.+ */+export type StreamWorkKind = "transcribing" | "polishing"+export type TranscribeAcceleratorSetting = "auto" | "cpu" | "gpu"export type TypingTool = "auto" | "wtype" | "kwtype" | "dotool" | "ydotool" | "xdotool"-export type WhisperAcceleratorSetting = "auto" | "cpu" | "gpu"export type WindowsMicrophonePermissionStatus = { supported: boolean; overall_access: PermissionAccess; device_access: PermissionAccess; app_access: PermissionAccess; desktop_app_access: PermissionAccess }/** tauri-specta globals **/diff --git a/src/components/model-selector/ModelDropdown.tsx b/src/components/model-selector/ModelDropdown.tsxindex 17abc15d..4cc87a22 100644--- a/src/components/model-selector/ModelDropdown.tsx+++ b/src/components/model-selector/ModelDropdown.tsx@@ -55,6 +55,11 @@ const ModelDropdown: React.FC<ModelDropdownProps> = ({{t("modelSelector.custom")}</span>)}+ {model.supports_streaming && (+ <span className="ms-1.5 text-[10px] font-medium text-logo-primary/70 uppercase">+ {t("modelSelector.streaming")}+ </span>+ )}</div><div className="text-xs text-text/40 italic pe-4">{getTranslatedModelDescription(model, t)}diff --git a/src/components/onboarding/ModelCard.tsx b/src/components/onboarding/ModelCard.tsxindex f17e2d2d..a0285cd8 100644--- a/src/components/onboarding/ModelCard.tsx+++ b/src/components/onboarding/ModelCard.tsx@@ -1,6 +1,7 @@import React from "react";import { useTranslation } from "react-i18next";import {+ AudioLines,Check,Download,Globe,@@ -15,7 +16,10 @@ import {getTranslatedModelDescription,getTranslatedModelName,} from "../../lib/utils/modelTranslation";-import { LANGUAGES } from "../../lib/constants/languages";+import {+ getLanguageLabel,+ getUniqueCapabilityLanguages,+} from "../../lib/constants/languages";import Badge from "../ui/Badge";import { Button } from "../ui/Button";@@ -24,13 +28,28 @@ const getLanguageDisplayText = (supportedLanguages: string[],t: (key: string, options?: Record<string, unknown>) => string,): string => {- if (supportedLanguages.length === 1) {- const langCode = supportedLanguages[0];- const langName =- LANGUAGES.find((l) => l.value === langCode)?.label || langCode;+ const capabilityLanguages = getUniqueCapabilityLanguages(supportedLanguages);+ if (capabilityLanguages.length === 1) {+ const langCode = capabilityLanguages[0];+ const langName = getLanguageLabel(langCode) || langCode;return t("modelSelector.capabilities.languageOnly", { language: langName });}- return t("modelSelector.capabilities.multiLanguage");+ return t("modelSelector.capabilities.languageCount", {+ total: capabilityLanguages.length,+ });+};++// Legacy = a blob (Url-sourced) .bin/ONNX 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;++// Extract a GGUF quantization label from a filename, if present (e.g. "Q8_0").+const getQuantLabel = (filename: string): string | null => {+ const match = filename.match(+ /[._-](IQ\d+_\w+|Q\d+(?:_\w+)?|F16|BF16|F32)\.gguf$/i,+ );+ return match ? match[1].toUpperCase() : null;};export type ModelCardStatus =@@ -82,6 +101,10 @@ const ModelCard: React.FC<ModelCardProps> = ({const showModelSize =status === "downloadable" || status === "available" || status === "active";const formattedModelSize = formatModelSize(Number(model.size_mb));+ const quantLabel = getQuantLabel(model.filename);+ const capabilityLanguages = getUniqueCapabilityLanguages(+ model.supported_languages,+ );const baseClasses ="flex flex-col rounded-xl px-4 py-3 gap-2 text-left transition-all duration-200";@@ -154,6 +177,9 @@ const ModelCard: React.FC<ModelCardProps> = ({{model.is_custom && (<Badge variant="secondary">{t("modelSelector.custom")}</Badge>)}+ {isLegacySource(model) && (+ <Badge variant="secondary">{t("modelSelector.legacy")}</Badge>+ )}{status === "switching" && (<Badge variant="secondary"><Loader2 className="w-3 h-3 mr-1 animate-spin" />@@ -199,11 +225,11 @@ const ModelCard: React.FC<ModelCardProps> = ({{/* Bottom row: tags + action buttons (full width) */}<div className="flex items-center gap-3 w-full -mb-0.5 mt-0.5 h-5">- {model.supported_languages.length > 0 && (+ {capabilityLanguages.length > 0 && (<divclassName="flex items-center gap-1 text-xs text-text/50"title={- model.supported_languages.length === 1+ capabilityLanguages.length === 1? t("modelSelector.capabilities.singleLanguage"): t("modelSelector.capabilities.languageSelection")}@@ -221,6 +247,15 @@ const ModelCard: React.FC<ModelCardProps> = ({<span>{t("modelSelector.capabilities.translate")}</span></div>)}+ {model.supports_streaming && (+ <div+ className="flex items-center gap-1 text-xs text-text/50"+ title={t("modelSelector.capabilities.streaming")}+ >+ <AudioLines className="w-3.5 h-3.5" />+ <span>{t("modelSelector.streaming")}</span>+ </div>+ )}{showModelSize && (<span className="flex items-center gap-1.5 ms-auto text-xs text-text/50">{status === "downloadable" ? (@@ -229,6 +264,7 @@ const ModelCard: React.FC<ModelCardProps> = ({<HardDrive className="w-3.5 h-3.5" />)}<span>{formattedModelSize}</span>+ {quantLabel && <span className="text-text/40">{quantLabel}</span>}</span>)}{onDelete && (status === "available" || status === "active") && (diff --git a/src/components/onboarding/Onboarding.tsx b/src/components/onboarding/Onboarding.tsxindex dfaa1e26..a19bae87 100644--- a/src/components/onboarding/Onboarding.tsx+++ b/src/components/onboarding/Onboarding.tsx@@ -1,9 +1,10 @@-import React, { useEffect, useState } from "react";+import React, { useEffect, useMemo, useRef, useState } from "react";import { useTranslation } from "react-i18next";import { toast } from "sonner";+import { ChevronDown } from "lucide-react";import type { ModelInfo } from "@/bindings";import type { ModelCardStatus } from "./ModelCard";-import ModelCard from "./ModelCard";+import ModelCard, { isLegacySource } from "./ModelCard";import HandyTextLogo from "../icons/HandyTextLogo";import { useModelStore } from "../../stores/modelStore";@@ -24,12 +25,44 @@ const Onboarding: React.FC<OnboardingProps> = ({ onModelSelected }) => {downloadStats,} = useModelStore();const [selectedModelId, setSelectedModelId] = useState<string | null>(null);+ const [showAll, setShowAll] = useState(false);+ const hasStartedSelection = useRef(false);- const isDownloading = selectedModelId !== null;+ const isBusy = selectedModelId !== null;++ // Curate the download list: legacy (.bin/ONNX) 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+ // Streaming (multilingual). Everything else hides behind "Show all".+ const { downloadable, topPicks, otherRecommended, rest } = useMemo(() => {+ const downloadable = models.filter(+ (m: ModelInfo) => !m.is_downloaded && !isLegacySource(m),+ );+ const recommended = downloadable.filter((m: ModelInfo) => m.is_recommended);+ // `models` arrives in editorial rank order (the backend sorts by rank_of,+ // then accuracy), so keep that order here: ranked-but-not-recommended models+ // surface first, then the unranked tail by accuracy.+ const rest = downloadable.filter((m: ModelInfo) => !m.is_recommended);+ return {+ downloadable,+ topPicks: recommended.slice(0, 2),+ otherRecommended: recommended.slice(2),+ rest,+ };+ }, [models]);++ 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 + extractinguseEffect(() => {- if (!selectedModelId) return;+ if (!selectedModelId) {+ hasStartedSelection.current = false;+ return;+ }const model = models.find((m) => m.id === selectedModelId);const stillDownloading = selectedModelId in downloadingModels;@@ -40,14 +73,18 @@ const Onboarding: React.FC<OnboardingProps> = ({ onModelSelected }) => {model?.is_downloaded &&!stillDownloading &&!stillVerifying &&- !stillExtracting+ !stillExtracting &&+ !hasStartedSelection.current) {+ hasStartedSelection.current = true;+// Model is ready — select it and transitionselectModel(selectedModelId).then((success) => {if (success) {onModelSelected();} else {toast.error(t("onboarding.errors.selectModel"));+ hasStartedSelection.current = false;setSelectedModelId(null);}});@@ -60,6 +97,7 @@ const Onboarding: React.FC<OnboardingProps> = ({ onModelSelected }) => {extractingModels,selectModel,onModelSelected,+ t,]);const handleDownloadModel = async (modelId: string) => {@@ -73,6 +111,10 @@ const Onboarding: React.FC<OnboardingProps> = ({ onModelSelected }) => {}};+ const handleSelectExistingModel = (modelId: string) => {+ setSelectedModelId(modelId);+ };+const getModelStatus = (modelId: string): ModelCardStatus => {if (modelId in extractingModels) return "extracting";if (modelId in verifyingModels) return "verifying";@@ -80,6 +122,11 @@ const Onboarding: React.FC<OnboardingProps> = ({ onModelSelected }) => {return "downloadable";};+ const getExistingModelStatus = (modelId: string): ModelCardStatus => {+ if (selectedModelId === modelId) return "switching";+ return "available";+ };+const getModelDownloadProgress = (modelId: string): number | undefined => {return downloadProgress[modelId]?.percentage;};@@ -98,43 +145,101 @@ const Onboarding: React.FC<OnboardingProps> = ({ onModelSelected }) => {</div><div className="max-w-[600px] w-full mx-auto text-center flex-1 flex flex-col min-h-0">- <div className="flex flex-col gap-4 pb-6">- {models- .filter((m: ModelInfo) => !m.is_downloaded)- .filter((model: ModelInfo) => model.is_recommended)- .map((model: ModelInfo) => (- <ModelCard- key={model.id}- model={model}- variant="featured"- status={getModelStatus(model.id)}- disabled={isDownloading}- onSelect={handleDownloadModel}- onDownload={handleDownloadModel}- downloadProgress={getModelDownloadProgress(model.id)}- downloadSpeed={getModelDownloadSpeed(model.id)}- />- ))}-- {models- .filter((m: ModelInfo) => !m.is_downloaded)- .filter((model: ModelInfo) => !model.is_recommended)- .sort(- (a: ModelInfo, b: ModelInfo) =>- Number(a.size_mb) - Number(b.size_mb),- )- .map((model: ModelInfo) => (- <ModelCard- key={model.id}- model={model}- status={getModelStatus(model.id)}- disabled={isDownloading}- onSelect={handleDownloadModel}- onDownload={handleDownloadModel}- downloadProgress={getModelDownloadProgress(model.id)}- downloadSpeed={getModelDownloadSpeed(model.id)}- />- ))}+ <div className="space-y-6 pb-6">+ {models.some((m: ModelInfo) => m.is_downloaded) && (+ <div className="space-y-3">+ <div className="text-left">+ <h2 className="text-sm font-medium text-text/60">+ {t("onboarding.existingModelsTitle")}+ </h2>+ </div>+ {models+ .filter((m: ModelInfo) => m.is_downloaded)+ .map((model: ModelInfo) => (+ <ModelCard+ key={model.id}+ model={model}+ status={getExistingModelStatus(model.id)}+ disabled={isBusy}+ onSelect={handleSelectExistingModel}+ showRecommended={false}+ />+ ))}+ </div>+ )}++ {downloadable.length > 0 && (+ <div className="space-y-3">+ <div className="text-left">+ <h2 className="text-sm font-medium text-text/60">+ {t("onboarding.downloadModelsTitle")}+ </h2>+ </div>++ {topPicks.map((model: ModelInfo) => (+ <ModelCard+ key={model.id}+ model={model}+ variant="featured"+ status={getModelStatus(model.id)}+ disabled={isBusy}+ onSelect={handleDownloadModel}+ onDownload={handleDownloadModel}+ downloadProgress={getModelDownloadProgress(model.id)}+ downloadSpeed={getModelDownloadSpeed(model.id)}+ showRecommended={false}+ />+ ))}++ {otherRecommended.map((model: ModelInfo) => (+ <ModelCard+ key={model.id}+ model={model}+ status={getModelStatus(model.id)}+ disabled={isBusy}+ onSelect={handleDownloadModel}+ onDownload={handleDownloadModel}+ downloadProgress={getModelDownloadProgress(model.id)}+ downloadSpeed={getModelDownloadSpeed(model.id)}+ showRecommended={false}+ />+ ))}++ {hasRecommended && rest.length > 0 && (+ <button+ type="button"+ onClick={() => setShowAll((v) => !v)}+ className="flex items-center justify-center gap-1.5 mx-auto py-1 text-sm font-medium text-text/60 hover:text-text transition-colors"+ >+ {showAll+ ? t("onboarding.showFewerModels")+ : t("onboarding.showAllModels", {+ total: downloadable.length,+ })}+ <ChevronDown+ className={`w-4 h-4 transition-transform duration-200 ${+ showAll ? "rotate-180" : ""+ }`}+ />+ </button>+ )}++ {showRest &&+ rest.map((model: ModelInfo) => (+ <ModelCard+ key={model.id}+ model={model}+ status={getModelStatus(model.id)}+ disabled={isBusy}+ onSelect={handleDownloadModel}+ onDownload={handleDownloadModel}+ downloadProgress={getModelDownloadProgress(model.id)}+ downloadSpeed={getModelDownloadSpeed(model.id)}+ showRecommended={false}+ />+ ))}+ </div>+ )}</div></div></div>diff --git a/src/components/settings/AccelerationSelector.tsx b/src/components/settings/AccelerationSelector.tsxindex f67e7c2b..505b6df0 100644--- a/src/components/settings/AccelerationSelector.tsx+++ b/src/components/settings/AccelerationSelector.tsx@@ -5,7 +5,7 @@ import { Dropdown, type DropdownOption } from "../ui/Dropdown";import { useSettings } from "../../hooks/useSettings";import { commands } from "@/bindings";import type {- WhisperAcceleratorSetting,+ TranscribeAcceleratorSetting,OrtAcceleratorSetting,} from "@/bindings";@@ -23,14 +23,14 @@ interface AccelerationSelectorProps {}/**- * Whisper dropdown encodes accelerator + device in a single value:+ * transcribe.cpp dropdown encodes accelerator + device in a single value:* "auto" → accelerator=auto, gpu_device=-1* "cpu" → accelerator=cpu, gpu_device=-1* "gpu:0" → accelerator=gpu, gpu_device=0* "gpu:1" → accelerator=gpu, gpu_device=1*/-function encodeWhisperValue(- accelerator: WhisperAcceleratorSetting,+function encodeTranscribeValue(+ accelerator: TranscribeAcceleratorSetting,gpuDevice: number,): string {if (accelerator === "cpu") return "cpu";@@ -38,8 +38,8 @@ function encodeWhisperValue(return "auto";}-function decodeWhisperValue(value: string): {- accelerator: WhisperAcceleratorSetting;+function decodeTranscribeValue(value: string): {+ accelerator: TranscribeAcceleratorSetting;gpuDevice: number;} {if (value === "cpu") return { accelerator: "cpu", gpuDevice: -1 };@@ -57,12 +57,14 @@ export const AccelerationSelector: FC<AccelerationSelectorProps> = ({const { t } = useTranslation();const { getSetting, updateSetting, isUpdating } = useSettings();- const [whisperOptions, setWhisperOptions] = useState<DropdownOption[]>([]);+ const [transcribeOptions, setTranscribeOptions] = useState<DropdownOption[]>(+ [],+ );const [ortOptions, setOrtOptions] = useState<DropdownOption[]>([]);useEffect(() => {commands.getAvailableAccelerators().then((available) => {- // Build combined Whisper options: Auto, [GPU devices...], CPU+ // Build combined transcribe.cpp options: Auto, [GPU devices...], CPUconst opts: DropdownOption[] = [{value: "auto",@@ -82,7 +84,7 @@ export const AccelerationSelector: FC<AccelerationSelectorProps> = ({}opts.push({ value: "cpu", label: "CPU" });- setWhisperOptions(opts);+ setTranscribeOptions(opts);// ORT options (unchanged)const ortVals = available.ort.includes("auto")@@ -97,36 +99,36 @@ export const AccelerationSelector: FC<AccelerationSelectorProps> = ({});}, [t]);- const currentAccelerator = getSetting("whisper_accelerator") ?? "auto";- const currentGpuDevice = getSetting("whisper_gpu_device") ?? -1;- const currentWhisper = encodeWhisperValue(- currentAccelerator as WhisperAcceleratorSetting,+ const currentAccelerator = getSetting("transcribe_accelerator") ?? "auto";+ const currentGpuDevice = getSetting("transcribe_gpu_device") ?? -1;+ const currentTranscribe = encodeTranscribeValue(+ currentAccelerator as TranscribeAcceleratorSetting,currentGpuDevice as number,);const currentOrt = getSetting("ort_accelerator") ?? "auto";- const handleWhisperChange = async (value: string) => {- const { accelerator, gpuDevice } = decodeWhisperValue(value);- await updateSetting("whisper_accelerator", accelerator);- await updateSetting("whisper_gpu_device", gpuDevice);+ const handleTranscribeChange = async (value: string) => {+ const { accelerator, gpuDevice } = decodeTranscribeValue(value);+ await updateSetting("transcribe_accelerator", accelerator);+ await updateSetting("transcribe_gpu_device", gpuDevice);};return (<><SettingContainer- title={t("settings.advanced.acceleration.whisper.title")}- description={t("settings.advanced.acceleration.whisper.description")}+ title={t("settings.advanced.acceleration.transcribe.title")}+ description={t("settings.advanced.acceleration.transcribe.description")}descriptionMode={descriptionMode}grouped={grouped}layout="horizontal"><Dropdown- options={whisperOptions}- selectedValue={currentWhisper}- onSelect={handleWhisperChange}+ options={transcribeOptions}+ selectedValue={currentTranscribe}+ onSelect={handleTranscribeChange}disabled={- isUpdating("whisper_accelerator") ||- isUpdating("whisper_gpu_device")+ isUpdating("transcribe_accelerator") ||+ isUpdating("transcribe_gpu_device")}/></SettingContainer>diff --git a/src/components/settings/LanguageSelector.tsx b/src/components/settings/LanguageSelector.tsxindex 30cba207..d224d13a 100644--- a/src/components/settings/LanguageSelector.tsx+++ b/src/components/settings/LanguageSelector.tsx@@ -3,18 +3,43 @@ import { useTranslation } from "react-i18next";import { SettingContainer } from "../ui/SettingContainer";import { ResetButton } from "../ui/ResetButton";import { useSettings } from "../../hooks/useSettings";-import { LANGUAGES } from "../../lib/constants/languages";+import {+ getLanguageLabel,+ LANGUAGES,+ recognitionLanguage,+ supportsLanguageCode,+} from "../../lib/constants/languages";interface LanguageSelectorProps {descriptionMode?: "inline" | "tooltip";grouped?: boolean;supportedLanguages?: string[];+ // Whether the model can auto-detect language. Gates the "Auto" option:+ // must-pick models (no detection) omit it and force a concrete choice.+ supportsLanguageDetection?: boolean;}+// Mirrors `effective_language` in src-tauri/src/managers/model.rs. The Rust+// function is authoritative for what the engine receives; this resolves the+// same value for *display* so the picker shows what will actually be used.+const effectiveLanguage = (+ intent: string,+ supported: string[],+ supportsDetection: boolean,+): string => {+ if (supported.length === 0) return intent;+ if (intent !== "auto" && supportsLanguageCode(supported, intent))+ return intent;+ if (supportsDetection) return "auto";+ if (supported.includes("en")) return "en";+ return recognitionLanguage(supported[0]);+};+export const LanguageSelector: React.FC<LanguageSelectorProps> = ({descriptionMode = "tooltip",grouped = false,supportedLanguages,+ supportsLanguageDetection = true,}) => {const { t } = useTranslation();const { getSetting, updateSetting, resetSetting, isUpdating } = useSettings();@@ -23,7 +48,14 @@ export const LanguageSelector: React.FC<LanguageSelectorProps> = ({const dropdownRef = useRef<HTMLDivElement>(null);const searchInputRef = useRef<HTMLInputElement>(null);- const selectedLanguage = getSetting("selected_language") || "auto";+ // The persisted *intent* (auto | code). What's actually used/shown is the+ // effective value resolved against the current model's capabilities.+ const intent = getSetting("selected_language") || "auto";+ const selectedLanguage = effectiveLanguage(+ intent,+ supportedLanguages ?? [],+ supportsLanguageDetection,+ );useEffect(() => {const handleClickOutside = (event: MouseEvent) => {@@ -51,11 +83,12 @@ export const LanguageSelector: React.FC<LanguageSelectorProps> = ({const availableLanguages = useMemo(() => {if (!supportedLanguages || supportedLanguages.length === 0)return LANGUAGES;- return LANGUAGES.filter(- (lang) =>- lang.value === "auto" || supportedLanguages.includes(lang.value),+ return LANGUAGES.filter((lang) =>+ lang.value === "auto"+ ? supportsLanguageDetection+ : supportsLanguageCode(supportedLanguages, lang.value),);- }, [supportedLanguages]);+ }, [supportedLanguages, supportsLanguageDetection]);const filteredLanguages = useMemo(() =>@@ -66,8 +99,7 @@ export const LanguageSelector: React.FC<LanguageSelectorProps> = ({);const selectedLanguageName =- LANGUAGES.find((lang) => lang.value === selectedLanguage)?.label ||- t("settings.general.language.auto");+ getLanguageLabel(selectedLanguage) || t("settings.general.language.auto");const handleLanguageSelect = async (languageCode: string) => {await updateSetting("selected_language", languageCode);diff --git a/src/components/settings/ShowOverlay.tsx b/src/components/settings/ShowOverlay.tsxindex 526aeff8..d5f24488 100644--- a/src/components/settings/ShowOverlay.tsx+++ b/src/components/settings/ShowOverlay.tsx@@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next";import { Dropdown } from "../ui/Dropdown";import { SettingContainer } from "../ui/SettingContainer";import { useSettings } from "../../hooks/useSettings";-import type { OverlayPosition } from "@/bindings";+import type { OverlayPosition, OverlayStyle } from "@/bindings";interface ShowOverlayProps {descriptionMode?: "inline" | "tooltip";@@ -15,31 +15,75 @@ export const ShowOverlay: React.FC<ShowOverlayProps> = React.memo(const { t } = useTranslation();const { getSetting, updateSetting, isUpdating } = useSettings();- const overlayOptions = [- { value: "none", label: t("settings.advanced.overlay.options.none") },- { value: "bottom", label: t("settings.advanced.overlay.options.bottom") },- { value: "top", label: t("settings.advanced.overlay.options.top") },+ const styleOptions = [+ {+ value: "none",+ label: t("settings.advanced.overlay.style.options.none"),+ },+ {+ value: "minimal",+ label: t("settings.advanced.overlay.style.options.minimal"),+ },+ {+ value: "live",+ label: t("settings.advanced.overlay.style.options.live"),+ },];- const selectedPosition = (getSetting("overlay_position") ||- "bottom") as OverlayPosition;+ const positionOptions = [+ {+ value: "bottom",+ label: t("settings.advanced.overlay.position.options.bottom"),+ },+ {+ value: "top",+ label: t("settings.advanced.overlay.position.options.top"),+ },+ ];++ const selectedStyle = (getSetting("overlay_style") ||+ "live") as OverlayStyle;+ // Only "top" and "bottom" are selectable; anything else (empty, or a legacy+ // "none" from before the position was retired) falls back to "bottom".+ const selectedPosition: OverlayPosition =+ getSetting("overlay_position") === "top" ? "top" : "bottom";return (- <SettingContainer- title={t("settings.advanced.overlay.title")}- description={t("settings.advanced.overlay.description")}- descriptionMode={descriptionMode}- grouped={grouped}- >- <Dropdown- options={overlayOptions}- selectedValue={selectedPosition}- onSelect={(value) =>- updateSetting("overlay_position", value as OverlayPosition)- }- disabled={isUpdating("overlay_position")}- />- </SettingContainer>+ <>+ <SettingContainer+ title={t("settings.advanced.overlay.style.title")}+ description={t("settings.advanced.overlay.style.description")}+ descriptionMode={descriptionMode}+ grouped={grouped}+ >+ <Dropdown+ options={styleOptions}+ selectedValue={selectedStyle}+ onSelect={(value) =>+ updateSetting("overlay_style", value as OverlayStyle)+ }+ disabled={isUpdating("overlay_style")}+ />+ </SettingContainer>++ {selectedStyle !== "none" && (+ <SettingContainer+ title={t("settings.advanced.overlay.position.title")}+ description={t("settings.advanced.overlay.position.description")}+ descriptionMode={descriptionMode}+ grouped={grouped}+ >+ <Dropdown+ options={positionOptions}+ selectedValue={selectedPosition}+ onSelect={(value) =>+ updateSetting("overlay_position", value as OverlayPosition)+ }+ disabled={isUpdating("overlay_position")}+ />+ </SettingContainer>+ )}+ </>);},);diff --git a/src/components/settings/ShowWhatsNewOnUpdate.tsx b/src/components/settings/ShowWhatsNewOnUpdate.tsxnew file mode 100644index 00000000..39826242--- /dev/null+++ b/src/components/settings/ShowWhatsNewOnUpdate.tsx@@ -0,0 +1,32 @@+import React from "react";+import { useTranslation } from "react-i18next";+import { ToggleSwitch } from "../ui/ToggleSwitch";+import { useSettings } from "../../hooks/useSettings";++interface ShowWhatsNewOnUpdateProps {+ descriptionMode?: "inline" | "tooltip";+ grouped?: boolean;+}++export const ShowWhatsNewOnUpdate: React.FC<ShowWhatsNewOnUpdateProps> = ({+ descriptionMode = "tooltip",+ grouped = false,+}) => {+ const { t } = useTranslation();+ const { getSetting, updateSetting, isUpdating } = useSettings();+ const enabled = getSetting("show_whats_new_on_update") ?? true;++ return (+ <ToggleSwitch+ checked={enabled}+ onChange={(nextEnabled) =>+ updateSetting("show_whats_new_on_update", nextEnabled)+ }+ isUpdating={isUpdating("show_whats_new_on_update")}+ label={t("settings.about.whatsNewUpdates.label")}+ description={t("settings.about.whatsNewUpdates.description")}+ descriptionMode={descriptionMode}+ grouped={grouped}+ />+ );+};diff --git a/src/components/settings/VoiceActivityDetection.tsx b/src/components/settings/VoiceActivityDetection.tsxnew file mode 100644index 00000000..d71b1936--- /dev/null+++ b/src/components/settings/VoiceActivityDetection.tsx@@ -0,0 +1,30 @@+import React from "react";+import { useTranslation } from "react-i18next";+import { ToggleSwitch } from "../ui/ToggleSwitch";+import { useSettings } from "../../hooks/useSettings";++interface VoiceActivityDetectionProps {+ descriptionMode?: "tooltip" | "inline";+ grouped?: boolean;+}++export const VoiceActivityDetection: React.FC<VoiceActivityDetectionProps> = ({+ descriptionMode = "tooltip",+ grouped = false,+}) => {+ const { t } = useTranslation();+ const { getSetting, updateSetting, isUpdating } = useSettings();+ const enabled = getSetting("vad_enabled") ?? true;++ return (+ <ToggleSwitch+ checked={enabled}+ onChange={(enabled) => updateSetting("vad_enabled", enabled)}+ isUpdating={isUpdating("vad_enabled")}+ label={t("settings.advanced.voiceActivityDetection.title")}+ description={t("settings.advanced.voiceActivityDetection.description")}+ descriptionMode={descriptionMode}+ grouped={grouped}+ />+ );+};diff --git a/src/components/settings/about/AboutSettings.tsx b/src/components/settings/about/AboutSettings.tsxindex 79096177..8d31d33a 100644--- a/src/components/settings/about/AboutSettings.tsx+++ b/src/components/settings/about/AboutSettings.tsx@@ -7,6 +7,7 @@ import { SettingContainer } from "../../ui/SettingContainer";import { Button } from "../../ui/Button";import { AppDataDirectory } from "../AppDataDirectory";import { AppLanguageSelector } from "../AppLanguageSelector";+import { ShowWhatsNewOnUpdate } from "../ShowWhatsNewOnUpdate";import { LogDirectory } from "../debug";export const AboutSettings: React.FC = () => {@@ -48,6 +49,8 @@ export const AboutSettings: React.FC = () => {<span className="text-sm font-mono">v{version}</span></SettingContainer>+ <ShowWhatsNewOnUpdate descriptionMode="tooltip" grouped={true} />+<SettingContainertitle={t("settings.about.supportDevelopment.title")}description={t("settings.about.supportDevelopment.description")}@@ -78,13 +81,13 @@ export const AboutSettings: React.FC = () => {<SettingsGroup title={t("settings.about.acknowledgments.title")}><SettingContainer- title={t("settings.about.acknowledgments.whisper.title")}- description={t("settings.about.acknowledgments.whisper.description")}+ title={t("settings.about.acknowledgments.ggml.title")}+ description={t("settings.about.acknowledgments.ggml.description")}grouped={true}layout="stacked"><div className="text-sm text-mid-gray">- {t("settings.about.acknowledgments.whisper.details")}+ {t("settings.about.acknowledgments.ggml.details")}</div></SettingContainer></SettingsGroup>diff --git a/src/components/settings/advanced/AdvancedSettings.tsx b/src/components/settings/advanced/AdvancedSettings.tsxindex 733f97db..e5eb25f0 100644--- a/src/components/settings/advanced/AdvancedSettings.tsx+++ b/src/components/settings/advanced/AdvancedSettings.tsx@@ -18,6 +18,7 @@ import { RecordingRetentionPeriodSelector } from "../RecordingRetentionPeriod";import { ExperimentalToggle } from "../ExperimentalToggle";import { useSettings } from "../../../hooks/useSettings";import { KeyboardImplementationSelector } from "../debug/KeyboardImplementationSelector";+import { VoiceActivityDetection } from "../VoiceActivityDetection";import { AccelerationSelector } from "../AccelerationSelector";import { LazyStreamClose } from "../LazyStreamClose";@@ -45,6 +46,7 @@ export const AdvancedSettings: React.FC = () => {</SettingsGroup><SettingsGroup title={t("settings.advanced.groups.transcription")}>+ <VoiceActivityDetection descriptionMode="tooltip" grouped={true} /><CustomWords descriptionMode="tooltip" grouped /><AppendTrailingSpace descriptionMode="tooltip" grouped={true} /></SettingsGroup>diff --git a/src/components/settings/debug/DebugSettings.tsx b/src/components/settings/debug/DebugSettings.tsxindex 3710f9fa..ff68fb8b 100644--- a/src/components/settings/debug/DebugSettings.tsx+++ b/src/components/settings/debug/DebugSettings.tsx@@ -10,6 +10,7 @@ import { AlwaysOnMicrophone } from "../AlwaysOnMicrophone";import { SoundPicker } from "../SoundPicker";import { ClamshellMicrophoneSelector } from "../ClamshellMicrophoneSelector";import { UpdateChecksToggle } from "../UpdateChecksToggle";+import { WhatsNewPreview } from "./WhatsNewPreview";export const DebugSettings: React.FC = () => {const { t } = useTranslation();@@ -18,6 +19,7 @@ export const DebugSettings: React.FC = () => {<div className="max-w-3xl w-full mx-auto space-y-6"><SettingsGroup title={t("settings.debug.title")}><LogLevelSelector grouped={true} />+ <WhatsNewPreview descriptionMode="tooltip" grouped={true} /><UpdateChecksToggle descriptionMode="tooltip" grouped={true} /><SoundPickerlabel={t("settings.debug.soundTheme.label")}diff --git a/src/components/settings/debug/WhatsNewPreview.tsx b/src/components/settings/debug/WhatsNewPreview.tsxnew file mode 100644index 00000000..965137cf--- /dev/null+++ b/src/components/settings/debug/WhatsNewPreview.tsx@@ -0,0 +1,70 @@+import React, { useState } from "react";+import { useTranslation } from "react-i18next";+import { toast } from "sonner";+import { Button } from "../../ui/Button";+import { SettingContainer } from "../../ui/SettingContainer";+import { WhatsNewModal } from "../../whats-new/WhatsNewModal";+import { findLatestReleaseNote } from "../../whats-new/releaseNotes";+import type { ReleaseNote } from "../../whats-new/releaseNotes";++interface WhatsNewPreviewProps {+ descriptionMode?: "inline" | "tooltip";+ grouped?: boolean;+}++export const WhatsNewPreview: React.FC<WhatsNewPreviewProps> = ({+ descriptionMode = "tooltip",+ grouped = false,+}) => {+ const { t } = useTranslation();+ const [note, setNote] = useState<ReleaseNote | null>(null);+ const [isLoading, setIsLoading] = useState(false);++ const preview = () => {+ setIsLoading(true);++ try {+ const releaseNote = findLatestReleaseNote();++ if (!releaseNote) {+ toast.info(t("settings.debug.whatsNewPreview.noNotes"));+ return;+ }++ setNote(releaseNote);+ } catch (error) {+ console.error("Failed to preview release notes:", error);+ toast.error(t("settings.debug.whatsNewPreview.error"));+ } finally {+ setIsLoading(false);+ }+ };++ return (+ <>+ <SettingContainer+ title={t("settings.debug.whatsNewPreview.title")}+ description={t("settings.debug.whatsNewPreview.description")}+ descriptionMode={descriptionMode}+ grouped={grouped}+ >+ <Button+ variant="secondary"+ size="md"+ onClick={preview}+ disabled={isLoading}+ >+ {t("settings.debug.whatsNewPreview.button")}+ </Button>+ </SettingContainer>++ {note && (+ <WhatsNewModal+ note={note}+ open={true}+ onDismiss={() => setNote(null)}+ />+ )}+ </>+ );+};diff --git a/src/components/settings/debug/index.ts b/src/components/settings/debug/index.tsindex 325c09f4..3bd840c3 100644--- a/src/components/settings/debug/index.ts+++ b/src/components/settings/debug/index.ts@@ -1,3 +1,4 @@export { WordCorrectionThreshold } from "./WordCorrectionThreshold";export { LogDirectory } from "./LogDirectory";export { LogLevelSelector } from "./LogLevelSelector";+export { WhatsNewPreview } from "./WhatsNewPreview";diff --git a/src/components/settings/general/ModelSettingsCard.tsx b/src/components/settings/general/ModelSettingsCard.tsxindex 51ec8fc4..1e34aa50 100644--- a/src/components/settings/general/ModelSettingsCard.tsx+++ b/src/components/settings/general/ModelSettingsCard.tsx@@ -5,6 +5,10 @@ import { LanguageSelector } from "../LanguageSelector";import { TranslateToEnglish } from "../TranslateToEnglish";import { useModelStore } from "../../../stores/modelStore";import type { ModelInfo } from "@/bindings";+import {+ CHINESE_LANGUAGE_CODE,+ getUniqueCapabilityLanguages,+} from "@/lib/constants/languages";export const ModelSettingsCard: React.FC = () => {const { t } = useTranslation();@@ -14,8 +18,16 @@ export const ModelSettingsCard: React.FC = () => {const supportsLanguageSelection =currentModelInfo?.supports_language_selection ?? false;+ const capabilityLanguages = getUniqueCapabilityLanguages(+ currentModelInfo?.supported_languages ?? [],+ );+ const supportsChineseOnlyScriptSelection =+ capabilityLanguages.length === 1 &&+ capabilityLanguages[0] === CHINESE_LANGUAGE_CODE;+ const showLanguageSelector =+ supportsLanguageSelection || supportsChineseOnlyScriptSelection;const supportsTranslation = currentModelInfo?.supports_translation ?? false;- const hasAnySettings = supportsLanguageSelection || supportsTranslation;+ const hasAnySettings = showLanguageSelector || supportsTranslation;// Don't render anything if no model is selected or no settings availableif (!currentModel || !currentModelInfo || !hasAnySettings) {@@ -28,11 +40,14 @@ export const ModelSettingsCard: React.FC = () => {model: currentModelInfo.name,})}>- {supportsLanguageSelection && (+ {showLanguageSelector && (<LanguageSelectordescriptionMode="tooltip"grouped={true}supportedLanguages={currentModelInfo.supported_languages}+ supportsLanguageDetection={+ currentModelInfo.supports_language_detection+ }/>)}{supportsTranslation && (diff --git a/src/components/settings/index.ts b/src/components/settings/index.tsindex 3a6ac67c..c50132ae 100644--- a/src/components/settings/index.ts+++ b/src/components/settings/index.ts@@ -30,3 +30,4 @@ export { HistoryLimit } from "./HistoryLimit";export { RecordingRetentionPeriodSelector } from "./RecordingRetentionPeriod";export { AutostartToggle } from "./AutostartToggle";export { UpdateChecksToggle } from "./UpdateChecksToggle";+export { ShowWhatsNewOnUpdate } from "./ShowWhatsNewOnUpdate";diff --git a/src/components/settings/models/ModelsSettings.tsx b/src/components/settings/models/ModelsSettings.tsxindex 3833338d..41d7a0e8 100644--- a/src/components/settings/models/ModelsSettings.tsx+++ b/src/components/settings/models/ModelsSettings.tsx@@ -1,21 +1,32 @@import React, { useEffect, useMemo, useRef, useState } from "react";import { useTranslation } from "react-i18next";import { ask } from "@tauri-apps/plugin-dialog";-import { ChevronDown, Globe } from "lucide-react";+import { ChevronDown, Globe, RefreshCw, Search } from "lucide-react";import type { ModelCardStatus } from "@/components/onboarding";import { ModelCard } from "@/components/onboarding";import { useModelStore } from "@/stores/modelStore";-import { LANGUAGES } from "@/lib/constants/languages.ts";+import {+ getLanguageLabel,+ MODEL_CAPABILITY_LANGUAGES,+ supportsLanguageCode,+} from "@/lib/constants/languages.ts";import type { ModelInfo } from "@/bindings";// check if model supports a language based on its supported_languages listconst modelSupportsLanguage = (model: ModelInfo, langCode: string): boolean => {- return model.supported_languages.includes(langCode);+ return supportsLanguageCode(model.supported_languages, langCode);};+// Legacy models are the blob (Url-sourced) .bin/ONNX 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 =>+ typeof model.source === "object" && "Url" in model.source;+export const ModelsSettings: React.FC = () => {const { t } = useTranslation();const [switchingModelId, setSwitchingModelId] = useState<string | null>(null);+ const [searchQuery, setSearchQuery] = useState("");const [languageFilter, setLanguageFilter] = useState("all");const [languageDropdownOpen, setLanguageDropdownOpen] = useState(false);const [languageSearch, setLanguageSearch] = useState("");@@ -30,10 +41,12 @@ export const ModelsSettings: React.FC = () => {verifyingModels,extractingModels,loading,+ isRescanning,downloadModel,cancelDownload,selectModel,deleteModel,+ rescanLocalModels,} = useModelStore();// click outside handler for language dropdown@@ -60,10 +73,8 @@ export const ModelsSettings: React.FC = () => {// filtered languages for dropdown (exclude "auto")const filteredLanguages = useMemo(() => {- return LANGUAGES.filter(- (lang) =>- lang.value !== "auto" &&- lang.label.toLowerCase().includes(languageSearch.toLowerCase()),+ return MODEL_CAPABILITY_LANGUAGES.filter((lang) =>+ lang.label.toLowerCase().includes(languageSearch.toLowerCase()),);}, [languageSearch]);@@ -72,7 +83,7 @@ export const ModelsSettings: React.FC = () => {if (languageFilter === "all") {return t("settings.models.filters.allLanguages");}- return LANGUAGES.find((lang) => lang.value === languageFilter)?.label || "";+ return getLanguageLabel(languageFilter) || "";}, [languageFilter, t]);const getModelStatus = (modelId: string): ModelCardStatus => {@@ -153,15 +164,22 @@ export const ModelsSettings: React.FC = () => {}};- // Filter models based on language filter+ // Filter models by search query (name + description) and language filterconst filteredModels = useMemo(() => {+ const q = searchQuery.trim().toLowerCase();return models.filter((model: ModelInfo) => {+ // Hide deprecated legacy (.bin/ONNX) downloads unless already on disk.+ if (isLegacyModel(model) && !model.is_downloaded) return false;if (languageFilter !== "all") {if (!modelSupportsLanguage(model, languageFilter)) return false;}+ if (q) {+ const haystack = `${model.name} ${model.description}`.toLowerCase();+ if (!haystack.includes(q)) return false;+ }return true;});- }, [models, languageFilter]);+ }, [models, languageFilter, searchQuery]);// Split filtered models into downloaded (including custom) and available sectionsconst { downloadedModels, availableModels } = useMemo(() => {@@ -215,6 +233,19 @@ export const ModelsSettings: React.FC = () => {{t("settings.models.description")}</p></div>++ {/* Search bar — filter the catalog by name or description */}+ <div className="relative">+ <Search className="absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-text/40 pointer-events-none" />+ <input+ type="text"+ value={searchQuery}+ onChange={(e) => setSearchQuery(e.target.value)}+ placeholder={t("settings.models.searchPlaceholder")}+ className="w-full pl-9 pr-3 py-2 text-sm bg-mid-gray/10 border border-mid-gray/40 rounded-lg focus:outline-none focus:ring-1 focus:ring-logo-primary placeholder:text-text/40"+ />+ </div>+{filteredModels.length > 0 ? (<div className="space-y-6">{/* Downloaded Models Section — header always visible so filter stays accessible */}@@ -223,97 +254,114 @@ export const ModelsSettings: React.FC = () => {<h2 className="text-sm font-medium text-text/60">{t("settings.models.yourModels")}</h2>- {/* Language filter dropdown */}- <div className="relative" ref={languageDropdownRef}>+ <div className="flex items-center gap-2">+ {/* Rescan local sources for models added outside Handy */}<buttontype="button"- onClick={() => setLanguageDropdownOpen(!languageDropdownOpen)}- className={`flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium rounded-lg transition-colors ${- languageFilter !== "all"- ? "bg-logo-primary/20 text-logo-primary"- : "bg-mid-gray/10 text-text/60 hover:bg-mid-gray/20"- }`}+ onClick={() => rescanLocalModels()}+ disabled={isRescanning}+ title={t("settings.models.rescan.tooltip")}+ className="flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium rounded-lg bg-mid-gray/10 text-text/60 hover:bg-mid-gray/20 transition-colors disabled:opacity-50 disabled:cursor-not-allowed">- <Globe className="w-3.5 h-3.5" />- <span className="max-w-[120px] truncate">- {selectedLanguageLabel}- </span>- <ChevronDown- className={`w-3.5 h-3.5 transition-transform ${- languageDropdownOpen ? "rotate-180" : ""- }`}+ <RefreshCw+ className={`w-3.5 h-3.5 ${isRescanning ? "animate-spin" : ""}`}/>+ <span>{t("settings.models.rescan.label")}</span></button>+ {/* Language filter dropdown */}+ <div className="relative" ref={languageDropdownRef}>+ <button+ type="button"+ onClick={() =>+ setLanguageDropdownOpen(!languageDropdownOpen)+ }+ className={`flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium rounded-lg transition-colors ${+ languageFilter !== "all"+ ? "bg-logo-primary/20 text-logo-primary"+ : "bg-mid-gray/10 text-text/60 hover:bg-mid-gray/20"+ }`}+ >+ <Globe className="w-3.5 h-3.5" />+ <span className="max-w-[120px] truncate">+ {selectedLanguageLabel}+ </span>+ <ChevronDown+ className={`w-3.5 h-3.5 transition-transform ${+ languageDropdownOpen ? "rotate-180" : ""+ }`}+ />+ </button>- {languageDropdownOpen && (- <div className="absolute top-full right-0 mt-1 w-56 bg-background border border-mid-gray/80 rounded-lg shadow-lg z-50 overflow-hidden">- <div className="p-2 border-b border-mid-gray/40">- <input- ref={languageSearchInputRef}- type="text"- value={languageSearch}- onChange={(e) => setLanguageSearch(e.target.value)}- onKeyDown={(e) => {- if (- e.key === "Enter" &&- filteredLanguages.length > 0- ) {- setLanguageFilter(filteredLanguages[0].value);- setLanguageDropdownOpen(false);- setLanguageSearch("");- } else if (e.key === "Escape") {- setLanguageDropdownOpen(false);- setLanguageSearch("");- }- }}- placeholder={t(- "settings.general.language.searchPlaceholder",- )}- className="w-full px-2 py-1 text-sm bg-mid-gray/10 border border-mid-gray/40 rounded-md focus:outline-none focus:ring-1 focus:ring-logo-primary"- />- </div>- <div className="max-h-48 overflow-y-auto">- <button- type="button"- onClick={() => {- setLanguageFilter("all");- setLanguageDropdownOpen(false);- setLanguageSearch("");- }}- className={`w-full px-3 py-1.5 text-sm text-left transition-colors ${- languageFilter === "all"- ? "bg-logo-primary/20 text-logo-primary font-semibold"- : "hover:bg-mid-gray/10"- }`}- >- {t("settings.models.filters.allLanguages")}- </button>- {filteredLanguages.map((lang) => (+ {languageDropdownOpen && (+ <div className="absolute top-full right-0 mt-1 w-56 bg-background border border-mid-gray/80 rounded-lg shadow-lg z-50 overflow-hidden">+ <div className="p-2 border-b border-mid-gray/40">+ <input+ ref={languageSearchInputRef}+ type="text"+ value={languageSearch}+ onChange={(e) => setLanguageSearch(e.target.value)}+ onKeyDown={(e) => {+ if (+ e.key === "Enter" &&+ filteredLanguages.length > 0+ ) {+ setLanguageFilter(filteredLanguages[0].value);+ setLanguageDropdownOpen(false);+ setLanguageSearch("");+ } else if (e.key === "Escape") {+ setLanguageDropdownOpen(false);+ setLanguageSearch("");+ }+ }}+ placeholder={t(+ "settings.general.language.searchPlaceholder",+ )}+ className="w-full px-2 py-1 text-sm bg-mid-gray/10 border border-mid-gray/40 rounded-md focus:outline-none focus:ring-1 focus:ring-logo-primary"+ />+ </div>+ <div className="max-h-48 overflow-y-auto"><button- key={lang.value}type="button"onClick={() => {- setLanguageFilter(lang.value);+ setLanguageFilter("all");setLanguageDropdownOpen(false);setLanguageSearch("");}}className={`w-full px-3 py-1.5 text-sm text-left transition-colors ${- languageFilter === lang.value+ languageFilter === "all"? "bg-logo-primary/20 text-logo-primary font-semibold": "hover:bg-mid-gray/10"}`}>- {lang.label}+ {t("settings.models.filters.allLanguages")}</button>- ))}- {filteredLanguages.length === 0 && (- <div className="px-3 py-2 text-sm text-text/50 text-center">- {t("settings.general.language.noResults")}- </div>- )}+ {filteredLanguages.map((lang) => (+ <button+ key={lang.value}+ type="button"+ onClick={() => {+ setLanguageFilter(lang.value);+ setLanguageDropdownOpen(false);+ setLanguageSearch("");+ }}+ className={`w-full px-3 py-1.5 text-sm text-left transition-colors ${+ languageFilter === lang.value+ ? "bg-logo-primary/20 text-logo-primary font-semibold"+ : "hover:bg-mid-gray/10"+ }`}+ >+ {lang.label}+ </button>+ ))}+ {filteredLanguages.length === 0 && (+ <div className="px-3 py-2 text-sm text-text/50 text-center">+ {t("settings.general.language.noResults")}+ </div>+ )}+ </div></div>- </div>- )}+ )}+ </div></div></div>{downloadedModels.map((model: ModelInfo) => (@@ -349,7 +397,7 @@ export const ModelsSettings: React.FC = () => {onCancel={handleModelCancel}downloadProgress={getDownloadProgress(model.id)}downloadSpeed={getDownloadSpeed(model.id)}- showRecommended={false}+ showRecommended={true}/>))}</div>diff --git a/src/components/ui/Dialog.tsx b/src/components/ui/Dialog.tsxnew file mode 100644index 00000000..8605a64b--- /dev/null+++ b/src/components/ui/Dialog.tsx@@ -0,0 +1,210 @@+import React, { useEffect, useId, useRef } from "react";+import { createPortal } from "react-dom";+import { X } from "lucide-react";++const FOCUSABLE_SELECTOR = [+ "a[href]",+ "button:not([disabled])",+ "textarea:not([disabled])",+ "input:not([disabled])",+ "select:not([disabled])",+ "[tabindex]:not([tabindex='-1'])",+].join(",");++interface DialogProps {+ open: boolean;+ title: React.ReactNode;+ children: React.ReactNode;+ onOpenChange: (open: boolean) => void;+ description?: React.ReactNode;+ footer?: React.ReactNode;+ closeLabel: string;+ dismissible?: boolean;+ closeOnBackdrop?: boolean;+ showCloseButton?: boolean;+ initialFocusRef?: React.RefObject<HTMLElement>;+ className?: string;+ contentClassName?: string;+ contentFades?: boolean;+}++const isVisible = (element: HTMLElement) => {+ const style = window.getComputedStyle(element);+ return style.visibility !== "hidden" && style.display !== "none";+};++const getFocusableElements = (container: HTMLElement) =>+ Array.from(+ container.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR),+ ).filter(+ (element) =>+ !element.hasAttribute("disabled") &&+ element.getAttribute("aria-hidden") !== "true" &&+ isVisible(element),+ );++export const Dialog: React.FC<DialogProps> = ({+ open,+ title,+ children,+ onOpenChange,+ description,+ footer,+ closeLabel,+ dismissible = true,+ closeOnBackdrop = true,+ showCloseButton = true,+ initialFocusRef,+ className = "",+ contentClassName = "",+ contentFades = true,+}) => {+ const titleId = useId();+ const descriptionId = useId();+ const contentRef = useRef<HTMLDivElement>(null);+ const previousFocusRef = useRef<HTMLElement | null>(null);++ useEffect(() => {+ if (!open) return;++ previousFocusRef.current =+ document.activeElement instanceof HTMLElement+ ? document.activeElement+ : null;++ const previousOverflow = document.body.style.overflow;+ document.body.style.overflow = "hidden";++ const focusDialog = () => {+ const fallback = contentRef.current;+ const target = initialFocusRef?.current ?? fallback;+ target?.focus();+ };++ const animationFrame = requestAnimationFrame(focusDialog);++ return () => {+ cancelAnimationFrame(animationFrame);+ document.body.style.overflow = previousOverflow;+ previousFocusRef.current?.focus();+ previousFocusRef.current = null;+ };+ }, [initialFocusRef, open]);++ useEffect(() => {+ if (!open) return;++ const handleKeyDown = (event: KeyboardEvent) => {+ if (event.key === "Escape" && dismissible) {+ event.preventDefault();+ onOpenChange(false);+ return;+ }++ if (event.key !== "Tab" || !contentRef.current) return;++ const focusableElements = getFocusableElements(contentRef.current);+ if (focusableElements.length === 0) {+ event.preventDefault();+ contentRef.current.focus();+ return;+ }++ const firstElement = focusableElements[0];+ const lastElement = focusableElements[focusableElements.length - 1];+ const activeElement = document.activeElement;++ if (activeElement === contentRef.current) {+ event.preventDefault();+ if (event.shiftKey) {+ lastElement.focus();+ } else {+ firstElement.focus();+ }+ } else if (event.shiftKey && activeElement === firstElement) {+ event.preventDefault();+ lastElement.focus();+ } else if (!event.shiftKey && activeElement === lastElement) {+ event.preventDefault();+ firstElement.focus();+ }+ };++ document.addEventListener("keydown", handleKeyDown);+ return () => {+ document.removeEventListener("keydown", handleKeyDown);+ };+ }, [dismissible, onOpenChange, open]);++ if (!open) return null;++ const handleBackdropMouseDown = (event: React.MouseEvent<HTMLDivElement>) => {+ if (+ dismissible &&+ closeOnBackdrop &&+ event.target === event.currentTarget+ ) {+ onOpenChange(false);+ }+ };+ const contentStyle: React.CSSProperties | undefined = contentFades+ ? {+ maskImage:+ "linear-gradient(to bottom, transparent 0, black 10px, black calc(100% - 20px), transparent 100%)",+ WebkitMaskImage:+ "linear-gradient(to bottom, transparent 0, black 10px, black calc(100% - 20px), transparent 100%)",+ }+ : undefined;++ return createPortal(+ <div+ className="fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4 sm:p-6"+ onMouseDown={handleBackdropMouseDown}+ >+ <div+ ref={contentRef}+ role="dialog"+ aria-modal="true"+ aria-labelledby={titleId}+ aria-describedby={description ? descriptionId : undefined}+ tabIndex={-1}+ className={`flex max-h-[calc(100dvh-2rem)] w-full max-w-lg flex-col overflow-hidden rounded-lg border border-mid-gray/20 bg-background shadow-xl outline-none sm:max-h-[calc(100dvh-3rem)] ${className}`}+ >+ <div className="flex shrink-0 items-start justify-between gap-3 border-b border-mid-gray/20 px-4 py-2.5">+ <div className="min-w-0">+ <h2 id={titleId} className="text-base font-semibold text-text">+ {title}+ </h2>+ {description && (+ <p id={descriptionId} className="mt-1 text-sm text-mid-gray">+ {description}+ </p>+ )}+ </div>+ {dismissible && showCloseButton && (+ <button+ type="button"+ onClick={() => onOpenChange(false)}+ aria-label={closeLabel}+ className="shrink-0 cursor-pointer rounded-md border border-transparent p-1 text-mid-gray transition-colors hover:border-mid-gray/20 hover:bg-mid-gray/10 hover:text-text focus:outline-none focus-visible:ring-1 focus-visible:ring-logo-primary"+ >+ <X className="h-4 w-4" aria-hidden="true" />+ </button>+ )}+ </div>+ <div+ className={`min-h-0 overflow-y-auto px-4 pb-4 pt-3 ${contentClassName}`}+ style={contentStyle}+ >+ {children}+ </div>+ {footer && (+ <div className="flex shrink-0 justify-end gap-2 border-t border-mid-gray/20 px-4 py-3">+ {footer}+ </div>+ )}+ </div>+ </div>,+ document.body,+ );+};diff --git a/src/components/ui/SettingContainer.tsx b/src/components/ui/SettingContainer.tsxindex 1777f405..78393b3f 100644--- a/src/components/ui/SettingContainer.tsx+++ b/src/components/ui/SettingContainer.tsx@@ -121,8 +121,8 @@ export const SettingContainer: React.FC<SettingContainerProps> = ({// Horizontal layout (default)const horizontalContainerClasses = grouped- ? "flex items-center justify-between px-4 p-2"- : "flex items-center justify-between px-4 p-2 rounded-lg border border-mid-gray/20";+ ? "flex items-center justify-between min-h-12 px-4 p-2"+ : "flex items-center justify-between min-h-12 px-4 p-2 rounded-lg border border-mid-gray/20";if (descriptionMode === "tooltip") {return (diff --git a/src/components/ui/ToggleSwitch.tsx b/src/components/ui/ToggleSwitch.tsxindex 4be04610..41b3e965 100644--- a/src/components/ui/ToggleSwitch.tsx+++ b/src/components/ui/ToggleSwitch.tsx@@ -34,7 +34,7 @@ export const ToggleSwitch: React.FC<ToggleSwitchProps> = ({tooltipPosition={tooltipPosition}><label- className={`inline-flex items-center ${disabled || isUpdating ? "cursor-not-allowed" : "cursor-pointer"}`}+ className={`flex items-center ${disabled || isUpdating ? "cursor-not-allowed" : "cursor-pointer"}`}><inputtype="checkbox"diff --git a/src/components/ui/index.ts b/src/components/ui/index.tsindex 11a10f17..f855d11e 100644--- a/src/components/ui/index.ts+++ b/src/components/ui/index.ts@@ -1,4 +1,5 @@export { Dropdown } from "./Dropdown";+export { Dialog } from "./Dialog";export { Slider } from "./Slider";export { ToggleSwitch } from "./ToggleSwitch";export { SettingContainer } from "./SettingContainer";diff --git a/src/components/whats-new/MarkdownContent.tsx b/src/components/whats-new/MarkdownContent.tsxnew file mode 100644index 00000000..bb1f055e--- /dev/null+++ b/src/components/whats-new/MarkdownContent.tsx@@ -0,0 +1,221 @@+import React from "react";+import ReactMarkdown, { type Components } from "react-markdown";+import remarkGfm from "remark-gfm";+import { openUrl } from "@tauri-apps/plugin-opener";++interface MarkdownContentProps {+ markdown: string;+}++const allowedElements = [+ "a",+ "blockquote",+ "br",+ "code",+ "del",+ "em",+ "h1",+ "h2",+ "h3",+ "hr",+ "img",+ "input",+ "li",+ "ol",+ "p",+ "pre",+ "strong",+ "table",+ "tbody",+ "td",+ "th",+ "thead",+ "tr",+ "ul",+];++const isSafeUrl = (url: string) => {+ try {+ const parsed = new URL(url);+ return ["http:", "https:", "mailto:"].includes(parsed.protocol);+ } catch {+ return false;+ }+};++const openSafeUrl = async (url: string) => {+ if (!isSafeUrl(url)) return;++ try {+ await openUrl(url);+ } catch (error) {+ console.error("Failed to open release note link:", error);+ }+};++const isSafeImageSrc = (src: string) => {+ if (!src.startsWith("/release-notes/")) return false;+ if (src.includes("\\") || src.includes("..")) return false;++ return true;+};++const components: Components = {+ h1: ({ children }) => (+ <h3 className="text-base font-semibold leading-snug text-text">+ {children}+ </h3>+ ),+ h2: ({ children }) => (+ <h3 className="text-[15px] font-semibold leading-snug text-text">+ {children}+ </h3>+ ),+ h3: ({ children }) => (+ <h3 className="text-sm font-semibold leading-snug text-text">{children}</h3>+ ),+ p: ({ children }) => (+ <p className="text-sm leading-relaxed text-text/80">{children}</p>+ ),+ ul: ({ children, className }) => {+ const isTaskList = className?.includes("contains-task-list");++ return (+ <ul+ className={`space-y-1 text-sm leading-relaxed text-text/80 ${+ isTaskList ? "ps-0" : "list-disc ps-5"+ }`}+ >+ {children}+ </ul>+ );+ },+ li: ({ children, className }) => {+ const isTaskListItem = className?.includes("task-list-item");++ return (+ <li+ className={`${isTaskListItem ? "list-none" : "pl-1"} marker:text-text/50`}+ >+ {children}+ </li>+ );+ },+ input: ({ checked, type }) => {+ if (type !== "checkbox") return null;++ return (+ <input+ type="checkbox"+ checked={Boolean(checked)}+ disabled+ readOnly+ className="me-2 h-3.5 w-3.5 align-middle accent-logo-primary"+ />+ );+ },+ ol: ({ children }) => (+ <ol className="list-decimal space-y-1 ps-5 text-sm leading-relaxed text-text/80">+ {children}+ </ol>+ ),+ del: ({ children }) => (+ <del className="text-text/60 line-through">{children}</del>+ ),+ br: () => <br />,+ hr: () => <hr className="border-mid-gray/20" />,+ img: ({ alt, src }) => {+ if (!src || !isSafeImageSrc(src)) return null;++ return (+ <img+ src={src}+ alt={alt ?? ""}+ loading="lazy"+ decoding="async"+ className="mx-auto block max-h-72 max-w-full object-contain"+ />+ );+ },+ table: ({ children }) => (+ <div className="overflow-x-auto">+ <table className="w-full border-collapse text-left text-sm leading-relaxed text-text/80">+ {children}+ </table>+ </div>+ ),+ thead: ({ children }) => (+ <thead className="border-b border-mid-gray/30 text-text">{children}</thead>+ ),+ tbody: ({ children }) => (+ <tbody className="divide-y divide-mid-gray/20">{children}</tbody>+ ),+ tr: ({ children }) => <tr>{children}</tr>,+ th: ({ children }) => (+ <th className="px-2 py-1.5 font-semibold">{children}</th>+ ),+ td: ({ children }) => <td className="px-2 py-1.5 align-top">{children}</td>,+ blockquote: ({ children }) => (+ <blockquote className="border-s-2 border-logo-primary/50 ps-3 text-sm leading-relaxed text-text/70">+ {children}+ </blockquote>+ ),+ code: ({ children, className }) => {+ const isBlock = className?.startsWith("language-");++ if (isBlock) {+ return (+ <code className="block whitespace-pre font-mono text-xs">+ {children}+ </code>+ );+ }++ return (+ <code className="rounded bg-mid-gray/10 px-1 py-0.5 font-mono text-[0.85em]">+ {children}+ </code>+ );+ },+ pre: ({ children }) => (+ <pre className="overflow-x-auto rounded-md bg-mid-gray/10 p-3 text-xs leading-relaxed text-text/80">+ {children}+ </pre>+ ),+ a: ({ children, href }) => {+ if (!href || !isSafeUrl(href)) {+ return <>{children}</>;+ }++ return (+ <a+ href={href}+ rel="noreferrer"+ onClick={(event) => {+ event.preventDefault();+ void openSafeUrl(href);+ }}+ className="text-logo-primary underline decoration-logo-primary/40 underline-offset-2 hover:decoration-logo-primary"+ >+ {children}+ </a>+ );+ },+};++export const MarkdownContent: React.FC<MarkdownContentProps> = ({+ markdown,+}) => {+ return (+ <div className="space-y-3">+ <ReactMarkdown+ allowedElements={allowedElements}+ components={components}+ remarkPlugins={[remarkGfm]}+ skipHtml+ >+ {markdown}+ </ReactMarkdown>+ </div>+ );+};diff --git a/src/components/whats-new/WhatsNewGate.tsx b/src/components/whats-new/WhatsNewGate.tsxnew file mode 100644index 00000000..5b4eb346--- /dev/null+++ b/src/components/whats-new/WhatsNewGate.tsx@@ -0,0 +1,72 @@+import React, { useEffect, useRef, useState } from "react";+import { getVersion } from "@tauri-apps/api/app";+import { useSettings } from "../../hooks/useSettings";+import { findReleaseNoteToShow } from "./releaseNotes";+import type { ReleaseNote } from "./releaseNotes";+import { WhatsNewModal } from "./WhatsNewModal";++export const WhatsNewGate: React.FC = () => {+ const { settings, isLoading, updateSetting } = useSettings();+ const [note, setNote] = useState<ReleaseNote | null>(null);+ const [isOpen, setIsOpen] = useState(false);+ const dismissedVersionRef = useRef<string | null>(null);++ useEffect(() => {+ if (isLoading || !settings || !settings.show_whats_new_on_update) {+ setIsOpen(false);+ setNote(null);+ return;+ }++ let cancelled = false;++ const loadReleaseNote = async () => {+ try {+ const currentVersion = await getVersion();+ if (cancelled) return;++ const releaseNote = findReleaseNoteToShow({+ currentVersion,+ lastSeenVersion: settings.whats_new_last_seen_version ?? "",+ });++ if (+ !releaseNote ||+ dismissedVersionRef.current === releaseNote.version+ ) {+ setIsOpen(false);+ setNote(null);+ return;+ }++ setNote(releaseNote);+ setIsOpen(true);+ } catch (error) {+ console.error("Failed to load release notes:", error);+ }+ };++ void loadReleaseNote();++ return () => {+ cancelled = true;+ };+ }, [+ isLoading,+ settings,+ settings?.show_whats_new_on_update,+ settings?.whats_new_last_seen_version,+ ]);++ const dismiss = () => {+ if (!note) return;++ dismissedVersionRef.current = note.version;+ setIsOpen(false);+ void updateSetting("whats_new_last_seen_version", note.version);+ };++ if (!note) return null;++ return <WhatsNewModal note={note} open={isOpen} onDismiss={dismiss} />;+};diff --git a/src/components/whats-new/WhatsNewModal.tsx b/src/components/whats-new/WhatsNewModal.tsxnew file mode 100644index 00000000..9533f82e--- /dev/null+++ b/src/components/whats-new/WhatsNewModal.tsx@@ -0,0 +1,32 @@+import React from "react";+import { useTranslation } from "react-i18next";+import { Dialog } from "../ui";+import { MarkdownContent } from "./MarkdownContent";+import type { ReleaseNote } from "./releaseNotes";++interface WhatsNewModalProps {+ note: ReleaseNote;+ open: boolean;+ onDismiss: () => void;+}++export const WhatsNewModal: React.FC<WhatsNewModalProps> = ({+ note,+ open,+ onDismiss,+}) => {+ const { t } = useTranslation();++ return (+ <Dialog+ open={open}+ title={t("whatsNew.title", { version: note.version })}+ closeLabel={t("common.close")}+ onOpenChange={(nextOpen) => {+ if (!nextOpen) onDismiss();+ }}+ >+ <MarkdownContent markdown={note.markdown} />+ </Dialog>+ );+};diff --git a/src/components/whats-new/index.ts b/src/components/whats-new/index.tsnew file mode 100644index 00000000..66d253fd--- /dev/null+++ b/src/components/whats-new/index.ts@@ -0,0 +1 @@+export { WhatsNewGate } from "./WhatsNewGate";diff --git a/src/components/whats-new/releaseNotes.ts b/src/components/whats-new/releaseNotes.tsnew file mode 100644index 00000000..10460844--- /dev/null+++ b/src/components/whats-new/releaseNotes.ts@@ -0,0 +1,93 @@+export interface ReleaseNote {+ version: string;+ markdown: string;+}++interface ReleaseNoteRecord {+ version: string;+ markdown: string;+}++interface FindReleaseNoteOptions {+ currentVersion: string;+ lastSeenVersion: string;+}++const releaseNoteModules = import.meta.glob<string>(+ "../../content/release-notes/*.md",+ {+ eager: true,+ import: "default",+ query: "?raw",+ },+);++const releaseNotesByVersion = new Map<string, ReleaseNoteRecord>();++const parseVersion = (version: string): [number, number, number] | null => {+ const normalized = version.trim().replace(/^v/i, "");+ const match = normalized.match(/^(\d+)\.(\d+)\.(\d+)/);+ if (!match) return null;++ return [Number(match[1]), Number(match[2]), Number(match[3])];+};++for (const [path, markdown] of Object.entries(releaseNoteModules)) {+ const match = path.match(/release-notes\/([^/]+)\.md$/);+ if (!match) continue;++ const version = match[1];++ if (!parseVersion(version)) continue;++ releaseNotesByVersion.set(version, {+ version,+ markdown,+ });+}++const compareVersions = (a: string, b: string) => {+ const parsedA = parseVersion(a);+ const parsedB = parseVersion(b);++ if (!parsedA || !parsedB) return 0;++ for (let index = 0; index < parsedA.length; index += 1) {+ if (parsedA[index] !== parsedB[index]) {+ return parsedA[index] - parsedB[index];+ }+ }++ return 0;+};++export const findReleaseNoteToShow = ({+ currentVersion,+ lastSeenVersion,+}: FindReleaseNoteOptions): ReleaseNote | null => {+ if (!parseVersion(currentVersion)) return null;++ const hasValidLastSeenVersion = parseVersion(lastSeenVersion) !== null;+ const candidate = Array.from(releaseNotesByVersion.values())+ .filter((note) => compareVersions(note.version, currentVersion) <= 0)+ .filter(+ (note) =>+ !hasValidLastSeenVersion ||+ compareVersions(note.version, lastSeenVersion) > 0,+ )+ .sort((a, b) => compareVersions(b.version, a.version))[0];++ if (!candidate) return null;++ return candidate;+};++export const findLatestReleaseNote = (): ReleaseNote | null => {+ const candidate = Array.from(releaseNotesByVersion.values()).sort((a, b) =>+ compareVersions(b.version, a.version),+ )[0];++ if (!candidate) return null;++ return candidate;+};diff --git a/src/content/release-notes/0.9.0.md b/src/content/release-notes/0.9.0.mdnew file mode 100644index 00000000..6cca05fa--- /dev/null+++ b/src/content/release-notes/0.9.0.md@@ -0,0 +1,48 @@+## transcribe.cpp++[transcribe.cpp](https://github.com/handy-computer/transcribe.cpp)+is now the primary transcription engine across the app.++transcribe.cpp enables new features in Handy, and also should speed+up transcriptions for most users. The most notable new feature is+the support for streaming models. You will be able to see the+transcribed text as you are speaking. When using streaming models,+typically the transcriptions will also complete much quicker.++## Streaming Support++Handy now supports native streaming models. We encourage you to try+them out. Especially:++- Parakeet Unified for English Speakers+- Nemotron Streaming 3.5 for Multilingual Speakers++A new streaming overlay lets you see what is being written or transcribed as you are speaking.++++The new default is to use this overlay when using a compatible streaming model.+If you do not like it you can change to the minimal style in the Advanced Settings.++## New Model Support++There are a ton of new models that Handy supports as a result of the upgrade to transcribe.cpp.+If you're interested in trying a variety of speech-to-text models, go take a look at the Models page.++Some of the families are:++- IBM's Granite Family+- Mistral's Voxtral Family+- Google's MedASR+- Alibaba's Qwen3 ASR++## Notes++This is a big upgrade and theoretically everything will work out of the box.+However there likely will be issues, so please don't hesitate+to report issues on the [GitHub Issues Tracker](https://github.com/cjpais/Handy/issues).++In the future we plan to deprecate the "Legacy" models. We will provide+an upgrade path for any people who are still using those models before+we remove support for them. All this means is that you will need to+re-download the model into a format which is supported by transcribe.cpp.diff --git a/src/content/release-notes/README.md b/src/content/release-notes/README.mdnew file mode 100644index 00000000..4abd0f95--- /dev/null+++ b/src/content/release-notes/README.md@@ -0,0 +1,23 @@+# Release Notes++Add user-facing release notes as Markdown files named by app version:++```text+src/content/release-notes/0.8.4.md+```++The update modal shows the highest bundled release note newer than the+persisted `whats_new_last_seen_version` and not newer than the running app+version.++Keep these files focused on headline user-facing changes. Release notes support+paragraphs, headings, lists, links, code, quotes, strikethrough, tables, task+lists, separators, hard line breaks, and local images under+`/release-notes/...`. Raw HTML is ignored before rendering.++Place image assets in `public/release-notes/{version}/` and reference them from+Markdown with absolute paths:++```md++```diff --git a/src/i18n/locales/ar/translation.json b/src/i18n/locales/ar/translation.jsonindex 59e8c962..01038a16 100644--- a/src/i18n/locales/ar/translation.json+++ b/src/i18n/locales/ar/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "للبدء، اختر نموذج التفريغ الصوتي",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "موصى به",- "download": "تنزيل",- "downloading": "...جاري التنزيل","customModelDescription": "غير مدعوم رسميًا",- "downloadFailed": "فشل التنزيل. يرجى المحاولة مرة أخرى.","modelCard": {"accuracy": "الدقة","speed": "السرعة"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "فشل تحميل النماذج المتاحة",- "downloadModel": "فشل تنزيل النموذج: {{error}}"+ "selectModel": "Failed to select model"},"permissions": {"title": "الأذونات المطلوبة",@@ -121,6 +121,7 @@},"modelSelector": {"custom": "مخصص",+ "streaming": "البث","active": "نشط","noModelsAvailable": "لا توجد نماذج متاحة","verifying": "جارٍ التحقق من {{modelName}}...",@@ -144,11 +145,13 @@"capabilities": {"languageSelection": "يدعم اختيار اللغة","singleLanguage": "يدعم هذه اللغة فقط",- "multiLanguage": "متعدد اللغات",+ "languageCount": "{{total}} languages","languageOnly": "{{language}} فقط","translation": "يدعم الترجمة",- "translate": "ترجمة"- }+ "translate": "ترجمة",+ "streaming": "يعرض النسخ المباشر أثناء التحدث"+ },+ "legacy": "قديم"},"settings": {"general": {@@ -183,7 +186,6 @@"language": {"title": "اللغة","description": ".اختر لغة التعرف على الكلام. سيحدد 'تلقائي' اللغة تلقائياً، بينما يؤدي اختيار لغة معينة إلى تحسين الدقة لتلك اللغة",- "descriptionUnsupported": ".يكتشف نموذج Parakeet اللغة تلقائياً. لا يلزم الاختيار اليدوي","searchPlaceholder": "البحث عن اللغات...","noResults": "لم يتم العثور على لغات","auto": "تلقائي"@@ -217,7 +219,6 @@}},"advanced": {- "title": "متقدم","groups": {"app": "التطبيق","output": "الإخراج",@@ -234,7 +235,7 @@"description": "يبقي بث الميكروفون مفتوحًا لمدة 30 ثانية بعد توقف التسجيل، مما يقلل التأخير عند النسخ المتتالي. قد يؤثر على جودة صوت البلوتوث أثناء التفعيل."},"acceleration": {- "whisper": {+ "transcribe": {"title": "تسريع Whisper","description": "تسريع الأجهزة لنماذج Whisper. الوضع التلقائي يستخدم GPU إن توفر (Metal على macOS، Vulkan على Windows/Linux)."},@@ -243,8 +244,6 @@"description": "تسريع الأجهزة لنماذج ONNX (Parakeet، Canary، Moonshine، إلخ). DirectML على Windows تجريبي. قد تفشل النماذج في النسخ."},"gpuDevice": {- "title": "جهاز GPU",- "description": "حدد وحدة معالجة الرسومات المستخدمة لاستدلال Whisper. يختار تلقائي وحدة GPU المخصصة.","auto": "تلقائي"}},@@ -261,12 +260,22 @@"description": ".عرض أيقونة Handy في شريط النظام"},"overlay": {- "title": "موقع التراكب",- "description": "عرض تراكب الملاحظات المرئية أثناء التسجيل والتفريغ. على نظام Linux يوصى بـ 'بلا'.",- "options": {- "none": "بلا",- "bottom": "أسفل",- "top": "أعلى"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "بلا",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "موقع التراكب",+ "description": "عرض تراكب الملاحظات المرئية أثناء التسجيل والتفريغ. على نظام Linux يوصى بـ 'بلا'.",+ "options": {+ "bottom": "أسفل",+ "top": "أعلى"+ }}},"pasteMethod": {@@ -310,8 +319,7 @@},"translateToEnglish": {"label": "الترجمة إلى الإنجليزية",- "description": ".ترجمة الكلام من اللغات الأخرى تلقائياً إلى الإنجليزية أثناء التفريغ",- "descriptionUnsupported": ".الترجمة غير مدعومة من قبل نموذج {{model}}"+ "description": ".ترجمة الكلام من اللغات الأخرى تلقائياً إلى الإنجليزية أثناء التفريغ"},"modelUnload": {"title": "إلغاء تحميل النموذج",@@ -334,10 +342,13 @@"add": "إضافة","remove": "إزالة {{word}}","duplicate": "\"{{word}}\" موجود بالفعل"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "معالجة لاحقة","hotkey": {"title": "مفتاح الاختصار"},@@ -348,9 +359,6 @@"description": "اختر مزوداً متوافقاً مع OpenAI."},"appleIntelligence": {- "title": "Apple Intelligence",- "description": "يعمل بالكامل على الجهاز. لا يلزم وجود مفتاح API أو وصول إلى الشبكة.",- "requirements": "يتطلب جهاز Mac بمعالج Apple Silicon يعمل بنظام macOS Tahoe (26.0) أو أحدث. يجب تمكين Apple Intelligence في إعدادات النظام.","unavailable": "Apple Intelligence غير متاح على هذا الجهاز. يتطلب جهاز Mac بمعالج Apple Silicon يعمل بنظام macOS Tahoe (26.0) أو أحدث مع تمكين Apple Intelligence في إعدادات النظام."},"baseUrl": {@@ -365,10 +373,8 @@},"model": {"title": "النموذج",- "descriptionApple": "قدم حداً اختيارياً للرموز الرقمية أو احتفظ بالإعداد المسبق الافتراضي على الجهاز.","descriptionCustom": "قدم معرف النموذج المتوقع من قبل نقطة النهاية المخصصة الخاصة بك.","descriptionDefault": "اختر نموذجاً يعرضه المزود المختار.",- "placeholderApple": "Apple Intelligence","placeholderWithOptions": "ابحث عن نموذج أو اختره","placeholderNoOptions": "اكتب اسم النموذج","refreshModels": "تحديث النماذج"@@ -496,6 +502,13 @@"recordingBuffer": {"title": "مخزن التسجيل الإضافي","description": "وقت إضافي (بالمللي ثانية) للاستمرار في التسجيل بعد تحرير المفتاح، لالتقاط الصوت المتبقي. 0 = لا مخزن إضافي."+ },+ "whatsNewPreview": {+ "title": "معاينة الجديد",+ "description": "افتح أحدث ملاحظات إصدار مضمنة دون وضع علامة عليها كمقروءة",+ "button": "معاينة",+ "noNotes": "لم يتم العثور على ملاحظات إصدار مضمنة",+ "error": "تعذرت معاينة ملاحظات الإصدار"}},"about": {@@ -520,82 +533,64 @@},"acknowledgments": {"title": "شكر وتقدير",- "whisper": {- "title": "Whisper.cpp",+ "ggml": {+ "title": "ggml","description": "استنتاج عالي الأداء لنموذج التعرف التلقائي على الكلام Whisper من OpenAI",- "details": ".يستخدم Handy برنامج Whisper.cpp لمعالجة سريعة ومحلية لتحويل الكلام إلى نص. شكراً للعمل الرائع الذي قام به Georgi Gerganov والمساهمون"+ "details": ".يستخدم Handy برنامج ggml لمعالجة سريعة ومحلية لتحويل الكلام إلى نص. شكراً للعمل الرائع الذي قام به Georgi Gerganov والمساهمون"}+ },+ "whatsNewUpdates": {+ "label": "إظهار الجديد",+ "description": "إظهار ملاحظات الإصدار بعد تحديثات Handy"}},"modelSettings": {- "title": "إعدادات النموذج",- "noSettingsNeeded": "لا توجد إعدادات مطلوبة لهذا النموذج"+ "title": "إعدادات النموذج"},"models": {"title": "نماذج النسخ","description": "اختر نموذج نسخ أو قم بتنزيل نماذج إضافية. تقدم النماذج المختلفة مستويات متفاوتة من الدقة والسرعة.","yourModels": "النماذج المحمّلة","availableModels": "متاح للتنزيل",- "downloaded": "تم التنزيل",- "available": "متاح للتنزيل","deleteConfirm": "هل أنت متأكد أنك تريد حذف {{modelName}}؟ ستحتاج إلى تنزيله مرة أخرى لاستخدامه.","deleteActiveConfirm": "{{modelName}} هو النموذج النشط حاليًا. حذفه سيوقف النسخ حتى تختار نموذجًا جديدًا. هل أنت متأكد؟","deleteTitle": "حذف النموذج","filters": {- "all": "الكل",- "multiLanguage": "متعدد اللغات",- "translation": "ترجمة","allLanguages": "جميع اللغات"},- "noModelsMatch": "لا توجد نماذج مطابقة لهذا الفلتر."+ "noModelsMatch": "لا توجد نماذج مطابقة لهذا الفلتر.",+ "searchPlaceholder": "ابحث عن النماذج بالاسم…",+ "rescan": {+ "label": "إعادة الفحص",+ "tooltip": "إعادة الفحص بحثًا عن النماذج المضافة إلى مجلد النماذج أو ذاكرة Hugging Face التخزينية المؤقتة خارج Handy"+ }}},"footer": {- "downloadingModel": "...جاري تنزيل {{model}}","checkingUpdates": "...جاري التحقق من وجود تحديثات",- "updateAvailable": "تحديث متاح: {{version}}","updateAvailableShort": "تحديث متاح","upToDate": "محدث",- "downloadUpdate": "تنزيل التحديث",- "restart": "إعادة تشغيل","updateCheckingDisabled": "تم تعطيل التحقق من التحديث","downloading": "...جاري التنزيل {{progress}}%","installing": "...جاري التثبيت","preparing": "...جاري التحضير","checkForUpdates": "التحقق من وجود تحديثات",- "portableUpdateTitle": "Manual update required",- "portableUpdateMessage": "Portable installs cannot be updated automatically. To update: download the latest NSIS installer from GitHub Releases, install it to the same folder, then copy your Data/ folder (settings, models, recordings) from the old version to the new one.",- "portableUpdateButton": "Open GitHub Releases"+ "portableUpdateTitle": "التحديث اليدوي مطلوب",+ "portableUpdateMessage": "لا يمكن تحديث التثبيتات المحمولة تلقائيًا. للتحديث: نزّل أحدث مثبّت NSIS من GitHub Releases، وثبّته في المجلد نفسه، ثم انسخ مجلد Data/ (الإعدادات والنماذج والتسجيلات) من الإصدار القديم إلى الجديد.",+ "portableUpdateButton": "فتح GitHub Releases"},"common": {"loading": "...جاري التحميل",- "save": "حفظ",- "cancel": "إلغاء",- "reset": "إعادة تعيين",- "add": "إضافة",- "remove": "إزالة","delete": "حذف",- "edit": "تعديل",- "create": "إنشاء",- "update": "تحديث","close": "إغلاق","open": "فتح","copy": "نسخ","clear": "مسح",- "default": "افتراضي",- "enabled": "ممكن",- "disabled": "معطل",- "on": "تشغيل",- "off": "إيقاف",- "yes": "نعم",- "no": "لا","noOptionsFound": "لم يتم العثور على خيارات"},"accessibility": {- "permissionsRequired": "أذونات إمكانية الوصول مطلوبة","permissionsDescription": ".يحتاج Handy إلى أذونات إمكانية الوصول لكتابة النص المفرغ",- "openSettings": "فتح إعدادات النظام",- "dismiss": "تجاهل"+ "openSettings": "فتح إعدادات النظام"},"errors": {"loadDirectory": "خطأ في تحميل المجلد: {{error}}",@@ -612,7 +607,8 @@"modelLoadFailed": "فشل في تحميل النموذج: {{model}}","modelLoadFailedUnknown": "نموذج غير معروف","pasteFailedTitle": "فشل لصق النص",- "pasteFailed": "تعذر لصق النص في التطبيق النشط."+ "pasteFailed": "تعذر لصق النص في التطبيق النشط.",+ "transcriptionFailedTitle": "فشل التفريغ النصي"},"appLanguage": {"title": "لغة التطبيق",@@ -621,5 +617,8 @@"overlay": {"transcribing": "...جاري التفريغ","processing": "...جاري المعالجة"+ },+ "whatsNew": {+ "title": "الجديد في Handy v{{version}}"}}diff --git a/src/i18n/locales/bg/translation.json b/src/i18n/locales/bg/translation.jsonindex 4df0a2ed..6f95f15d 100644--- a/src/i18n/locales/bg/translation.json+++ b/src/i18n/locales/bg/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "За да започнете, изберете модел за транскрипция",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "Препоръчан",- "download": "Изтегляне",- "downloading": "Изтегля се...","customModelDescription": "Не се поддържа официално",- "downloadFailed": "Изтеглянето не бе успешно. Опитайте отново.","modelCard": {"accuracy": "точност","speed": "скорост"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "Неуспешно зареждане на наличните модели",- "downloadModel": "Неуспешно изтегляне на модела: {{error}}"+ "selectModel": "Failed to select model"},"permissions": {"title": "Необходими разрешения",@@ -121,6 +121,7 @@},"modelSelector": {"custom": "Персонализиран",+ "streaming": "Стрийминг","active": "Активен","switching": "Превключване...","noModelsAvailable": "Няма налични модели",@@ -144,16 +145,17 @@"capabilities": {"languageSelection": "Поддържа няколко входни езика","singleLanguage": "Поддържа само този език",- "multiLanguage": "Многоезичен",+ "languageCount": "{{total}} languages","languageOnly": "Само {{language}}","translation": "Може да превежда на английски",- "translate": "Превод на английски"- }+ "translate": "Превод на английски",+ "streaming": "Показва транскрипция на живо, докато говорите"+ },+ "legacy": "Наследен"},"settings": {"modelSettings": {- "title": "Настройки на {{model}}",- "noSettingsNeeded": "Този модел работи автоматично без нужда от конфигурация."+ "title": "Настройки на {{model}}"},"general": {"title": "Общи",@@ -187,7 +189,6 @@"language": {"title": "Език","description": "Изберете езика за разпознаване на реч. „Автоматично“ определя езика сам, а изборът на конкретен език може да подобри точността за него.",- "descriptionUnsupported": "Моделът Parakeet автоматично открива езика. Ръчен избор не е необходим.","searchPlaceholder": "Търсене на езици...","noResults": "Няма намерени езици","auto": "Автоматично"@@ -202,18 +203,18 @@"description": "Изберете модел за транскрипция или изтеглете допълнителни. Различните модели предлагат различна точност и скорост.","yourModels": "Изтеглени модели","availableModels": "Налични за изтегляне",- "downloaded": "Изтеглен",- "available": "Наличен за изтегляне","deleteConfirm": "Сигурни ли сте, че искате да изтриете {{modelName}}? Ще трябва да го изтеглите отново, за да го използвате.","deleteActiveConfirm": "{{modelName}} е вашият активен модел. Изтриването му ще спре транскрипциите, докато не изберете нов модел. Сигурни ли сте?","deleteTitle": "Изтриване на модел","filters": {- "all": "Всички",- "multiLanguage": "Многоезични",- "translation": "Превод","allLanguages": "Всички езици"},- "noModelsMatch": "Няма модели, отговарящи на този филтър."+ "noModelsMatch": "Няма модели, отговарящи на този филтър.",+ "searchPlaceholder": "Търсене на модели по име…",+ "rescan": {+ "label": "Сканиране отново",+ "tooltip": "Сканиране отново за модели, добавени в папката с модели или кеша на Hugging Face извън Handy"+ }},"sound": {"title": "Звук",@@ -239,7 +240,6 @@}},"advanced": {- "title": "Разширени","groups": {"app": "Приложение","output": "Изход",@@ -256,7 +256,7 @@"description": "Държи потокът от микрофона отворен 30 секунди след спиране на записа, което намалява забавянето при поредни транскрипции. Може да влоши качеството на Bluetooth аудио, докато е активно."},"acceleration": {- "whisper": {+ "transcribe": {"title": "Ускорение за Whisper","description": "Хардуерно ускорение за моделите Whisper. „Автоматично“ използва GPU при наличност (Metal на macOS, Vulkan на Windows/Linux)."},@@ -265,8 +265,6 @@"description": "Хардуерно ускорение за ONNX модели (Parakeet, Canary, Moonshine и др.). DirectML на Windows е експериментален. Моделите може да не транскрибират."},"gpuDevice": {- "title": "GPU устройство",- "description": "Изберете кой GPU да се използва за Whisper. Автоматично избира специализирания GPU.","auto": "Автоматично"}},@@ -283,12 +281,22 @@"description": "Показване на иконата на Handy в системната област."},"overlay": {- "title": "Позиция на наслагването",- "description": "Показване на визуална обратна връзка при запис и транскрипция. На Linux се препоръчва „Няма“.",- "options": {- "none": "Няма",- "bottom": "Долу",- "top": "Горе"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "Няма",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "Позиция на наслагването",+ "description": "Показване на визуална обратна връзка при запис и транскрипция. На Linux се препоръчва „Няма“.",+ "options": {+ "bottom": "Долу",+ "top": "Горе"+ }}},"pasteMethod": {@@ -332,8 +340,7 @@},"translateToEnglish": {"label": "Превод на английски",- "description": "Автоматичен превод на реч от други езици на английски по време на транскрипция.",- "descriptionUnsupported": "Моделът {{model}} не поддържа превод."+ "description": "Автоматичен превод на реч от други езици на английски по време на транскрипция."},"modelUnload": {"title": "Разтоварване на модела",@@ -356,10 +363,13 @@"add": "Добавяне","remove": "Премахване на {{word}}","duplicate": "„{{word}}“ вече съществува"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "Постобработка","hotkey": {"title": "Бърз клавиш"},@@ -370,9 +380,6 @@"description": "Изберете доставчик, съвместим с OpenAI."},"appleIntelligence": {- "title": "Apple Intelligence",- "description": "Работи изцяло на устройството. Не са нужни API ключ или мрежов достъп.",- "requirements": "Изисква Mac с Apple Silicon и macOS Tahoe (26.0) или по-нова. Apple Intelligence трябва да е включена в Системните настройки.","unavailable": "Apple Intelligence не е налична на това устройство. Необходим е Mac с Apple Silicon и macOS Tahoe (26.0) или по-нова с включена Apple Intelligence в Системните настройки."},"baseUrl": {@@ -387,10 +394,8 @@},"model": {"title": "Модел",- "descriptionApple": "Задайте по избор числен лимит на токени или запазете стандартната настройка на устройството.","descriptionCustom": "Въведете идентификатора на модела, очакван от вашия персонализиран краен адрес.","descriptionDefault": "Изберете модел, предлаган от избрания доставчик.",- "placeholderApple": "Apple Intelligence","placeholderWithOptions": "Търсене или избор на модел","placeholderNoOptions": "Въведете име на модел","refreshModels": "Опресняване на моделите"@@ -518,6 +523,13 @@"recordingBuffer": {"title": "Допълнителен буфер на записа","description": "Допълнително време (в милисекунди) за запис след пускане на клавиша, за да се улови краят на аудиото. 0 = без допълнителен буфер."+ },+ "whatsNewPreview": {+ "title": "Преглед на новостите",+ "description": "Отваря последните включени бележки към изданието, без да ги маркира като видени",+ "button": "Преглед",+ "noNotes": "Не са намерени включени бележки към изданието",+ "error": "Неуспешен преглед на бележките към изданието"}},"about": {@@ -542,22 +554,22 @@},"acknowledgments": {"title": "Благодарности",- "whisper": {- "title": "Whisper.cpp",+ "ggml": {+ "title": "ggml","description": "Високопроизводително изпълнение на автоматичния модел за разпознаване на реч Whisper на OpenAI",- "details": "Handy използва Whisper.cpp за бързо локално реч-към-текст. Благодарности на Georgi Gerganov и сътрудниците за отличната работа."+ "details": "Handy използва ggml за бързо локално реч-към-текст. Благодарности на Georgi Gerganov и сътрудниците за отличната работа."}+ },+ "whatsNewUpdates": {+ "label": "Показвай новостите",+ "description": "Показвай бележки към изданието след актуализации на Handy"}}},"footer": {- "downloadingModel": "Изтегляне на {{model}}...","checkingUpdates": "Проверка за актуализации...",- "updateAvailable": "Налична актуализация: {{version}}","updateAvailableShort": "Налична актуализация","upToDate": "Актуална версия",- "downloadUpdate": "Изтегляне на актуализацията",- "restart": "Рестартиране","updateCheckingDisabled": "Проверката за актуализации е изключена","downloading": "Изтегля се... {{progress}}%","installing": "Инсталиране...",@@ -569,33 +581,16 @@},"common": {"loading": "Зареждане...",- "save": "Запазване",- "cancel": "Отказ",- "reset": "Нулиране",- "add": "Добавяне",- "remove": "Премахване","delete": "Изтриване",- "edit": "Редактиране",- "create": "Създаване",- "update": "Обновяване","close": "Затваряне","open": "Отваряне","copy": "Копиране","clear": "Изчистване",- "default": "По подразбиране",- "enabled": "Включено",- "disabled": "Изключено",- "on": "Вкл.",- "off": "Изкл.",- "yes": "Да",- "no": "Не","noOptionsFound": "Няма намерени опции"},"accessibility": {- "permissionsRequired": "Необходими са разрешения за достъпност","permissionsDescription": "Handy се нуждае от разрешения за достъпност, за да въвежда транскрибирания текст.",- "openSettings": "Отваряне на системните настройки",- "dismiss": "Затваряне"+ "openSettings": "Отваряне на системните настройки"},"errors": {"loadDirectory": "Грешка при зареждане на папката: {{error}}",@@ -612,7 +607,8 @@"modelLoadFailed": "Зареждането на модела не бе успешно: {{model}}","modelLoadFailedUnknown": "неизвестен модел","pasteFailedTitle": "Неуспешно поставяне на текст",- "pasteFailed": "Текстът не можа да бъде поставен в активното приложение."+ "pasteFailed": "Текстът не можа да бъде поставен в активното приложение.",+ "transcriptionFailedTitle": "Неуспешна транскрипция"},"appLanguage": {"title": "Език на приложението",@@ -621,5 +617,8 @@"overlay": {"transcribing": "Транскрибиране...","processing": "Обработка..."+ },+ "whatsNew": {+ "title": "Ново в Handy v{{version}}"}}diff --git a/src/i18n/locales/cs/translation.json b/src/i18n/locales/cs/translation.jsonindex 7a3feb5a..405730ae 100644--- a/src/i18n/locales/cs/translation.json+++ b/src/i18n/locales/cs/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "Pro začátek vyberte model pro přepis",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "Doporučeno",- "download": "Stáhnout",- "downloading": "Stahování...","customModelDescription": "Oficiálně nepodporováno",- "downloadFailed": "Stahování se nezdařilo. Zkuste to prosím znovu.","modelCard": {"accuracy": "přesnost","speed": "rychlost"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "Nepodařilo se načíst dostupné modely",- "downloadModel": "Nepodařilo se stáhnout model: {{error}}"+ "selectModel": "Failed to select model"},"permissions": {"title": "Vyžadována oprávnění",@@ -121,6 +121,7 @@},"modelSelector": {"custom": "Vlastní",+ "streaming": "Streaming","active": "Aktivní","noModelsAvailable": "Nejsou dostupné žádné modely","verifying": "Ověřování {{modelName}}...",@@ -141,37 +142,38 @@"downloadSpeed": "{{speed}} MB/s","capabilities": {"languageSelection": "Podporuje více vstupních jazyků",- "multiLanguage": "Vícejazyčný",+ "languageCount": "{{total}} languages","translation": "Umí překládat do angličtiny","translate": "Přeložit do angličtiny","singleLanguage": "Podporuje pouze tento jazyk",- "languageOnly": "Pouze {{language}}"+ "languageOnly": "Pouze {{language}}",+ "streaming": "Zobrazuje přepis živě, jak mluvíte"},"cancel": "Zrušit",- "cancelDownload": "Zrušit stahování"+ "cancelDownload": "Zrušit stahování",+ "legacy": "Zastaralé"},"settings": {"modelSettings": {- "title": "Nastavení {{model}}",- "noSettingsNeeded": "Tento model funguje automaticky bez nutnosti konfigurace."+ "title": "Nastavení {{model}}"},"models": {"title": "Modely přepisu","description": "Vyberte model přepisu nebo stáhněte další modely. Různé modely nabízejí různé úrovně přesnosti a rychlosti.",- "downloaded": "Staženo",- "available": "K dispozici ke stažení","deleteConfirm": "Opravdu chcete smazat {{modelName}}? Pro opětovné použití jej budete muset znovu stáhnout.","deleteActiveConfirm": "{{modelName}} je váš aktivní model. Jeho smazáním se zastaví přepisy, dokud nevyberete nový model. Opravdu chcete pokračovat?","deleteTitle": "Smazat model","filters": {- "all": "Vše",- "multiLanguage": "Vícejazyčný",- "translation": "Překlad","allLanguages": "Všechny jazyky"},"noModelsMatch": "Tomuto filtru neodpovídají žádné modely.","yourModels": "Stažené modely",- "availableModels": "Dostupné ke stažení"+ "availableModels": "Dostupné ke stažení",+ "searchPlaceholder": "Hledat modely podle názvu…",+ "rescan": {+ "label": "Znovu prohledat",+ "tooltip": "Znovu prohledat modely přidané do složky modelů nebo mezipaměti Hugging Face mimo Handy"+ }},"general": {"title": "Obecné",@@ -205,7 +207,6 @@"language": {"title": "Jazyk","description": "Vyberte jazyk rozpoznávání řeči. Auto jazyk určí automaticky, zatímco výběr konkrétního jazyka může zlepšit přesnost.",- "descriptionUnsupported": "Model Parakeet rozpozná jazyk automaticky. Ruční výběr není potřeba.","searchPlaceholder": "Hledat jazyky...","noResults": "Žádné jazyky nenalezeny","auto": "Auto"@@ -239,7 +240,6 @@}},"advanced": {- "title": "Pokročilé","groups": {"app": "Aplikace","output": "Výstup",@@ -256,7 +256,7 @@"description": "Ponechá stream mikrofonu otevřený po dobu 30 sekund po zastavení nahrávání, čímž se sníží latence při opakovaném přepisu. Může zhoršit kvalitu zvuku Bluetooth."},"acceleration": {- "whisper": {+ "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)."},@@ -265,8 +265,6 @@"description": "Hardwarová akcelerace pro modely ONNX (Parakeet, Canary, Moonshine atd.). DirectML na Windows je experimentální. Modely nemusí správně přepisovat."},"gpuDevice": {- "title": "GPU zařízení",- "description": "Vyberte, který GPU použít pro Whisper. Automaticky vybere dedikovaný GPU.","auto": "Automaticky"}},@@ -283,12 +281,22 @@"description": "Zobrazit ikonu Handy v systémové liště."},"overlay": {- "title": "Pozice překryvu",- "description": "Zobrazovat vizuální překryv během nahrávání a přepisu. Na Linuxu je doporučeno 'Žádné'.",- "options": {- "none": "Žádné",- "bottom": "Dole",- "top": "Nahoře"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "Žádné",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "Pozice překryvu",+ "description": "Zobrazovat vizuální překryv během nahrávání a přepisu. Na Linuxu je doporučeno 'Žádné'.",+ "options": {+ "bottom": "Dole",+ "top": "Nahoře"+ }}},"pasteMethod": {@@ -332,8 +340,7 @@},"translateToEnglish": {"label": "Překládat do angličtiny",- "description": "Během přepisu automaticky překládat řeč z jiných jazyků do angličtiny.",- "descriptionUnsupported": "Překlad není podporován modelem {{model}}."+ "description": "Během přepisu automaticky překládat řeč z jiných jazyků do angličtiny."},"modelUnload": {"title": "Uvolnění modelu",@@ -356,10 +363,13 @@"add": "Přidat","remove": "Odebrat {{word}}","duplicate": "\"{{word}}\" již existuje"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "Následné zpracování","hotkey": {"title": "Klávesová zkratka"},@@ -370,9 +380,6 @@"description": "Vyberte poskytovatele kompatibilního s OpenAI."},"appleIntelligence": {- "title": "Apple Intelligence",- "description": "Běží plně na zařízení. Není potřeba API klíč ani síťové připojení.",- "requirements": "Vyžaduje Mac s Apple Silicon a macOS Tahoe (26.0) nebo novější. Apple Intelligence musí být povoleno v Nastavení systému.","unavailable": "Apple Intelligence není na tomto zařízení k dispozici. Vyžaduje Mac s Apple Silicon a macOS Tahoe (26.0) nebo novější a povolené Apple Intelligence v Nastavení systému."},"baseUrl": {@@ -387,10 +394,8 @@},"model": {"title": "Model",- "descriptionApple": "Zadejte volitelný číselný limit tokenů nebo ponechte výchozí předvolbu na zařízení.","descriptionCustom": "Zadejte identifikátor modelu očekávaný vaším vlastním endpointem.","descriptionDefault": "Vyberte model dostupný u vybraného poskytovatele.",- "placeholderApple": "Apple Intelligence","placeholderWithOptions": "Vyhledejte nebo vyberte model","placeholderNoOptions": "Zadejte název modelu","refreshModels": "Obnovit modely"@@ -518,6 +523,13 @@"recordingBuffer": {"title": "Extra vyrovnávací paměť nahrávání","description": "Extra čas (v milisekundách) pro pokračování nahrávání po uvolnění klávesy, pro zachycení zbývajícího zvuku. 0 = žádná extra vyrovnávací paměť."+ },+ "whatsNewPreview": {+ "title": "Náhled novinek",+ "description": "Otevřít nejnovější přibalené poznámky k vydání bez označení jako zobrazené",+ "button": "Náhled",+ "noNotes": "Nebyly nalezeny žádné přibalené poznámky k vydání",+ "error": "Nepodařilo se zobrazit náhled poznámek k vydání"}},"about": {@@ -542,60 +554,43 @@},"acknowledgments": {"title": "Poděkování",- "whisper": {- "title": "Whisper.cpp",+ "ggml": {+ "title": "ggml","description": "Vysoce výkonné inferenční zpracování modelu automatického rozpoznávání řeči Whisper od OpenAI",- "details": "Handy používá Whisper.cpp pro rychlé lokální zpracování řeči na text. Díky skvělé práci Georgiho Gerganova a přispěvatelů."+ "details": "Handy používá ggml pro rychlé lokální zpracování řeči na text. Díky skvělé práci Georgiho Gerganova a přispěvatelů."}+ },+ "whatsNewUpdates": {+ "label": "Zobrazovat novinky",+ "description": "Zobrazovat poznámky k vydání po aktualizacích Handy"}}},"footer": {- "downloadingModel": "Stahuji {{model}}...","checkingUpdates": "Kontroluji aktualizace...",- "updateAvailable": "Dostupná aktualizace: {{version}}","updateAvailableShort": "Dostupná aktualizace","upToDate": "Vše aktuální",- "downloadUpdate": "Stáhnout aktualizaci",- "restart": "Restartovat","updateCheckingDisabled": "Kontrola aktualizací vypnuta","downloading": "Stahování... {{progress}}%","installing": "Instalace...","preparing": "Příprava...","checkForUpdates": "Zkontrolovat aktualizace",- "portableUpdateTitle": "Manual update required",- "portableUpdateMessage": "Portable installs cannot be updated automatically. To update: download the latest NSIS installer from GitHub Releases, install it to the same folder, then copy your Data/ folder (settings, models, recordings) from the old version to the new one.",- "portableUpdateButton": "Open GitHub Releases"+ "portableUpdateTitle": "Vyžadována ruční aktualizace",+ "portableUpdateMessage": "Přenosné instalace nelze aktualizovat automaticky. Postup aktualizace: stáhněte nejnovější instalátor NSIS z GitHub Releases, nainstalujte jej do stejné složky a poté zkopírujte svou složku Data/ (nastavení, modely, nahrávky) ze staré verze do nové.",+ "portableUpdateButton": "Otevřít GitHub Releases"},"common": {"loading": "Načítání...",- "save": "Uložit",- "cancel": "Zrušit",- "reset": "Obnovit",- "add": "Přidat",- "remove": "Odebrat","delete": "Smazat",- "edit": "Upravit",- "create": "Vytvořit",- "update": "Aktualizovat","close": "Zavřít","open": "Otevřít","copy": "Kopírovat","clear": "Vymazat",- "default": "Výchozí",- "enabled": "Zapnuto",- "disabled": "Vypnuto",- "on": "Zapnuto",- "off": "Vypnuto",- "yes": "Ano",- "no": "Ne","noOptionsFound": "Nenalezeny žádné možnosti"},"accessibility": {- "permissionsRequired": "Vyžadována oprávnění usnadnění přístupu","permissionsDescription": "Handy potřebuje oprávnění usnadnění přístupu, aby mohlo psát přepsaný text.",- "openSettings": "Otevřít Nastavení systému",- "dismiss": "Zavřít"+ "openSettings": "Otevřít Nastavení systému"},"errors": {"loadDirectory": "Chyba při načítání adresáře: {{error}}",@@ -612,7 +607,8 @@"modelLoadFailed": "Nepodařilo se načíst model: {{model}}","modelLoadFailedUnknown": "neznámý model","pasteFailedTitle": "Vložení textu se nezdařilo",- "pasteFailed": "Text nebylo možné vložit do aktivní aplikace."+ "pasteFailed": "Text nebylo možné vložit do aktivní aplikace.",+ "transcriptionFailedTitle": "Přepis selhal"},"appLanguage": {"title": "Jazyk aplikace",@@ -621,5 +617,8 @@"overlay": {"transcribing": "Přepisuji...","processing": "Zpracovávám..."+ },+ "whatsNew": {+ "title": "Novinky v Handy v{{version}}"}}diff --git a/src/i18n/locales/de/translation.json b/src/i18n/locales/de/translation.jsonindex a3a63f62..89b42a4e 100644--- a/src/i18n/locales/de/translation.json+++ b/src/i18n/locales/de/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "Wähle ein Transkriptionsmodell, um loszulegen",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "Empfohlen",- "download": "Herunterladen",- "downloading": "Wird heruntergeladen...","customModelDescription": "Nicht offiziell unterstützt",- "downloadFailed": "Download fehlgeschlagen. Bitte erneut versuchen.","modelCard": {"accuracy": "Genauigkeit","speed": "Geschwindigkeit"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "Verfügbare Modelle konnten nicht geladen werden",- "downloadModel": "Modell konnte nicht heruntergeladen werden: {{error}}"+ "selectModel": "Failed to select model"},"permissions": {"title": "Berechtigungen erforderlich",@@ -121,6 +121,7 @@},"modelSelector": {"custom": "Benutzerdefiniert",+ "streaming": "Streaming","active": "Aktiv","switching": "Wechseln...","noModelsAvailable": "Keine Modelle verfügbar",@@ -141,37 +142,38 @@"downloadSpeed": "{{speed}} MB/s","capabilities": {"languageSelection": "Unterstützt mehrere Eingabesprachen",- "multiLanguage": "Mehrsprachig",+ "languageCount": "{{total}} languages","translation": "Kann ins Englische übersetzen","translate": "Ins Englische übersetzen","singleLanguage": "Unterstützt nur diese Sprache",- "languageOnly": "Nur {{language}}"+ "languageOnly": "Nur {{language}}",+ "streaming": "Zeigt die Transkription live während des Sprechens an"},"cancel": "Abbrechen",- "cancelDownload": "Download abbrechen"+ "cancelDownload": "Download abbrechen",+ "legacy": "Veraltet"},"settings": {"modelSettings": {- "title": "{{model}}-Einstellungen",- "noSettingsNeeded": "Dieses Modell funktioniert automatisch ohne Konfiguration."+ "title": "{{model}}-Einstellungen"},"models": {"title": "Transkriptionsmodelle","description": "Wähle ein Transkriptionsmodell aus oder lade zusätzliche Modelle herunter. Verschiedene Modelle bieten unterschiedliche Genauigkeits- und Geschwindigkeitsstufen.",- "downloaded": "Heruntergeladen",- "available": "Zum Download verfügbar","deleteConfirm": "Bist du sicher, dass du {{modelName}} löschen möchtest? Du musst es erneut herunterladen, um es zu verwenden.","deleteActiveConfirm": "{{modelName}} ist dein aktives Modell. Das Löschen stoppt Transkriptionen, bis du ein neues Modell auswählst. Bist du sicher?","deleteTitle": "Modell löschen","filters": {- "all": "Alle",- "multiLanguage": "Mehrsprachig",- "translation": "Übersetzung","allLanguages": "Alle Sprachen"},"noModelsMatch": "Keine Modelle entsprechen diesem Filter.","yourModels": "Heruntergeladene Modelle",- "availableModels": "Zum Download verfügbar"+ "availableModels": "Zum Download verfügbar",+ "searchPlaceholder": "Modelle nach Namen suchen…",+ "rescan": {+ "label": "Neu scannen",+ "tooltip": "Erneut nach Modellen scannen, die außerhalb von Handy zum Modellordner oder Hugging-Face-Cache hinzugefügt wurden"+ }},"general": {"title": "Allgemein",@@ -205,7 +207,6 @@"language": {"title": "Sprache","description": "Wähle die Sprache für die Spracherkennung. Auto erkennt die Sprache automatisch, die Auswahl einer bestimmten Sprache kann die Genauigkeit verbessern.",- "descriptionUnsupported": "Das Parakeet-Modell erkennt die Sprache automatisch. Keine manuelle Auswahl erforderlich.","searchPlaceholder": "Sprachen suchen...","noResults": "Keine Sprachen gefunden","auto": "Auto"@@ -239,7 +240,6 @@}},"advanced": {- "title": "Erweitert","groups": {"app": "App","output": "Ausgabe",@@ -256,7 +256,7 @@"description": "Hält den Mikrofon-Stream nach dem Aufnahmestopp 30 Sekunden lang offen, um die Latenz bei aufeinanderfolgenden Transkriptionen zu verringern. Kann die Bluetooth-Audioqualität beeinträchtigen."},"acceleration": {- "whisper": {+ "transcribe": {"title": "Whisper-Beschleunigung","description": "Hardwarebeschleunigung für Whisper-Modelle. Automatisch nutzt GPU falls verfügbar (Metal auf macOS, Vulkan auf Windows/Linux)."},@@ -265,8 +265,6 @@"description": "Hardwarebeschleunigung für ONNX-Modelle (Parakeet, Canary, Moonshine usw.). DirectML unter Windows ist experimentell. Modelle können bei der Transkription fehlschlagen."},"gpuDevice": {- "title": "GPU-Gerät",- "description": "Wähle die GPU für die Whisper-Inferenz. Auto wählt die dedizierte GPU.","auto": "Auto"}},@@ -283,12 +281,22 @@"description": "Das Handy-Symbol in der Taskleiste anzeigen."},"overlay": {- "title": "Overlay-Position",- "description": "Visuelles Feedback-Overlay während Aufnahme und Transkription anzeigen. Unter Linux wird 'Keine' empfohlen.",- "options": {- "none": "Keine",- "bottom": "Unten",- "top": "Oben"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "Keine",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "Overlay-Position",+ "description": "Visuelles Feedback-Overlay während Aufnahme und Transkription anzeigen. Unter Linux wird 'Keine' empfohlen.",+ "options": {+ "bottom": "Unten",+ "top": "Oben"+ }}},"pasteMethod": {@@ -332,8 +340,7 @@},"translateToEnglish": {"label": "Ins Englische übersetzen",- "description": "Sprache aus anderen Sprachen automatisch während der Transkription ins Englische übersetzen.",- "descriptionUnsupported": "Übersetzung wird vom {{model}}-Modell nicht unterstützt."+ "description": "Sprache aus anderen Sprachen automatisch während der Transkription ins Englische übersetzen."},"modelUnload": {"title": "Modell entladen",@@ -356,10 +363,13 @@"add": "Hinzufügen","remove": "{{word}} entfernen","duplicate": "\"{{word}}\" existiert bereits"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "Nachbearbeitung","hotkey": {"title": "Tastenkürzel"},@@ -370,9 +380,6 @@"description": "Wähle einen OpenAI-kompatiblen Anbieter."},"appleIntelligence": {- "title": "Apple Intelligence",- "description": "Läuft vollständig auf dem Gerät. Kein API-Schlüssel oder Netzwerkzugriff erforderlich.",- "requirements": "Erfordert einen Apple Silicon Mac mit macOS Tahoe (26.0) oder neuer. Apple Intelligence muss in den Systemeinstellungen aktiviert sein.","unavailable": "Apple Intelligence ist auf diesem Gerät nicht verfügbar. Erfordert einen Apple Silicon Mac mit macOS Tahoe (26.0) oder neuer und aktiviertem Apple Intelligence in den Systemeinstellungen."},"baseUrl": {@@ -387,10 +394,8 @@},"model": {"title": "Modell",- "descriptionApple": "Gib ein optionales numerisches Token-Limit an oder behalte die Standard-Gerätevorgabe.","descriptionCustom": "Gib die Modellkennung an, die von deinem benutzerdefinierten Endpunkt erwartet wird.","descriptionDefault": "Wähle ein Modell des ausgewählten Anbieters.",- "placeholderApple": "Apple Intelligence","placeholderWithOptions": "Modell suchen oder auswählen","placeholderNoOptions": "Modellnamen eingeben","refreshModels": "Modelle aktualisieren"@@ -518,6 +523,13 @@"recordingBuffer": {"title": "Zusätzlicher Aufnahmepuffer","description": "Zusätzliche Zeit (in Millisekunden), um nach dem Loslassen der Taste weiter aufzunehmen, um nachlaufendes Audio zu erfassen. 0 = kein zusätzlicher Puffer."+ },+ "whatsNewPreview": {+ "title": "Vorschau der Neuerungen",+ "description": "Die neuesten gebündelten Versionshinweise öffnen, ohne sie als gesehen zu markieren",+ "button": "Vorschau",+ "noNotes": "Keine gebündelten Versionshinweise gefunden",+ "error": "Versionshinweise konnten nicht angezeigt werden"}},"about": {@@ -542,22 +554,22 @@},"acknowledgments": {"title": "Danksagungen",- "whisper": {- "title": "Whisper.cpp",+ "ggml": {+ "title": "ggml","description": "Hochleistungs-Inferenz des Whisper-Spracherkennungsmodells von OpenAI",- "details": "Handy verwendet Whisper.cpp für schnelle, lokale Sprach-zu-Text-Verarbeitung. Dank an Georgi Gerganov und die Mitwirkenden für ihre großartige Arbeit."+ "details": "Handy verwendet ggml für schnelle, lokale Sprach-zu-Text-Verarbeitung. Dank an Georgi Gerganov und die Mitwirkenden für ihre großartige Arbeit."}+ },+ "whatsNewUpdates": {+ "label": "Neuerungen anzeigen",+ "description": "Versionshinweise nach Handy-Updates anzeigen"}}},"footer": {- "downloadingModel": "Lade {{model}} herunter...","checkingUpdates": "Suche nach Updates...",- "updateAvailable": "Update verfügbar: {{version}}","updateAvailableShort": "Update verfügbar","upToDate": "Aktuell",- "downloadUpdate": "Update herunterladen",- "restart": "Neustart","updateCheckingDisabled": "Update-Prüfung deaktiviert","downloading": "Wird heruntergeladen... {{progress}}%","installing": "Wird installiert...",@@ -569,33 +581,16 @@},"common": {"loading": "Wird geladen...",- "save": "Speichern",- "cancel": "Abbrechen",- "reset": "Zurücksetzen",- "add": "Hinzufügen",- "remove": "Entfernen","delete": "Löschen",- "edit": "Bearbeiten",- "create": "Erstellen",- "update": "Aktualisieren","close": "Schließen","open": "Öffnen","copy": "Kopieren","clear": "Leeren",- "default": "Standard",- "enabled": "Aktiviert",- "disabled": "Deaktiviert",- "on": "An",- "off": "Aus",- "yes": "Ja",- "no": "Nein","noOptionsFound": "Keine Optionen gefunden"},"accessibility": {- "permissionsRequired": "Bedienungshilfen-Berechtigungen erforderlich","permissionsDescription": "Handy benötigt Bedienungshilfen-Berechtigungen, um transkribierten Text einzugeben.",- "openSettings": "Systemeinstellungen öffnen",- "dismiss": "Schließen"+ "openSettings": "Systemeinstellungen öffnen"},"errors": {"loadDirectory": "Fehler beim Laden des Verzeichnisses: {{error}}",@@ -612,7 +607,8 @@"modelLoadFailed": "Modell konnte nicht geladen werden: {{model}}","modelLoadFailedUnknown": "unbekanntes Modell","pasteFailedTitle": "Text konnte nicht eingefügt werden",- "pasteFailed": "Der Text konnte nicht in die aktive Anwendung eingefügt werden."+ "pasteFailed": "Der Text konnte nicht in die aktive Anwendung eingefügt werden.",+ "transcriptionFailedTitle": "Transkription fehlgeschlagen"},"appLanguage": {"title": "Anwendungssprache",@@ -621,5 +617,8 @@"overlay": {"transcribing": "Transkribiere...","processing": "Verarbeite..."+ },+ "whatsNew": {+ "title": "Neu in Handy v{{version}}"}}diff --git a/src/i18n/locales/en/translation.json b/src/i18n/locales/en/translation.jsonindex 36c8cc72..67dc5557 100644--- a/src/i18n/locales/en/translation.json+++ b/src/i18n/locales/en/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "To get started, choose a transcription model",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "Recommended",- "download": "Download",- "downloading": "Downloading...","customModelDescription": "Not officially supported",- "downloadFailed": "Download failed. Please try again.","modelCard": {"accuracy": "accuracy","speed": "speed"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "Failed to load available models",- "downloadModel": "Failed to download model: {{error}}"+ "selectModel": "Failed to select model"},"permissions": {"title": "Permissions Required",@@ -121,6 +121,8 @@},"modelSelector": {"custom": "Custom",+ "legacy": "Legacy",+ "streaming": "Streaming","active": "Active","switching": "Switching...","noModelsAvailable": "No models available",@@ -144,16 +146,16 @@"capabilities": {"languageSelection": "Supports multiple input languages","singleLanguage": "Supports this language only",- "multiLanguage": "Multi-language",- "languageOnly": "{{language}} Only",+ "languageCount": "{{total}} languages",+ "languageOnly": "{{language}} only","translation": "Can translate to English",- "translate": "Translate to English"+ "translate": "Translate",+ "streaming": "Shows live transcription as you speak"}},"settings": {"modelSettings": {- "title": "{{model}} Settings",- "noSettingsNeeded": "This model works automatically with no configuration needed."+ "title": "{{model}} Settings"},"general": {"title": "General",@@ -187,7 +189,6 @@"language": {"title": "Language","description": "Select the language for speech recognition. Auto will automatically determine the language, while selecting a specific language can improve accuracy for that language.",- "descriptionUnsupported": "Parakeet model automatically detects the language. No manual selection is needed.","searchPlaceholder": "Search languages...","noResults": "No languages found","auto": "Auto"@@ -200,19 +201,19 @@"models": {"title": "Transcription Models","description": "Select a transcription model or download additional models. Different models offer varying levels of accuracy and speed.",+ "searchPlaceholder": "Search models by name…","yourModels": "Downloaded Models","availableModels": "Available to Download",- "downloaded": "Downloaded",- "available": "Available to Download","deleteConfirm": "Are you sure you want to delete {{modelName}}? You will need to download it again to use it.","deleteActiveConfirm": "{{modelName}} is your active model. Deleting it will stop transcriptions until you select a new model. Are you sure?","deleteTitle": "Delete Model","filters": {- "all": "All",- "multiLanguage": "Multi-language",- "translation": "Translation","allLanguages": "All Languages"},+ "rescan": {+ "label": "Rescan",+ "tooltip": "Rescan for models added to the models folder or Hugging Face cache outside Handy"+ },"noModelsMatch": "No models match this filter."},"sound": {@@ -239,7 +240,6 @@}},"advanced": {- "title": "Advanced","groups": {"app": "App","output": "Output",@@ -256,17 +256,15 @@"description": "Keeps the microphone stream open for 30 seconds after recording stops, reducing latency for back-to-back transcriptions. May degrade Bluetooth audio quality while active."},"acceleration": {- "whisper": {- "title": "Whisper Acceleration",- "description": "Hardware acceleration for Whisper models. Auto uses GPU if available (Metal on macOS, Vulkan on Windows/Linux)."+ "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."},"gpuDevice": {- "title": "GPU Device",- "description": "Select which GPU to use for Whisper inference. Auto picks the dedicated GPU.","auto": "Auto"}},@@ -283,12 +281,22 @@"description": "Display the Handy icon in the system tray."},"overlay": {- "title": "Overlay Position",- "description": "Display visual feedback overlay during recording and transcription. On Linux 'None' is recommended.",- "options": {- "none": "None",- "bottom": "Bottom",- "top": "Top"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "None",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "Overlay Position",+ "description": "Where the overlay appears on screen during recording and transcription.",+ "options": {+ "bottom": "Bottom",+ "top": "Top"+ }}},"pasteMethod": {@@ -332,8 +340,7 @@},"translateToEnglish": {"label": "Translate to English",- "description": "Automatically translate speech from other languages to English during transcription.",- "descriptionUnsupported": "Translation is not supported by the {{model}} model."+ "description": "Automatically translate speech from other languages to English during transcription."},"modelUnload": {"title": "Unload Model",@@ -356,10 +363,13 @@"add": "Add","remove": "Remove {{word}}","duplicate": "\"{{word}}\" already exists"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "Post Process","hotkey": {"title": "Hotkey"},@@ -370,9 +380,6 @@"description": "Select an OpenAI-compatible provider."},"appleIntelligence": {- "title": "Apple Intelligence",- "description": "Runs fully on-device. No API key or network access is required.",- "requirements": "Requires an Apple Silicon Mac running macOS Tahoe (26.0) or later. Apple Intelligence must be enabled in System Settings.","unavailable": "Apple Intelligence is not available on this device. Requires an Apple Silicon Mac running macOS Tahoe (26.0) or later with Apple Intelligence enabled in System Settings."},"baseUrl": {@@ -387,10 +394,8 @@},"model": {"title": "Model",- "descriptionApple": "Provide an optional numeric token limit or keep the default on-device preset.","descriptionCustom": "Provide the model identifier expected by your custom endpoint.","descriptionDefault": "Choose a model exposed by the selected provider.",- "placeholderApple": "Apple Intelligence","placeholderWithOptions": "Search or select a model","placeholderNoOptions": "Type a model name","refreshModels": "Refresh models"@@ -458,6 +463,13 @@"label": "Check for Updates","description": "Automatically check for new versions of Handy"},+ "whatsNewPreview": {+ "title": "Preview What's New",+ "description": "Open the latest bundled release note without marking it as seen",+ "button": "Preview",+ "noNotes": "No bundled release notes found",+ "error": "Failed to preview release notes"+ },"soundTheme": {"label": "Sound Theme","description": "Choose a sound theme for recording start and stop feedback"@@ -526,6 +538,10 @@"title": "Version","description": "Current version of Handy"},+ "whatsNewUpdates": {+ "label": "Show What's New",+ "description": "Show release notes after Handy updates"+ },"appDataDirectory": {"title": "App Data Directory","description": "Location where Handy stores its data"@@ -542,22 +558,18 @@},"acknowledgments": {"title": "Acknowledgments",- "whisper": {- "title": "Whisper.cpp",- "description": "High-performance inference of OpenAI's Whisper automatic speech recognition model",- "details": "Handy uses Whisper.cpp for fast, local speech-to-text processing. Thanks to the amazing work by Georgi Gerganov and contributors."+ "ggml": {+ "title": "ggml",+ "description": "High-performance tensor library for on-device machine learning inference",+ "details": "Handy's local speech-to-text is built on transcribe.cpp and ggml. Thanks to the amazing work by Georgi Gerganov and contributors."}}}},"footer": {- "downloadingModel": "Downloading {{model}}...","checkingUpdates": "Checking for updates...",- "updateAvailable": "Update available: {{version}}","updateAvailableShort": "Update available","upToDate": "Up to date",- "downloadUpdate": "Download Update",- "restart": "Restart","updateCheckingDisabled": "Update Checking Disabled","downloading": "Downloading... {{progress}}%","installing": "Installing...",@@ -567,35 +579,21 @@"portableUpdateMessage": "Portable installs cannot be updated automatically. To update: download the latest NSIS installer from GitHub Releases, install it to the same folder, then copy your Data/ folder (settings, models, recordings) from the old version to the new one.","portableUpdateButton": "Open GitHub Releases"},+ "whatsNew": {+ "title": "New in Handy v{{version}}"+ },"common": {"loading": "Loading...",- "save": "Save",- "cancel": "Cancel",- "reset": "Reset",- "add": "Add",- "remove": "Remove","delete": "Delete",- "edit": "Edit",- "create": "Create",- "update": "Update","close": "Close","open": "Open","copy": "Copy","clear": "Clear",- "default": "Default",- "enabled": "Enabled",- "disabled": "Disabled",- "on": "On",- "off": "Off",- "yes": "Yes",- "no": "No","noOptionsFound": "No options found"},"accessibility": {- "permissionsRequired": "Accessibility Permissions Required","permissionsDescription": "Handy needs accessibility permissions to type transcribed text.",- "openSettings": "Open System Settings",- "dismiss": "Dismiss"+ "openSettings": "Open System Settings"},"errors": {"loadDirectory": "Error loading directory: {{error}}",@@ -612,7 +610,8 @@"modelLoadFailed": "Failed to load model: {{model}}","modelLoadFailedUnknown": "unknown model","pasteFailedTitle": "Failed to Paste Text",- "pasteFailed": "Text could not be pasted into the active application."+ "pasteFailed": "Text could not be pasted into the active application.",+ "transcriptionFailedTitle": "Transcription Failed"},"appLanguage": {"title": "Application Language",diff --git a/src/i18n/locales/es/translation.json b/src/i18n/locales/es/translation.jsonindex bde8c4e8..3ab98aa5 100644--- a/src/i18n/locales/es/translation.json+++ b/src/i18n/locales/es/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "Para comenzar, elige un modelo de transcripción",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "Recomendado",- "download": "Descargar",- "downloading": "Descargando...","customModelDescription": "Sin soporte oficial",- "downloadFailed": "La descarga falló. Por favor, inténtalo de nuevo.","modelCard": {"accuracy": "precisión","speed": "velocidad"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "Error al cargar los modelos disponibles",- "downloadModel": "Error al descargar el modelo: {{error}}"+ "selectModel": "Failed to select model"},"permissions": {"title": "Permisos Requeridos",@@ -121,6 +121,7 @@},"modelSelector": {"custom": "Personalizado",+ "streaming": "Streaming","active": "Activo","switching": "Cambiando...","noModelsAvailable": "No hay modelos disponibles",@@ -141,37 +142,38 @@"downloadSpeed": "{{speed}} MB/s","capabilities": {"languageSelection": "Soporta múltiples idiomas de entrada",- "multiLanguage": "Multiidioma",+ "languageCount": "{{total}} languages","translation": "Puede traducir al inglés","translate": "Traducir al inglés","singleLanguage": "Solo admite este idioma",- "languageOnly": "Solo {{language}}"+ "languageOnly": "Solo {{language}}",+ "streaming": "Muestra la transcripción en vivo mientras hablas"},"cancel": "Cancelar",- "cancelDownload": "Cancelar descarga"+ "cancelDownload": "Cancelar descarga",+ "legacy": "Heredado"},"settings": {"modelSettings": {- "title": "Configuración de {{model}}",- "noSettingsNeeded": "Este modelo funciona automáticamente sin necesidad de configuración."+ "title": "Configuración de {{model}}"},"models": {"title": "Modelos de Transcripción","description": "Selecciona un modelo de transcripción o descarga modelos adicionales. Diferentes modelos ofrecen distintos niveles de precisión y velocidad.",- "downloaded": "Descargados",- "available": "Disponibles para Descargar","deleteConfirm": "¿Estás seguro de que deseas eliminar {{modelName}}? Necesitarás descargarlo de nuevo para usarlo.","deleteActiveConfirm": "{{modelName}} es tu modelo activo. Eliminarlo detendrá las transcripciones hasta que selecciones un nuevo modelo. ¿Estás seguro?","deleteTitle": "Eliminar modelo","filters": {- "all": "Todos",- "multiLanguage": "Multiidioma",- "translation": "Traducción","allLanguages": "Todos los idiomas"},"noModelsMatch": "Ningún modelo coincide con este filtro.","yourModels": "Modelos descargados",- "availableModels": "Disponibles para descargar"+ "availableModels": "Disponibles para descargar",+ "searchPlaceholder": "Buscar modelos por nombre…",+ "rescan": {+ "label": "Volver a escanear",+ "tooltip": "Vuelve a escanear en busca de modelos añadidos a la carpeta de modelos o a la caché de Hugging Face fuera de Handy"+ }},"general": {"title": "General",@@ -205,7 +207,6 @@"language": {"title": "Idioma","description": "Selecciona el idioma para el reconocimiento de voz. Auto detectará automáticamente el idioma, mientras que seleccionar un idioma específico puede mejorar la precisión para ese idioma.",- "descriptionUnsupported": "El modelo Parakeet detecta automáticamente el idioma. No se necesita selección manual.","searchPlaceholder": "Buscar idiomas...","noResults": "No se encontraron idiomas","auto": "Auto"@@ -239,7 +240,6 @@}},"advanced": {- "title": "Avanzado","groups": {"app": "Aplicación","output": "Salida",@@ -256,7 +256,7 @@"description": "Mantiene el flujo del micrófono abierto durante 30 segundos después de detener la grabación, reduciendo la latencia en transcripciones consecutivas. Puede degradar la calidad del audio Bluetooth mientras está activo."},"acceleration": {- "whisper": {+ "transcribe": {"title": "Aceleración de Whisper","description": "Aceleración por hardware para modelos Whisper. Auto usa GPU si está disponible (Metal en macOS, Vulkan en Windows/Linux)."},@@ -265,8 +265,6 @@"description": "Aceleración por hardware para modelos ONNX (Parakeet, Canary, Moonshine, etc.). DirectML en Windows es experimental. Los modelos pueden fallar al transcribir."},"gpuDevice": {- "title": "Dispositivo GPU",- "description": "Seleccione qué GPU usar para la inferencia de Whisper. Auto elige la GPU dedicada.","auto": "Auto"}},@@ -283,12 +281,22 @@"description": "Mostrar el icono de Handy en la bandeja del sistema."},"overlay": {- "title": "Posición de Superposición",- "description": "Mostrar superposición de retroalimentación visual durante la grabación y transcripción. En Linux se recomienda 'Ninguna'.",- "options": {- "none": "Ninguna",- "bottom": "Abajo",- "top": "Arriba"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "Ninguna",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "Posición de Superposición",+ "description": "Mostrar superposición de retroalimentación visual durante la grabación y transcripción. En Linux se recomienda 'Ninguna'.",+ "options": {+ "bottom": "Abajo",+ "top": "Arriba"+ }}},"pasteMethod": {@@ -332,8 +340,7 @@},"translateToEnglish": {"label": "Traducir al Inglés",- "description": "Traducir automáticamente el habla de otros idiomas al inglés durante la transcripción.",- "descriptionUnsupported": "La traducción no es compatible con el modelo {{model}}."+ "description": "Traducir automáticamente el habla de otros idiomas al inglés durante la transcripción."},"modelUnload": {"title": "Descargar Modelo",@@ -356,10 +363,13 @@"add": "Agregar","remove": "Eliminar {{word}}","duplicate": "\"{{word}}\" ya existe"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "Post Proceso","hotkey": {"title": "Tecla de acceso rápido"},@@ -370,9 +380,6 @@"description": "Selecciona un proveedor compatible con OpenAI."},"appleIntelligence": {- "title": "Apple Intelligence",- "description": "Se ejecuta completamente en el dispositivo. No se requiere clave API ni acceso a la red.",- "requirements": "Requiere un Mac con Apple Silicon ejecutando macOS Tahoe (26.0) o posterior. Apple Intelligence debe estar habilitado en Ajustes del Sistema.","unavailable": "Apple Intelligence no está disponible en este dispositivo. Requiere un Mac con Apple Silicon ejecutando macOS Tahoe (26.0) o posterior con Apple Intelligence habilitado en Ajustes del Sistema."},"baseUrl": {@@ -387,10 +394,8 @@},"model": {"title": "Modelo",- "descriptionApple": "Proporciona un límite de tokens numérico opcional o mantén el preajuste predeterminado en el dispositivo.","descriptionCustom": "Proporciona el identificador del modelo esperado por tu endpoint personalizado.","descriptionDefault": "Elige un modelo expuesto por el proveedor seleccionado.",- "placeholderApple": "Apple Intelligence","placeholderWithOptions": "Buscar o seleccionar un modelo","placeholderNoOptions": "Escribe un nombre de modelo","refreshModels": "Actualizar modelos"@@ -518,6 +523,13 @@"recordingBuffer": {"title": "Búfer de grabación adicional","description": "Tiempo adicional (en milisegundos) para seguir grabando después de soltar la tecla, para capturar el audio restante. 0 = sin búfer adicional."+ },+ "whatsNewPreview": {+ "title": "Vista previa de novedades",+ "description": "Abrir la nota de la versión incluida más reciente sin marcarla como vista",+ "button": "Vista previa",+ "noNotes": "No se encontraron notas de la versión incluidas",+ "error": "No se pudo mostrar la vista previa de las notas de la versión"}},"about": {@@ -542,60 +554,43 @@},"acknowledgments": {"title": "Reconocimientos",- "whisper": {- "title": "Whisper.cpp",+ "ggml": {+ "title": "ggml","description": "Inferencia de alto rendimiento del modelo de reconocimiento automático de voz Whisper de OpenAI",- "details": "Handy usa Whisper.cpp para procesamiento de voz a texto rápido y local. Gracias al increíble trabajo de Georgi Gerganov y colaboradores."+ "details": "Handy usa ggml para procesamiento de voz a texto rápido y local. Gracias al increíble trabajo de Georgi Gerganov y colaboradores."}+ },+ "whatsNewUpdates": {+ "label": "Mostrar novedades",+ "description": "Mostrar notas de la versión después de las actualizaciones de Handy"}}},"footer": {- "downloadingModel": "Descargando {{model}}...","checkingUpdates": "Buscando actualizaciones...",- "updateAvailable": "Actualización disponible: {{version}}","updateAvailableShort": "Actualización disponible","upToDate": "Actualizado",- "downloadUpdate": "Descargar Actualización",- "restart": "Reiniciar","updateCheckingDisabled": "Búsqueda de Actualizaciones Deshabilitada","downloading": "Descargando... {{progress}}%","installing": "Instalando...","preparing": "Preparando...","checkForUpdates": "Buscar actualizaciones",- "portableUpdateTitle": "Manual update required",- "portableUpdateMessage": "Portable installs cannot be updated automatically. To update: download the latest NSIS installer from GitHub Releases, install it to the same folder, then copy your Data/ folder (settings, models, recordings) from the old version to the new one.",- "portableUpdateButton": "Open GitHub Releases"+ "portableUpdateTitle": "Actualización manual necesaria",+ "portableUpdateMessage": "Las instalaciones portátiles no se pueden actualizar automáticamente. Para actualizar: descarga el instalador NSIS más reciente desde GitHub Releases, instálalo en la misma carpeta y luego copia tu carpeta Data/ (ajustes, modelos, grabaciones) de la versión anterior a la nueva.",+ "portableUpdateButton": "Abrir GitHub Releases"},"common": {"loading": "Cargando...",- "save": "Guardar",- "cancel": "Cancelar",- "reset": "Restablecer",- "add": "Agregar",- "remove": "Eliminar","delete": "Eliminar",- "edit": "Editar",- "create": "Crear",- "update": "Actualizar","close": "Cerrar","open": "Abrir","copy": "Copiar","clear": "Limpiar",- "default": "Predeterminado",- "enabled": "Habilitado",- "disabled": "Deshabilitado",- "on": "Activado",- "off": "Desactivado",- "yes": "Sí",- "no": "No","noOptionsFound": "No se encontraron opciones"},"accessibility": {- "permissionsRequired": "Se Requieren Permisos de Accesibilidad","permissionsDescription": "Handy necesita permisos de accesibilidad para escribir texto transcrito.",- "openSettings": "Abrir Ajustes del Sistema",- "dismiss": "Descartar"+ "openSettings": "Abrir Ajustes del Sistema"},"errors": {"loadDirectory": "Error al cargar el directorio: {{error}}",@@ -612,7 +607,8 @@"modelLoadFailed": "Error al cargar el modelo: {{model}}","modelLoadFailedUnknown": "modelo desconocido","pasteFailedTitle": "Error al pegar el texto",- "pasteFailed": "No se pudo pegar el texto en la aplicación activa."+ "pasteFailed": "No se pudo pegar el texto en la aplicación activa.",+ "transcriptionFailedTitle": "Error de transcripción"},"appLanguage": {"title": "Idioma de la aplicación",@@ -621,5 +617,8 @@"overlay": {"transcribing": "Transcribiendo...","processing": "Procesando..."+ },+ "whatsNew": {+ "title": "Nuevo en Handy v{{version}}"}}diff --git a/src/i18n/locales/fr/translation.json b/src/i18n/locales/fr/translation.jsonindex 0625ff6f..da1612eb 100644--- a/src/i18n/locales/fr/translation.json+++ b/src/i18n/locales/fr/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "Pour commencer, choisissez un modèle de transcription",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "Recommandé",- "download": "Télécharger",- "downloading": "Téléchargement...","customModelDescription": "Non officiellement pris en charge",- "downloadFailed": "Échec du téléchargement. Veuillez réessayer.","modelCard": {"accuracy": "précision","speed": "vitesse"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "Échec du chargement des modèles disponibles",- "downloadModel": "Échec du téléchargement du modèle : {{error}}"+ "selectModel": "Failed to select model"},"permissions": {"title": "Autorisations requises",@@ -121,6 +121,7 @@},"modelSelector": {"custom": "Personnalisé",+ "streaming": "Streaming","active": "Actif","switching": "Changement...","noModelsAvailable": "Aucun modèle disponible",@@ -141,37 +142,38 @@"downloadSpeed": "{{speed}} Mo/s","capabilities": {"languageSelection": "Prend en charge plusieurs langues d'entrée",- "multiLanguage": "Multilingue",+ "languageCount": "{{total}} languages","translation": "Peut traduire en anglais","translate": "Traduire en anglais","singleLanguage": "Prend en charge uniquement cette langue",- "languageOnly": "{{language}} uniquement"+ "languageOnly": "{{language}} uniquement",+ "streaming": "Affiche la transcription en direct pendant que vous parlez"},"cancel": "Annuler",- "cancelDownload": "Annuler le téléchargement"+ "cancelDownload": "Annuler le téléchargement",+ "legacy": "Hérité"},"settings": {"modelSettings": {- "title": "Paramètres de {{model}}",- "noSettingsNeeded": "Ce modèle fonctionne automatiquement sans configuration nécessaire."+ "title": "Paramètres de {{model}}"},"models": {"title": "Modèles de Transcription","description": "Sélectionnez un modèle de transcription ou téléchargez des modèles supplémentaires. Différents modèles offrent différents niveaux de précision et de vitesse.",- "downloaded": "Téléchargés",- "available": "Disponibles au Téléchargement","deleteConfirm": "Êtes-vous sûr de vouloir supprimer {{modelName}} ? Vous devrez le télécharger à nouveau pour l'utiliser.","deleteActiveConfirm": "{{modelName}} est votre modèle actif. Le supprimer arrêtera les transcriptions jusqu'à ce que vous sélectionniez un nouveau modèle. Êtes-vous sûr ?","deleteTitle": "Supprimer le modèle","filters": {- "all": "Tous",- "multiLanguage": "Multilingue",- "translation": "Traduction","allLanguages": "Toutes les langues"},"noModelsMatch": "Aucun modèle ne correspond à ce filtre.","yourModels": "Modèles téléchargés",- "availableModels": "Disponibles au téléchargement"+ "availableModels": "Disponibles au téléchargement",+ "searchPlaceholder": "Rechercher des modèles par nom…",+ "rescan": {+ "label": "Réanalyser",+ "tooltip": "Réanalyser pour détecter les modèles ajoutés au dossier des modèles ou au cache Hugging Face en dehors de Handy"+ }},"general": {"title": "Général",@@ -205,7 +207,6 @@"language": {"title": "Langue","description": "Sélectionnez la langue pour la reconnaissance vocale. Auto déterminera automatiquement la langue, tandis que sélectionner une langue spécifique peut améliorer la précision pour cette langue.",- "descriptionUnsupported": "Le modèle Parakeet détecte automatiquement la langue. Aucune sélection manuelle n'est nécessaire.","searchPlaceholder": "Rechercher des langues...","noResults": "Aucune langue trouvée","auto": "Auto"@@ -239,7 +240,6 @@}},"advanced": {- "title": "Avancé","groups": {"app": "Application","output": "Sortie",@@ -256,7 +256,7 @@"description": "Maintient le flux du microphone ouvert pendant 30 secondes après l'arrêt de l'enregistrement, réduisant la latence pour les transcriptions consécutives. Peut dégrader la qualité audio Bluetooth."},"acceleration": {- "whisper": {+ "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)."},@@ -265,8 +265,6 @@"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."},"gpuDevice": {- "title": "Appareil GPU",- "description": "Sélectionnez le GPU à utiliser pour l'inférence Whisper. Auto choisit le GPU dédié.","auto": "Auto"}},@@ -283,12 +281,22 @@"description": "Afficher l'icône de Handy dans la barre système."},"overlay": {- "title": "Position de la fenêtre d'enregistrement",- "description": "Afficher un retour visuel pendant l'enregistrement et la transcription. Sur Linux, 'Aucune' est recommandé.",- "options": {- "none": "Aucune",- "bottom": "Bas",- "top": "Haut"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "Aucune",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "Position de la fenêtre d'enregistrement",+ "description": "Afficher un retour visuel pendant l'enregistrement et la transcription. Sur Linux, 'Aucune' est recommandé.",+ "options": {+ "bottom": "Bas",+ "top": "Haut"+ }}},"pasteMethod": {@@ -332,8 +340,7 @@},"translateToEnglish": {"label": "Traduire en anglais",- "description": "Traduire automatiquement la parole d'autres langues vers l'anglais pendant la transcription.",- "descriptionUnsupported": "La traduction n'est pas prise en charge par le modèle {{model}}."+ "description": "Traduire automatiquement la parole d'autres langues vers l'anglais pendant la transcription."},"modelUnload": {"title": "Décharger le modèle",@@ -356,10 +363,13 @@"add": "Ajouter","remove": "Supprimer {{word}}","duplicate": "\"{{word}}\" existe déjà"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "Post-traitement","hotkey": {"title": "Raccourci clavier"},@@ -370,9 +380,6 @@"description": "Sélectionnez un fournisseur compatible OpenAI."},"appleIntelligence": {- "title": "Apple Intelligence",- "description": "Fonctionne entièrement sur l'appareil. Aucune clé API ni accès réseau n'est requis.",- "requirements": "Nécessite un Mac Apple Silicon exécutant macOS Tahoe (26.0) ou une version ultérieure. Apple Intelligence doit être activé dans les Préférences Système.","unavailable": "Apple Intelligence n'est pas disponible sur cet appareil. Nécessite un Mac Apple Silicon exécutant macOS Tahoe (26.0) ou une version ultérieure avec Apple Intelligence activé dans les Préférences Système."},"baseUrl": {@@ -387,10 +394,8 @@},"model": {"title": "Modèle",- "descriptionApple": "Fournissez une limite de tokens optionnelle ou conservez le préréglage par défaut sur l'appareil.","descriptionCustom": "Fournissez l'identifiant du modèle attendu par votre point de terminaison personnalisé.","descriptionDefault": "Choisissez un modèle exposé par le fournisseur sélectionné.",- "placeholderApple": "Apple Intelligence","placeholderWithOptions": "Rechercher ou sélectionner un modèle","placeholderNoOptions": "Tapez un nom de modèle","refreshModels": "Actualiser les modèles"@@ -518,6 +523,13 @@"recordingBuffer": {"title": "Tampon d'enregistrement supplémentaire","description": "Temps supplémentaire (en millisecondes) pour continuer l'enregistrement après avoir relâché la touche, pour capturer l'audio restant. 0 = pas de tampon supplémentaire."+ },+ "whatsNewPreview": {+ "title": "Aperçu des nouveautés",+ "description": "Ouvrir la dernière note de version intégrée sans la marquer comme vue",+ "button": "Aperçu",+ "noNotes": "Aucune note de version intégrée trouvée",+ "error": "Impossible d’afficher l’aperçu des notes de version"}},"about": {@@ -542,60 +554,43 @@},"acknowledgments": {"title": "Remerciements",- "whisper": {- "title": "Whisper.cpp",+ "ggml": {+ "title": "ggml","description": "Inférence haute performance du modèle de reconnaissance vocale automatique Whisper d'OpenAI",- "details": "Handy utilise Whisper.cpp pour un traitement rapide et local de la parole en texte. Merci au travail incroyable de Georgi Gerganov et des contributeurs."+ "details": "Handy utilise ggml pour un traitement rapide et local de la parole en texte. Merci au travail incroyable de Georgi Gerganov et des contributeurs."}+ },+ "whatsNewUpdates": {+ "label": "Afficher les nouveautés",+ "description": "Afficher les notes de version après les mises à jour de Handy"}}},"footer": {- "downloadingModel": "Téléchargement de {{model}}...","checkingUpdates": "Recherche de mises à jour...",- "updateAvailable": "Mise à jour disponible : {{version}}","updateAvailableShort": "Mise à jour disponible","upToDate": "À jour",- "downloadUpdate": "Télécharger la mise à jour",- "restart": "Redémarrer","updateCheckingDisabled": "Vérification des mises à jour désactivée","downloading": "Téléchargement... {{progress}}%","installing": "Installation...","preparing": "Préparation...","checkForUpdates": "Rechercher des mises à jour",- "portableUpdateTitle": "Manual update required",- "portableUpdateMessage": "Portable installs cannot be updated automatically. To update: download the latest NSIS installer from GitHub Releases, install it to the same folder, then copy your Data/ folder (settings, models, recordings) from the old version to the new one.",- "portableUpdateButton": "Open GitHub Releases"+ "portableUpdateTitle": "Mise à jour manuelle requise",+ "portableUpdateMessage": "Les installations portables ne peuvent pas être mises à jour automatiquement. Pour mettre à jour : téléchargez le dernier installateur NSIS depuis GitHub Releases, installez-le dans le même dossier, puis copiez votre dossier Data/ (paramètres, modèles, enregistrements) de l’ancienne version vers la nouvelle.",+ "portableUpdateButton": "Ouvrir GitHub Releases"},"common": {"loading": "Chargement...",- "save": "Enregistrer",- "cancel": "Annuler",- "reset": "Réinitialiser",- "add": "Ajouter",- "remove": "Supprimer","delete": "Supprimer",- "edit": "Modifier",- "create": "Créer",- "update": "Mettre à jour","close": "Fermer","open": "Ouvrir","copy": "Copier","clear": "Effacer",- "default": "Par défaut",- "enabled": "Activé",- "disabled": "Désactivé",- "on": "Activé",- "off": "Désactivé",- "yes": "Oui",- "no": "Non","noOptionsFound": "Aucune option trouvée"},"accessibility": {- "permissionsRequired": "Autorisations d'accessibilité requises","permissionsDescription": "Handy a besoin des autorisations d'accessibilité pour taper le texte transcrit.",- "openSettings": "Ouvrir les Préférences Système",- "dismiss": "Ignorer"+ "openSettings": "Ouvrir les Préférences Système"},"errors": {"loadDirectory": "Erreur lors du chargement du répertoire : {{error}}",@@ -612,7 +607,8 @@"modelLoadFailed": "Échec du chargement du modèle : {{model}}","modelLoadFailedUnknown": "modèle inconnu","pasteFailedTitle": "Échec du collage du texte",- "pasteFailed": "Le texte n'a pas pu être collé dans l'application active."+ "pasteFailed": "Le texte n'a pas pu être collé dans l'application active.",+ "transcriptionFailedTitle": "Échec de la transcription"},"appLanguage": {"title": "Langue de l'application",@@ -621,5 +617,8 @@"overlay": {"transcribing": "Transcription...","processing": "Traitement..."+ },+ "whatsNew": {+ "title": "Nouveautés de Handy v{{version}}"}}diff --git a/src/i18n/locales/he/translation.json b/src/i18n/locales/he/translation.jsonindex ac7eb13d..ec8da91d 100644--- a/src/i18n/locales/he/translation.json+++ b/src/i18n/locales/he/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "כדי להתחיל, בחר מודל תמלול",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "מומלץ",- "download": "הורדה",- "downloading": "מוריד...","customModelDescription": "לא נתמך באופן רשמי",- "downloadFailed": "ההורדה נכשלה. נסה שוב.","modelCard": {"accuracy": "דיוק","speed": "מהירות"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "טעינת המודלים הזמינים נכשלה",- "downloadModel": "הורדת המודל נכשלה: {{error}}"+ "selectModel": "Failed to select model"},"permissions": {"title": "נדרשות הרשאות",@@ -121,6 +121,7 @@},"modelSelector": {"custom": "מותאם אישית",+ "streaming": "סטרימינג","active": "פעיל","switching": "מחליף...","noModelsAvailable": "אין מודלים זמינים",@@ -144,16 +145,17 @@"capabilities": {"languageSelection": "תומך בכמה שפות קלט","singleLanguage": "תומך רק בשפה הזו",- "multiLanguage": "רב-לשוני",+ "languageCount": "{{total}} languages","languageOnly": "{{language}} בלבד","translation": "יכול לתרגם לאנגלית",- "translate": "תרגם לאנגלית"- }+ "translate": "תרגם לאנגלית",+ "streaming": "מציג תמלול חי תוך כדי דיבור"+ },+ "legacy": "מדור קודם"},"settings": {"modelSettings": {- "title": "הגדרות עבור {{model}}",- "noSettingsNeeded": "המודל הזה עובד אוטומטית ולא דורש הגדרה נוספת."+ "title": "הגדרות עבור {{model}}"},"general": {"title": "כללי",@@ -187,7 +189,6 @@"language": {"title": "שפה","description": "בחר את שפת זיהוי הדיבור. מצב אוטומטי יזהה את השפה לבד, בעוד שבחירת שפה מסוימת יכולה לשפר את הדיוק עבורה.",- "descriptionUnsupported": "מודל Parakeet מזהה את השפה אוטומטית. אין צורך בבחירה ידנית.","searchPlaceholder": "חפש שפות...","noResults": "לא נמצאו שפות","auto": "אוטומטי"@@ -202,18 +203,18 @@"description": "בחר מודל תמלול או הורד מודלים נוספים. מודלים שונים מציעים רמות שונות של דיוק ומהירות.","yourModels": "מודלים שהורדו","availableModels": "זמינים להורדה",- "downloaded": "הורד",- "available": "זמין להורדה","deleteConfirm": "האם למחוק את {{modelName}}? יהיה צורך להוריד אותו שוב כדי להשתמש בו.","deleteActiveConfirm": "{{modelName}} הוא המודל הפעיל שלך כרגע. מחיקה שלו תעצור את התמלול עד שתבחר מודל חדש. להמשיך?","deleteTitle": "מחיקת מודל","filters": {- "all": "הכול",- "multiLanguage": "רב-לשוני",- "translation": "תרגום","allLanguages": "כל השפות"},- "noModelsMatch": "אין מודלים שמתאימים לסינון הזה."+ "noModelsMatch": "אין מודלים שמתאימים לסינון הזה.",+ "searchPlaceholder": "חיפוש מודלים לפי שם…",+ "rescan": {+ "label": "סריקה מחדש",+ "tooltip": "סריקה מחדש לאיתור מודלים שנוספו לתיקיית המודלים או למטמון של Hugging Face מחוץ ל-Handy"+ }},"sound": {"title": "שמע",@@ -239,7 +240,6 @@}},"advanced": {- "title": "מתקדם","groups": {"app": "אפליקציה","output": "פלט",@@ -256,7 +256,7 @@"description": "משאיר את זרם המיקרופון פתוח למשך 30 שניות אחרי סיום ההקלטה, וכך מפחית השהיה בתמלולים רצופים. עשוי לפגוע באיכות שמע Bluetooth בזמן שהאפשרות פעילה."},"acceleration": {- "whisper": {+ "transcribe": {"title": "האצת Whisper","description": "האצת חומרה למודלי Whisper. מצב אוטומטי משתמש ב-GPU אם זמין (Metal ב-macOS, Vulkan ב-Windows/Linux)."},@@ -265,8 +265,6 @@"description": "האצת חומרה למודלי ONNX (Parakeet, Canary, Moonshine ועוד). DirectML ב-Windows הוא ניסיוני. ייתכן שמודלים ייכשלו בתמלול."},"gpuDevice": {- "title": "התקן GPU",- "description": "בחר באיזה GPU להשתמש עבור הסקת Whisper. מצב אוטומטי בוחר את ה-GPU הייעודי.","auto": "אוטומטי"}},@@ -283,12 +281,22 @@"description": "הצג את האייקון של Handy במגש המערכת."},"overlay": {- "title": "מיקום שכבת המשוב",- "description": "הצג שכבת משוב חזותית בזמן הקלטה ותמלול. בלינוקס מומלץ לבחור 'ללא'.",- "options": {- "none": "ללא",- "bottom": "למטה",- "top": "למעלה"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "ללא",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "מיקום שכבת המשוב",+ "description": "הצג שכבת משוב חזותית בזמן הקלטה ותמלול. בלינוקס מומלץ לבחור 'ללא'.",+ "options": {+ "bottom": "למטה",+ "top": "למעלה"+ }}},"pasteMethod": {@@ -332,8 +340,7 @@},"translateToEnglish": {"label": "תרגם לאנגלית",- "description": "תרגם אוטומטית דיבור משפות אחרות לאנגלית בזמן התמלול.",- "descriptionUnsupported": "המודל {{model}} לא תומך בתרגום."+ "description": "תרגם אוטומטית דיבור משפות אחרות לאנגלית בזמן התמלול."},"modelUnload": {"title": "פרוק מודל",@@ -356,10 +363,13 @@"add": "הוסף","remove": "הסר את {{word}}","duplicate": "\"{{word}}\" כבר קיימת"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "עיבוד משלים","hotkey": {"title": "קיצור מקשים"},@@ -370,13 +380,10 @@"description": "בחר ספק שתואם ל-OpenAI."},"appleIntelligence": {- "title": "Apple Intelligence",- "description": "רץ כולו על המכשיר. לא נדרש מפתח API או חיבור רשת.",- "requirements": "דורש Mac עם Apple Silicon שמריץ macOS Tahoe (26.0) ומעלה. Apple Intelligence חייב להיות מופעל בהגדרות המערכת.","unavailable": "Apple Intelligence לא זמין במכשיר הזה. נדרש Mac עם Apple Silicon שמריץ macOS Tahoe (26.0) ומעלה, עם Apple Intelligence מופעל בהגדרות המערכת."},"baseUrl": {- "title": "Base URL",+ "title": "כתובת URL בסיסית","description": "כתובת ה-API הבסיסית עבור הספק הנבחר. רק ספק מותאם אישית ניתן לעריכה.","placeholder": "https://api.openai.com/v1"},@@ -387,10 +394,8 @@},"model": {"title": "מודל",- "descriptionApple": "ספק מגבלת טוקנים מספרית אופציונלית או השאר את ברירת המחדל שעל המכשיר.","descriptionCustom": "ספק את מזהה המודל שה-endpoint המותאם שלך מצפה לו.","descriptionDefault": "בחר מודל שהספק הנבחר חושף.",- "placeholderApple": "Apple Intelligence","placeholderWithOptions": "חפש או בחר מודל","placeholderNoOptions": "הקלד שם מודל","refreshModels": "רענן מודלים"@@ -518,6 +523,13 @@"recordingBuffer": {"title": "באפר הקלטה נוסף","description": "זמן נוסף (במילישניות) להמשך הקלטה אחרי שחרור המקש, כדי ללכוד סוף דיבור. 0 = בלי באפר נוסף."+ },+ "whatsNewPreview": {+ "title": "תצוגה מקדימה של מה חדש",+ "description": "פתח את הערת הגרסה המצורפת האחרונה בלי לסמן אותה כנצפתה",+ "button": "תצוגה מקדימה",+ "noNotes": "לא נמצאו הערות גרסה מצורפות",+ "error": "הצגת התצוגה המקדימה של הערות הגרסה נכשלה"}},"about": {@@ -542,22 +554,22 @@},"acknowledgments": {"title": "תודות",- "whisper": {- "title": "Whisper.cpp",+ "ggml": {+ "title": "ggml","description": "הסקה מהירה לביצועים גבוהים עבור מודל זיהוי הדיבור Whisper של OpenAI",- "details": "Handy משתמש ב-Whisper.cpp לתמלול מהיר ומקומי. תודה לעבודה המדהימה של Georgi Gerganov וכל התורמים."+ "details": "Handy משתמש ב-ggml לתמלול מהיר ומקומי. תודה לעבודה המדהימה של Georgi Gerganov וכל התורמים."}+ },+ "whatsNewUpdates": {+ "label": "הצג מה חדש",+ "description": "הצג הערות גרסה לאחר עדכוני Handy"}}},"footer": {- "downloadingModel": "מוריד את {{model}}...","checkingUpdates": "בודק עדכונים...",- "updateAvailable": "יש עדכון זמין: {{version}}","updateAvailableShort": "יש עדכון זמין","upToDate": "מעודכן",- "downloadUpdate": "הורד עדכון",- "restart": "הפעל מחדש","updateCheckingDisabled": "בדיקת העדכונים כבויה","downloading": "מוריד... {{progress}}%","installing": "מתקין...",@@ -569,33 +581,16 @@},"common": {"loading": "טוען...",- "save": "שמור",- "cancel": "ביטול",- "reset": "איפוס",- "add": "הוסף",- "remove": "הסר","delete": "מחק",- "edit": "ערוך",- "create": "צור",- "update": "עדכן","close": "סגור","open": "פתח","copy": "העתק","clear": "נקה",- "default": "ברירת מחדל",- "enabled": "פעיל",- "disabled": "כבוי",- "on": "פועל",- "off": "כבוי",- "yes": "כן",- "no": "לא","noOptionsFound": "לא נמצאו אפשרויות"},"accessibility": {- "permissionsRequired": "נדרשות הרשאות נגישות","permissionsDescription": "Handy צריך הרשאות נגישות כדי להקליד את הטקסט המתומלל.",- "openSettings": "פתח את הגדרות המערכת",- "dismiss": "סגור"+ "openSettings": "פתח את הגדרות המערכת"},"errors": {"loadDirectory": "שגיאה בטעינת תיקייה: {{error}}",@@ -612,7 +607,8 @@"modelLoadFailed": "טעינת המודל נכשלה: {{model}}","modelLoadFailedUnknown": "מודל לא ידוע","pasteFailedTitle": "ההדבקה נכשלה",- "pasteFailed": "לא ניתן היה להדביק את הטקסט ביישום הפעיל."+ "pasteFailed": "לא ניתן היה להדביק את הטקסט ביישום הפעיל.",+ "transcriptionFailedTitle": "התמלול נכשל"},"appLanguage": {"title": "שפת האפליקציה",@@ -621,5 +617,8 @@"overlay": {"transcribing": "מתמלל...","processing": "מעבד..."+ },+ "whatsNew": {+ "title": "חדש ב-Handy v{{version}}"}}diff --git a/src/i18n/locales/it/translation.json b/src/i18n/locales/it/translation.jsonindex f57b357c..bc451e8d 100644--- a/src/i18n/locales/it/translation.json+++ b/src/i18n/locales/it/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "Per cominciare, scegli un modello di riconoscimento vocale",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "Raccomandato",- "download": "Scarica",- "downloading": "Download in corso...","customModelDescription": "Non ufficialmente supportato",- "downloadFailed": "Download fallito. Riprova.","modelCard": {"accuracy": "accuratezza","speed": "velocità"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "Errore di caricamento dei modelli disponibili",- "downloadModel": "Errore nel download del modello: {{error}}"+ "selectModel": "Failed to select model"},"permissions": {"title": "Permessi Richiesti",@@ -121,6 +121,7 @@},"modelSelector": {"custom": "Personalizzato",+ "streaming": "Streaming","active": "Attivo","switching": "Cambio...","noModelsAvailable": "Nessun modello disponibile",@@ -141,37 +142,38 @@"downloadSpeed": "{{speed}} MB/s","capabilities": {"languageSelection": "Supporta più lingue di input",- "multiLanguage": "Multilingua",+ "languageCount": "{{total}} languages","translation": "Può tradurre in inglese","translate": "Traduci in inglese","singleLanguage": "Supporta solo questa lingua",- "languageOnly": "Solo {{language}}"+ "languageOnly": "Solo {{language}}",+ "streaming": "Mostra la trascrizione in tempo reale mentre parli"},"cancel": "Annulla",- "cancelDownload": "Annulla download"+ "cancelDownload": "Annulla download",+ "legacy": "Obsoleto"},"settings": {"modelSettings": {- "title": "Impostazioni di {{model}}",- "noSettingsNeeded": "Questo modello funziona automaticamente senza bisogno di configurazione."+ "title": "Impostazioni di {{model}}"},"models": {"title": "Modelli di Trascrizione","description": "Seleziona un modello di trascrizione o scarica modelli aggiuntivi. Diversi modelli offrono diversi livelli di accuratezza e velocità.",- "downloaded": "Scaricati",- "available": "Disponibili per il Download","deleteConfirm": "Sei sicuro di voler eliminare {{modelName}}? Dovrai scaricarlo di nuovo per usarlo.","deleteActiveConfirm": "{{modelName}} è il tuo modello attivo. Eliminarlo interromperà le trascrizioni fino a quando non selezionerai un nuovo modello. Sei sicuro?","deleteTitle": "Elimina modello","filters": {- "all": "Tutti",- "multiLanguage": "Multilingua",- "translation": "Traduzione","allLanguages": "Tutte le lingue"},"noModelsMatch": "Nessun modello corrisponde a questo filtro.","yourModels": "Modelli scaricati",- "availableModels": "Disponibili per il Download"+ "availableModels": "Disponibili per il Download",+ "searchPlaceholder": "Cerca modelli per nome…",+ "rescan": {+ "label": "Riscansiona",+ "tooltip": "Riscansiona per trovare modelli aggiunti alla cartella dei modelli o alla cache di Hugging Face al di fuori di Handy"+ }},"general": {"title": "Generale",@@ -205,7 +207,6 @@"language": {"title": "Lingua","description": "Scegli la lingua per il riconoscimento vocale. Auto la determinerà automaticamente, mentre scegliere una lingua specifica può migliorare l'accuratezza per quella lingua.",- "descriptionUnsupported": "Il modello Parakeet sceglie automaticamente la lingua. Non serve scegliere manualmente.","searchPlaceholder": "Cerca lingue...","noResults": "Nessuna lingua trovata","auto": "Auto"@@ -239,7 +240,6 @@}},"advanced": {- "title": "Avanzate","groups": {"app": "App","output": "Output",@@ -256,7 +256,7 @@"description": "Mantiene lo stream del microfono aperto per 30 secondi dopo l'arresto della registrazione, riducendo la latenza per trascrizioni consecutive. Potrebbe degradare la qualità audio Bluetooth."},"acceleration": {- "whisper": {+ "transcribe": {"title": "Accelerazione Whisper","description": "Accelerazione hardware per i modelli Whisper. Auto utilizza la GPU se disponibile (Metal su macOS, Vulkan su Windows/Linux)."},@@ -265,8 +265,6 @@"description": "Accelerazione hardware per i modelli ONNX (Parakeet, Canary, Moonshine, ecc.). DirectML su Windows è sperimentale. I modelli potrebbero non riuscire a trascrivere."},"gpuDevice": {- "title": "Dispositivo GPU",- "description": "Seleziona quale GPU utilizzare per l'inferenza Whisper. Auto sceglie la GPU dedicata.","auto": "Auto"}},@@ -283,12 +281,22 @@"description": "Mostra l'icona di Handy nella barra di sistema."},"overlay": {- "title": "Posizione della Sovrimpressione",- "description": "Mostra un feedback visivo in sovrimpressione durante la registrazione e la trascrizione. Su Linux si raccomanda 'Nessuna'.",- "options": {- "none": "Nessuna",- "bottom": "In basso",- "top": "In alto"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "Nessuna",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "Posizione della Sovrimpressione",+ "description": "Mostra un feedback visivo in sovrimpressione durante la registrazione e la trascrizione. Su Linux si raccomanda 'Nessuna'.",+ "options": {+ "bottom": "In basso",+ "top": "In alto"+ }}},"pasteMethod": {@@ -332,8 +340,7 @@},"translateToEnglish": {"label": "Traduci in inglese",- "description": "Traduci automaticamente in inglese la voce in altre lingue durante la trascrizione.",- "descriptionUnsupported": "La traduzione non è supportata dal modello {{model}}."+ "description": "Traduci automaticamente in inglese la voce in altre lingue durante la trascrizione."},"modelUnload": {"title": "Disattiva Model",@@ -356,10 +363,13 @@"add": "Aggiungi","remove": "Rimuovi {{word}}","duplicate": "\"{{word}}\" esiste già"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "Post-Elaborazione","hotkey": {"title": "Tasto di scelta rapida"},@@ -370,9 +380,6 @@"description": "Seleziona un provider compatibile con OpenAI."},"appleIntelligence": {- "title": "Apple Intelligence",- "description": "Si esegue completamente in locale. Non è necessaria una chiave API né l'accesso alla rete.",- "requirements": "Necessita di un Mac con Apple Silicon e macOS Tahoe (26.0) o successivi. Apple Intelligence deve essere abilitata nelle Impostazioni di Sistema.","unavailable": "Apple Intelligence non è disponibile su questo dispositivo. Necessita di un Mac con Apple Silicon e macOS Tahoe (26.0) o successivi con Apple Intelligence abilitata nelle Impostazioni di Sistema."},"baseUrl": {@@ -387,10 +394,8 @@},"model": {"title": "Modello",- "descriptionApple": "Fornisci un limite numerico facoltativo per i token o mantieni l'impostazione predefinita sul dispositivo.","descriptionCustom": "Fornisci l'identificatore del modello previsto dal tuo endpoint personalizzato.","descriptionDefault": "Scegli un modello reso disponibile dal provider selezionato.",- "placeholderApple": "Apple Intelligence","placeholderWithOptions": "Cerca o scegli un modello","placeholderNoOptions": "Digita il nome di un modello","refreshModels": "Aggiorna modelli"@@ -518,6 +523,13 @@"recordingBuffer": {"title": "Buffer di registrazione extra","description": "Tempo extra (in millisecondi) per continuare a registrare dopo aver rilasciato il tasto, per catturare l'audio finale. 0 = nessun buffer extra."+ },+ "whatsNewPreview": {+ "title": "Anteprima delle novità",+ "description": "Apri le note di rilascio incluse più recenti senza segnarle come viste",+ "button": "Anteprima",+ "noNotes": "Nessuna nota di rilascio inclusa trovata",+ "error": "Impossibile mostrare l'anteprima delle note di rilascio"}},"about": {@@ -542,22 +554,22 @@},"acknowledgments": {"title": "Ringraziamenti",- "whisper": {- "title": "Whisper.cpp",+ "ggml": {+ "title": "ggml","description": "Inferenza ad alte prestazioni del modello di riconoscimento vocale automatico Whisper di OpenAI",- "details": "Handy usa Whisper.cpp per il riconoscimento vocale veloce in locale. Grazie a Georgi Gerganov e collaboratori per il fantastico lavoro."+ "details": "Handy usa ggml per il riconoscimento vocale veloce in locale. Grazie a Georgi Gerganov e collaboratori per il fantastico lavoro."}+ },+ "whatsNewUpdates": {+ "label": "Mostra novità",+ "description": "Mostra le note di rilascio dopo gli aggiornamenti di Handy"}}},"footer": {- "downloadingModel": "Download di {{model}}...","checkingUpdates": "Controllo aggiornamenti...",- "updateAvailable": "Aggiornamento disponibile: {{version}}","updateAvailableShort": "Aggiornamento disponibile","upToDate": "Aggiornato",- "downloadUpdate": "Scarica Aggiornamento",- "restart": "Riavvia","updateCheckingDisabled": "Controllo Aggiornamenti Disabilitato","downloading": "Download... {{progress}}%","installing": "Installazione...",@@ -569,33 +581,16 @@},"common": {"loading": "Caricamento...",- "save": "Salva",- "cancel": "Annulla",- "reset": "Reimposta",- "add": "Aggiungi",- "remove": "Rimuovi","delete": "Elimina",- "edit": "Modifica",- "create": "Crea",- "update": "Aggiorna","close": "Chiudi","open": "Apri","copy": "Copia","clear": "Svuota",- "default": "Predefinito",- "enabled": "Abilitato",- "disabled": "Disabilitato",- "on": "On",- "off": "Off",- "yes": "Sì",- "no": "No","noOptionsFound": "Nessuna opzione trovata"},"accessibility": {- "permissionsRequired": "Richiesti Permessi di Accessibilità","permissionsDescription": "Handy ha bisogno dei permessi di accessibilità per digitare il testo trascritto.",- "openSettings": "Apri Impostazioni di Sistema",- "dismiss": "Ignora"+ "openSettings": "Apri Impostazioni di Sistema"},"errors": {"loadDirectory": "Errore di caricamento cartella: {{error}}",@@ -612,7 +607,8 @@"modelLoadFailed": "Impossibile caricare il modello: {{model}}","modelLoadFailedUnknown": "modello sconosciuto","pasteFailedTitle": "Impossibile incollare il testo",- "pasteFailed": "Non è stato possibile incollare il testo nell'applicazione attiva."+ "pasteFailed": "Non è stato possibile incollare il testo nell'applicazione attiva.",+ "transcriptionFailedTitle": "Trascrizione non riuscita"},"appLanguage": {"title": "Lingua Applicazione",@@ -621,5 +617,8 @@"overlay": {"transcribing": "Trascrizione...","processing": "Elaborazione..."+ },+ "whatsNew": {+ "title": "Novità in Handy v{{version}}"}}diff --git a/src/i18n/locales/ja/translation.json b/src/i18n/locales/ja/translation.jsonindex d5c2b8c1..2b66c536 100644--- a/src/i18n/locales/ja/translation.json+++ b/src/i18n/locales/ja/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "開始するには、文字起こしモデルを選択してください",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "おすすめ",- "download": "ダウンロード",- "downloading": "ダウンロード中...","customModelDescription": "公式サポート対象外",- "downloadFailed": "ダウンロードに失敗しました。もう一度お試しください。","modelCard": {"accuracy": "精度","speed": "速度"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "利用可能なモデルの読み込みに失敗しました",- "downloadModel": "モデルのダウンロードに失敗しました: {{error}}"+ "selectModel": "Failed to select model"},"permissions": {"title": "権限が必要です",@@ -121,6 +121,7 @@},"modelSelector": {"custom": "カスタム",+ "streaming": "ストリーミング","active": "アクティブ","switching": "切替中...","noModelsAvailable": "利用可能なモデルがありません",@@ -141,37 +142,38 @@"downloadSpeed": "{{speed}} MB/s","capabilities": {"languageSelection": "複数の入力言語をサポート",- "multiLanguage": "多言語",+ "languageCount": "{{total}} languages","translation": "英語への翻訳が可能","translate": "英語に翻訳","singleLanguage": "この言語のみ対応",- "languageOnly": "{{language}}のみ"+ "languageOnly": "{{language}}のみ",+ "streaming": "話しながらリアルタイムで転写を表示"},"cancel": "キャンセル",- "cancelDownload": "ダウンロードをキャンセル"+ "cancelDownload": "ダウンロードをキャンセル",+ "legacy": "レガシー"},"settings": {"modelSettings": {- "title": "{{model}} 設定",- "noSettingsNeeded": "このモデルは設定不要で自動的に動作します。"+ "title": "{{model}} 設定"},"models": {"title": "転写モデル","description": "転写モデルを選択するか、追加のモデルをダウンロードします。異なるモデルは精度と速度のレベルが異なります。",- "downloaded": "ダウンロード済み",- "available": "ダウンロード可能","deleteConfirm": "{{modelName}}を削除してもよろしいですか?再度使用するにはダウンロードが必要です。","deleteActiveConfirm": "{{modelName}}は現在使用中のモデルです。削除すると、新しいモデルを選択するまで文字起こしが停止します。本当に削除しますか?","deleteTitle": "モデルを削除","filters": {- "all": "すべて",- "multiLanguage": "多言語",- "translation": "翻訳","allLanguages": "すべての言語"},"noModelsMatch": "このフィルターに一致するモデルがありません。","yourModels": "ダウンロード済みモデル",- "availableModels": "ダウンロード可能"+ "availableModels": "ダウンロード可能",+ "searchPlaceholder": "名前でモデルを検索…",+ "rescan": {+ "label": "再スキャン",+ "tooltip": "Handy の外部でモデルフォルダーまたは Hugging Face キャッシュに追加されたモデルを再スキャンします"+ }},"general": {"title": "一般",@@ -205,7 +207,6 @@"language": {"title": "言語","description": "音声認識の言語を選択してください。自動を選択すると言語を自動的に判定します。特定の言語を選択すると、その言語の精度が向上する場合があります。",- "descriptionUnsupported": "Parakeetモデルは言語を自動的に検出します。手動選択は不要です。","searchPlaceholder": "言語を検索...","noResults": "言語が見つかりません","auto": "自動"@@ -239,7 +240,6 @@}},"advanced": {- "title": "詳細設定","groups": {"app": "アプリ","output": "出力",@@ -256,7 +256,7 @@"description": "録音停止後30秒間マイクストリームを開いたままにし、連続した文字起こしの遅延を軽減します。Bluetooth音声品質に影響する場合があります。"},"acceleration": {- "whisper": {+ "transcribe": {"title": "Whisper アクセラレーション","description": "Whisper モデルのハードウェアアクセラレーション。自動モードでは利用可能な場合 GPU を使用します(macOS では Metal、Windows/Linux では Vulkan)。"},@@ -265,8 +265,6 @@"description": "ONNX モデルのハードウェアアクセラレーション(Parakeet、Canary、Moonshine など)。Windows の DirectML は実験的です。モデルの文字起こしに失敗する場合があります。"},"gpuDevice": {- "title": "GPUデバイス",- "description": "Whisper推論に使用するGPUを選択します。自動は専用GPUを選択します。","auto": "自動"}},@@ -283,12 +281,22 @@"description": "システムトレイにHandyのアイコンを表示します。"},"overlay": {- "title": "オーバーレイ位置",- "description": "録音と文字起こし中に視覚的なフィードバックオーバーレイを表示。Linuxでは「なし」を推奨。",- "options": {- "none": "なし",- "bottom": "下",- "top": "上"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "なし",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "オーバーレイ位置",+ "description": "録音と文字起こし中に視覚的なフィードバックオーバーレイを表示。Linuxでは「なし」を推奨。",+ "options": {+ "bottom": "下",+ "top": "上"+ }}},"pasteMethod": {@@ -332,8 +340,7 @@},"translateToEnglish": {"label": "英語に翻訳",- "description": "文字起こし中に他の言語から英語に自動的に翻訳。",- "descriptionUnsupported": "翻訳は{{model}}モデルではサポートされていません。"+ "description": "文字起こし中に他の言語から英語に自動的に翻訳。"},"modelUnload": {"title": "モデルのアンロード",@@ -356,10 +363,13 @@"add": "追加","remove": "{{word}}を削除","duplicate": "「{{word}}」は既に存在します"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "後処理","hotkey": {"title": "ホットキー"},@@ -370,9 +380,6 @@"description": "OpenAI互換のプロバイダーを選択。"},"appleIntelligence": {- "title": "Apple Intelligence",- "description": "完全にデバイス上で動作。APIキーやネットワークアクセスは不要。",- "requirements": "macOS Tahoe(26.0)以降を実行するApple Silicon Macが必要です。システム設定でApple Intelligenceを有効にする必要があります。","unavailable": "このデバイスではApple Intelligenceを利用できません。macOS Tahoe(26.0)以降を実行し、システム設定でApple Intelligenceが有効になっているApple Silicon Macが必要です。"},"baseUrl": {@@ -387,10 +394,8 @@},"model": {"title": "モデル",- "descriptionApple": "オプションの数値トークン制限を指定するか、デフォルトのオンデバイスプリセットを使用。","descriptionCustom": "カスタムエンドポイントが期待するモデル識別子を指定。","descriptionDefault": "選択したプロバイダーが提供するモデルを選択。",- "placeholderApple": "Apple Intelligence","placeholderWithOptions": "モデルを検索または選択","placeholderNoOptions": "モデル名を入力","refreshModels": "モデルを更新"@@ -518,6 +523,13 @@"recordingBuffer": {"title": "追加録音バッファ","description": "キーを離した後に録音を続ける追加時間(ミリ秒)。末尾の音声を捕捉するため。0 = 追加バッファなし。"+ },+ "whatsNewPreview": {+ "title": "新機能をプレビュー",+ "description": "最新の同梱リリースノートを既読にせずに開く",+ "button": "プレビュー",+ "noNotes": "同梱リリースノートが見つかりません",+ "error": "リリースノートのプレビューに失敗しました"}},"about": {@@ -542,60 +554,43 @@},"acknowledgments": {"title": "謝辞",- "whisper": {- "title": "Whisper.cpp",+ "ggml": {+ "title": "ggml","description": "OpenAIのWhisper自動音声認識モデルの高性能推論",- "details": "Handyは高速でローカルな音声からテキストへの変換にWhisper.cppを使用しています。Georgi Gerganov氏と貢献者の皆様の素晴らしい仕事に感謝します。"+ "details": "Handyは高速でローカルな音声からテキストへの変換にggmlを使用しています。Georgi Gerganov氏と貢献者の皆様の素晴らしい仕事に感謝します。"}+ },+ "whatsNewUpdates": {+ "label": "新機能を表示",+ "description": "Handyのアップデート後にリリースノートを表示"}}},"footer": {- "downloadingModel": "{{model}}をダウンロード中...","checkingUpdates": "アップデートを確認中...",- "updateAvailable": "アップデートあり: {{version}}","updateAvailableShort": "アップデートあり","upToDate": "最新です",- "downloadUpdate": "アップデートをダウンロード",- "restart": "再起動","updateCheckingDisabled": "アップデート確認無効","downloading": "ダウンロード中... {{progress}}%","installing": "インストール中...","preparing": "準備中...","checkForUpdates": "アップデートを確認",- "portableUpdateTitle": "Manual update required",- "portableUpdateMessage": "Portable installs cannot be updated automatically. To update: download the latest NSIS installer from GitHub Releases, install it to the same folder, then copy your Data/ folder (settings, models, recordings) from the old version to the new one.",- "portableUpdateButton": "Open GitHub Releases"+ "portableUpdateTitle": "手動での更新が必要です",+ "portableUpdateMessage": "ポータブル版は自動的に更新できません。更新するには、GitHub Releases から最新の NSIS インストーラーをダウンロードし、同じフォルダーにインストールしてから、古いバージョンの Data/ フォルダー(設定、モデル、録音)を新しいバージョンにコピーしてください。",+ "portableUpdateButton": "GitHub Releases を開く"},"common": {"loading": "読み込み中...",- "save": "保存",- "cancel": "キャンセル",- "reset": "リセット",- "add": "追加",- "remove": "削除","delete": "削除",- "edit": "編集",- "create": "作成",- "update": "更新","close": "閉じる","open": "開く","copy": "コピー","clear": "クリア",- "default": "デフォルト",- "enabled": "有効",- "disabled": "無効",- "on": "オン",- "off": "オフ",- "yes": "はい",- "no": "いいえ","noOptionsFound": "オプションが見つかりません"},"accessibility": {- "permissionsRequired": "アクセシビリティ権限が必要です","permissionsDescription": "Handyが文字起こしテキストを入力するには、アクセシビリティ権限が必要です。",- "openSettings": "システム設定を開く",- "dismiss": "閉じる"+ "openSettings": "システム設定を開く"},"errors": {"loadDirectory": "ディレクトリの読み込みエラー: {{error}}",@@ -612,7 +607,8 @@"modelLoadFailed": "モデルの読み込みに失敗しました: {{model}}","modelLoadFailedUnknown": "不明なモデル","pasteFailedTitle": "テキストの貼り付けに失敗しました",- "pasteFailed": "アクティブなアプリケーションにテキストを貼り付けられませんでした。"+ "pasteFailed": "アクティブなアプリケーションにテキストを貼り付けられませんでした。",+ "transcriptionFailedTitle": "文字起こしに失敗しました"},"appLanguage": {"title": "アプリケーション言語",@@ -621,5 +617,8 @@"overlay": {"transcribing": "文字起こし中...","processing": "処理中..."+ },+ "whatsNew": {+ "title": "Handy v{{version}} の新機能"}}diff --git a/src/i18n/locales/ko/translation.json b/src/i18n/locales/ko/translation.jsonindex 863ec599..3eec5841 100644--- a/src/i18n/locales/ko/translation.json+++ b/src/i18n/locales/ko/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "시작하려면 음성 인식 모델을 선택하세요",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "추천",- "download": "다운로드",- "downloading": "다운로드 중...","customModelDescription": "공식 지원되지 않음",- "downloadFailed": "다운로드에 실패했습니다. 다시 시도해주세요.","modelCard": {"accuracy": "정확도","speed": "속도"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "사용 가능한 모델을 불러오는데 실패했습니다",- "downloadModel": "모델 다운로드 실패: {{error}}"+ "selectModel": "Failed to select model"},"permissions": {"title": "권한 필요",@@ -121,6 +121,7 @@},"modelSelector": {"custom": "사용자 정의",+ "streaming": "스트리밍","active": "활성","switching": "전환 중...","noModelsAvailable": "사용 가능한 모델이 없습니다",@@ -144,16 +145,17 @@"capabilities": {"languageSelection": "여러 입력 언어를 지원합니다","singleLanguage": "이 언어만 지원합니다",- "multiLanguage": "다국어",+ "languageCount": "{{total}} languages","languageOnly": "{{language}} 전용","translation": "영어로 번역 가능",- "translate": "영어로 번역"- }+ "translate": "영어로 번역",+ "streaming": "말하는 동안 실시간으로 음성 인식 결과를 표시"+ },+ "legacy": "레거시"},"settings": {"modelSettings": {- "title": "{{model}} 설정",- "noSettingsNeeded": "이 모델은 별도의 설정 없이 자동으로 작동합니다."+ "title": "{{model}} 설정"},"general": {"title": "일반",@@ -187,7 +189,6 @@"language": {"title": "언어","description": "음성 인식 언어를 선택하세요. 자동은 언어를 자동으로 감지하며, 특정 언어를 선택하면 해당 언어의 정확도가 향상될 수 있습니다.",- "descriptionUnsupported": "Parakeet 모델은 자동으로 언어를 감지합니다. 수동 선택이 필요하지 않습니다.","searchPlaceholder": "언어 검색...","noResults": "언어를 찾을 수 없습니다","auto": "자동"@@ -225,21 +226,20 @@"description": "음성 인식 모델을 선택하거나 추가 모델을 다운로드하세요. 모델마다 정확도와 속도가 다릅니다.","yourModels": "다운로드된 모델","availableModels": "다운로드 가능",- "downloaded": "다운로드됨",- "available": "다운로드 가능","deleteConfirm": "{{modelName}}을(를) 삭제하시겠습니까? 다시 사용하려면 다운로드해야 합니다.","deleteActiveConfirm": "{{modelName}}은(는) 현재 활성 모델입니다. 삭제하면 새 모델을 선택할 때까지 전사가 중지됩니다. 정말 삭제하시겠습니까?","deleteTitle": "모델 삭제","filters": {- "all": "전체",- "multiLanguage": "다국어",- "translation": "번역","allLanguages": "모든 언어"},- "noModelsMatch": "이 필터에 맞는 모델이 없습니다."+ "noModelsMatch": "이 필터에 맞는 모델이 없습니다.",+ "searchPlaceholder": "이름으로 모델 검색…",+ "rescan": {+ "label": "다시 스캔",+ "tooltip": "Handy 외부에서 모델 폴더 또는 Hugging Face 캐시에 추가된 모델을 다시 스캔합니다"+ }},"advanced": {- "title": "고급","groups": {"app": "앱","output": "출력",@@ -256,7 +256,7 @@"description": "녹음 중지 후 30초 동안 마이크 스트림을 열어 두어 연속 전사 시 지연을 줄입니다. 활성화 중 블루투스 오디오 품질이 저하될 수 있습니다."},"acceleration": {- "whisper": {+ "transcribe": {"title": "Whisper 가속","description": "Whisper 모델의 하드웨어 가속. 자동 모드는 GPU를 사용합니다 (macOS에서는 Metal, Windows/Linux에서는 Vulkan)."},@@ -265,8 +265,6 @@"description": "ONNX 모델의 하드웨어 가속 (Parakeet, Canary, Moonshine 등). Windows의 DirectML은 실험적입니다. 모델이 전사에 실패할 수 있습니다."},"gpuDevice": {- "title": "GPU 장치",- "description": "Whisper 추론에 사용할 GPU를 선택합니다. 자동은 전용 GPU를 선택합니다.","auto": "자동"}},@@ -283,12 +281,22 @@"description": "시스템 트레이에 Handy 아이콘을 표시합니다."},"overlay": {- "title": "오버레이 위치",- "description": "녹음 및 전사 중 시각적 피드백 오버레이를 표시합니다. Linux에서는 '없음'을 권장합니다.",- "options": {- "none": "없음",- "bottom": "하단",- "top": "상단"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "없음",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "오버레이 위치",+ "description": "녹음 및 전사 중 시각적 피드백 오버레이를 표시합니다. Linux에서는 '없음'을 권장합니다.",+ "options": {+ "bottom": "하단",+ "top": "상단"+ }}},"pasteMethod": {@@ -332,8 +340,7 @@},"translateToEnglish": {"label": "영어로 번역",- "description": "텍스트로 변환시 다른 언어의 음성을 자동으로 영어로 번역합니다.",- "descriptionUnsupported": "번역은 {{model}} 모델에서 지원되지 않습니다."+ "description": "텍스트로 변환시 다른 언어의 음성을 자동으로 영어로 번역합니다."},"modelUnload": {"title": "모델 언로드",@@ -356,10 +363,13 @@"add": "추가","remove": "{{word}} 제거","duplicate": "\"{{word}}\"이(가) 이미 존재합니다"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "후처리","hotkey": {"title": "단축키"},@@ -370,9 +380,6 @@"description": "OpenAI 호환 제공자를 선택하세요."},"appleIntelligence": {- "title": "Apple Intelligence",- "description": "완전히 기기에서 실행됩니다. API 키나 네트워크 접근이 필요하지 않습니다.",- "requirements": "macOS Tahoe (26.0) 이상을 실행하는 Apple Silicon Mac이 필요합니다. 시스템 설정에서 Apple Intelligence가 활성화되어 있어야 합니다.","unavailable": "이 기기에서는 Apple Intelligence를 사용할 수 없습니다. macOS Tahoe (26.0) 이상을 실행하고 시스템 설정에서 Apple Intelligence가 활성화된 Apple Silicon Mac이 필요합니다."},"baseUrl": {@@ -387,10 +394,8 @@},"model": {"title": "모델",- "descriptionApple": "선택적 숫자 토큰 제한을 제공하거나 기본 기기 내 프리셋을 유지하세요.","descriptionCustom": "사용자 정의 엔드포인트에서 예상하는 모델 식별자를 제공하세요.","descriptionDefault": "선택한 제공자가 제공하는 모델을 선택하세요.",- "placeholderApple": "Apple Intelligence","placeholderWithOptions": "모델 검색 또는 선택","placeholderNoOptions": "모델 이름 입력","refreshModels": "모델 새로고침"@@ -518,6 +523,13 @@"appData": "앱 데이터:","models": "모델:","settings": "설정:"+ },+ "whatsNewPreview": {+ "title": "새 소식 미리보기",+ "description": "최신 내장 릴리스 노트를 본 것으로 표시하지 않고 엽니다",+ "button": "미리보기",+ "noNotes": "내장 릴리스 노트를 찾을 수 없습니다",+ "error": "릴리스 노트를 미리 볼 수 없습니다"}},"about": {@@ -542,60 +554,43 @@},"acknowledgments": {"title": "감사의 말",- "whisper": {- "title": "Whisper.cpp",+ "ggml": {+ "title": "ggml","description": "OpenAI의 Whisper 자동 음성 인식 모델의 고성능 추론",- "details": "Handy는 빠르고 로컬 음성-텍스트 처리를 위해 Whisper.cpp를 사용합니다. Georgi Gerganov와 기여자들의 놀라운 작업에 감사드립니다."+ "details": "Handy는 빠르고 로컬 음성-텍스트 처리를 위해 ggml를 사용합니다. Georgi Gerganov와 기여자들의 놀라운 작업에 감사드립니다."}+ },+ "whatsNewUpdates": {+ "label": "새 소식 표시",+ "description": "Handy 업데이트 후 릴리스 노트를 표시합니다"}}},"footer": {- "downloadingModel": "{{model}} 다운로드 중...","checkingUpdates": "업데이트 확인 중...",- "updateAvailable": "업데이트 사용 가능: {{version}}","updateAvailableShort": "업데이트 사용 가능","upToDate": "최신 상태",- "downloadUpdate": "업데이트 다운로드",- "restart": "재시작","updateCheckingDisabled": "업데이트 확인 비활성화됨","downloading": "다운로드 중... {{progress}}%","installing": "설치 중...","preparing": "준비 중...","checkForUpdates": "업데이트 확인",- "portableUpdateTitle": "Manual update required",- "portableUpdateMessage": "Portable installs cannot be updated automatically. To update: download the latest NSIS installer from GitHub Releases, install it to the same folder, then copy your Data/ folder (settings, models, recordings) from the old version to the new one.",- "portableUpdateButton": "Open GitHub Releases"+ "portableUpdateTitle": "수동 업데이트 필요",+ "portableUpdateMessage": "포터블 설치는 자동으로 업데이트할 수 없습니다. 업데이트하려면 GitHub Releases에서 최신 NSIS 설치 프로그램을 다운로드하여 같은 폴더에 설치한 다음, 이전 버전의 Data/ 폴더(설정, 모델, 녹음)를 새 버전으로 복사하세요.",+ "portableUpdateButton": "GitHub Releases 열기"},"common": {"loading": "로딩 중...",- "save": "저장",- "cancel": "취소",- "reset": "재설정",- "add": "추가",- "remove": "제거","delete": "삭제",- "edit": "편집",- "create": "만들기",- "update": "업데이트","close": "닫기","open": "열기","copy": "복사","clear": "지우기",- "default": "기본값",- "enabled": "활성화됨",- "disabled": "비활성화됨",- "on": "켜짐",- "off": "꺼짐",- "yes": "예",- "no": "아니오","noOptionsFound": "옵션을 찾을 수 없습니다"},"accessibility": {- "permissionsRequired": "접근성 권한 필요","permissionsDescription": "Handy는 녹음된 텍스트를 입력하기 위해 접근성 권한이 필요합니다.",- "openSettings": "시스템 설정 열기",- "dismiss": "닫기"+ "openSettings": "시스템 설정 열기"},"errors": {"loadDirectory": "디렉토리 로딩 오류: {{error}}",@@ -612,7 +607,8 @@"modelLoadFailed": "모델을 불러오지 못했습니다: {{model}}","modelLoadFailedUnknown": "알 수 없는 모델","pasteFailedTitle": "텍스트 붙여넣기 실패",- "pasteFailed": "활성 애플리케이션에 텍스트를 붙여넣을 수 없습니다."+ "pasteFailed": "활성 애플리케이션에 텍스트를 붙여넣을 수 없습니다.",+ "transcriptionFailedTitle": "음성 인식 실패"},"appLanguage": {"title": "애플리케이션 언어",@@ -621,5 +617,8 @@"overlay": {"transcribing": "텍스트로 변환 중...","processing": "처리 중..."+ },+ "whatsNew": {+ "title": "Handy v{{version}}의 새 소식"}}diff --git a/src/i18n/locales/pl/translation.json b/src/i18n/locales/pl/translation.jsonindex 5e95e3db..2a25069f 100644--- a/src/i18n/locales/pl/translation.json+++ b/src/i18n/locales/pl/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "Aby rozpocząć, wybierz model transkrypcji",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "Polecane",- "download": "Pobierz",- "downloading": "Pobieranie...","customModelDescription": "Nieoficjalnie wspierane",- "downloadFailed": "Pobieranie nie powiodło się. Spróbuj ponownie.","modelCard": {"accuracy": "dokładność","speed": "szybkość"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "Nie udało się wczytać dostępnych modeli",- "downloadModel": "Nie udało się pobrać modelu: {{error}}"+ "selectModel": "Failed to select model"},"permissions": {"title": "Wymagane uprawnienia",@@ -121,6 +121,7 @@},"modelSelector": {"custom": "Własny",+ "streaming": "Streaming","active": "Aktywny","switching": "Przełączanie...","noModelsAvailable": "Brak dostępnych modeli",@@ -141,37 +142,38 @@"downloadSpeed": "{{speed}} MB/s","capabilities": {"languageSelection": "Obsługuje wiele języków wejściowych",- "multiLanguage": "Wielojęzyczny",+ "languageCount": "{{total}} languages","translation": "Może tłumaczyć na angielski","translate": "Tłumacz na angielski","singleLanguage": "Obsługuje tylko ten język",- "languageOnly": "Tylko {{language}}"+ "languageOnly": "Tylko {{language}}",+ "streaming": "Pokazuje transkrypcję na żywo podczas mówienia"},"cancel": "Anuluj",- "cancelDownload": "Anuluj pobieranie"+ "cancelDownload": "Anuluj pobieranie",+ "legacy": "Przestarzałe"},"settings": {"modelSettings": {- "title": "Ustawienia {{model}}",- "noSettingsNeeded": "Ten model działa automatycznie bez konieczności konfiguracji."+ "title": "Ustawienia {{model}}"},"models": {"title": "Modele transkrypcji","description": "Wybierz model transkrypcji lub pobierz dodatkowe modele. Różne modele oferują różne poziomy dokładności i szybkości.",- "downloaded": "Pobrane",- "available": "Dostępne do pobrania","deleteConfirm": "Czy na pewno chcesz usunąć {{modelName}}? Będziesz musiał pobrać go ponownie, aby go użyć.","deleteActiveConfirm": "{{modelName}} jest Twoim aktywnym modelem. Usunięcie go zatrzyma transkrypcje, dopóki nie wybierzesz nowego modelu. Czy na pewno chcesz kontynuować?","deleteTitle": "Usuń model","filters": {- "all": "Wszystkie",- "multiLanguage": "Wielojęzyczne",- "translation": "Tłumaczenie","allLanguages": "Wszystkie języki"},"noModelsMatch": "Żadne modele nie pasują do tego filtra.","yourModels": "Pobrane modele",- "availableModels": "Dostępne do pobrania"+ "availableModels": "Dostępne do pobrania",+ "searchPlaceholder": "Szukaj modeli według nazwy…",+ "rescan": {+ "label": "Skanuj ponownie",+ "tooltip": "Skanuj ponownie w poszukiwaniu modeli dodanych do folderu modeli lub pamięci podręcznej Hugging Face poza Handy"+ }},"general": {"title": "Ogólne",@@ -205,7 +207,6 @@"language": {"title": "Język","description": "Wybierz język rozpoznawania mowy. Opcja Auto automatycznie określi język, a wybór konkretnego języka może poprawić dokładność.",- "descriptionUnsupported": "Model Parakeet automatycznie wykrywa język. Nie jest potrzebny ręczny wybór.","searchPlaceholder": "Szukaj języka...","noResults": "Nie znaleziono języków","auto": "Auto"@@ -239,7 +240,6 @@}},"advanced": {- "title": "Zaawansowane","groups": {"app": "Aplikacja","output": "Wyjście",@@ -256,7 +256,7 @@"description": "Utrzymuje strumień mikrofonu otwarty przez 30 sekund po zatrzymaniu nagrywania, zmniejszając opóźnienie przy kolejnych transkrypcjach. Może pogorszyć jakość dźwięku Bluetooth."},"acceleration": {- "whisper": {+ "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)."},@@ -265,8 +265,6 @@"description": "Akceleracja sprzętowa dla modeli ONNX (Parakeet, Canary, Moonshine itp.). DirectML na Windows jest eksperymentalne. Modele mogą nie transkrybować poprawnie."},"gpuDevice": {- "title": "Urządzenie GPU",- "description": "Wybierz GPU do inferencji Whisper. Auto wybiera dedykowany GPU.","auto": "Auto"}},@@ -283,12 +281,22 @@"description": "Wyświetlaj ikonę Handy w zasobniku systemowym."},"overlay": {- "title": "Pozycja nakładki",- "description": "Wyświetlaj wizualną nakładkę podczas nagrywania i transkrypcji. Na Linuxie zalecane 'Brak'.",- "options": {- "none": "Brak",- "bottom": "Dół",- "top": "Góra"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "Brak",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "Pozycja nakładki",+ "description": "Wyświetlaj wizualną nakładkę podczas nagrywania i transkrypcji. Na Linuxie zalecane 'Brak'.",+ "options": {+ "bottom": "Dół",+ "top": "Góra"+ }}},"pasteMethod": {@@ -332,8 +340,7 @@},"translateToEnglish": {"label": "Tłumacz na angielski",- "description": "Automatycznie tłumacz mowę z innych języków na angielski podczas transkrypcji.",- "descriptionUnsupported": "Tłumaczenie nie jest obsługiwane przez model {{model}}."+ "description": "Automatycznie tłumacz mowę z innych języków na angielski podczas transkrypcji."},"modelUnload": {"title": "Wyładowanie modelu",@@ -356,10 +363,13 @@"add": "Dodaj","remove": "Usuń {{word}}","duplicate": "\"{{word}}\" już istnieje"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "Postprocess","hotkey": {"title": "Skrót klawiszowy"},@@ -370,9 +380,6 @@"description": "Wybierz dostawcę zgodnego z OpenAI."},"appleIntelligence": {- "title": "Apple Intelligence",- "description": "Działa całkowicie na urządzeniu. Nie wymaga klucza API ani dostępu do sieci.",- "requirements": "Wymaga komputera Mac z Apple Silicon i systemem macOS Tahoe (26.0) lub nowszym. Apple Intelligence musi być włączone w Ustawieniach systemowych.","unavailable": "Apple Intelligence nie jest dostępne na tym urządzeniu. Wymaga komputera Mac z Apple Silicon i systemem macOS Tahoe (26.0) lub nowszym z włączonym Apple Intelligence w Ustawieniach systemowych."},"baseUrl": {@@ -387,10 +394,8 @@},"model": {"title": "Model",- "descriptionApple": "Podaj opcjonalny limit tokenów lub pozostaw domyślne ustawienie urządzenia.","descriptionCustom": "Podaj identyfikator modelu wymagany przez Twój niestandardowy endpoint.","descriptionDefault": "Wybierz model udostępniony przez wybranego dostawcę.",- "placeholderApple": "Apple Intelligence","placeholderWithOptions": "Wyszukaj lub wybierz model","placeholderNoOptions": "Wpisz nazwę modelu","refreshModels": "Odśwież modele"@@ -518,6 +523,13 @@"recordingBuffer": {"title": "Dodatkowy bufor nagrywania","description": "Dodatkowy czas (w milisekundach) na kontynuowanie nagrywania po zwolnieniu klawisza, aby przechwycić końcowy dźwięk. 0 = brak dodatkowego bufora."+ },+ "whatsNewPreview": {+ "title": "Podgląd nowości",+ "description": "Otwórz najnowsze dołączone informacje o wydaniu bez oznaczania ich jako wyświetlone",+ "button": "Podgląd",+ "noNotes": "Nie znaleziono dołączonych informacji o wydaniu",+ "error": "Nie udało się wyświetlić podglądu informacji o wydaniu"}},"about": {@@ -542,60 +554,43 @@},"acknowledgments": {"title": "Podziękowania",- "whisper": {- "title": "Whisper.cpp",+ "ggml": {+ "title": "ggml","description": "Wydajne wykonywanie modelu rozpoznawania mowy Whisper od OpenAI",- "details": "Handy używa Whisper.cpp do szybkiego, lokalnego przetwarzania mowy na tekst. Dzięki niesamowitej pracy Georgi Gerganova i współtwórców."+ "details": "Handy używa ggml do szybkiego, lokalnego przetwarzania mowy na tekst. Dzięki niesamowitej pracy Georgi Gerganova i współtwórców."}+ },+ "whatsNewUpdates": {+ "label": "Pokaż nowości",+ "description": "Pokazuj informacje o wydaniu po aktualizacjach Handy"}}},"footer": {- "downloadingModel": "Pobieranie {{model}}...","checkingUpdates": "Sprawdzanie aktualizacji...",- "updateAvailable": "Dostępna aktualizacja: {{version}}","updateAvailableShort": "Dostępna aktualizacja","upToDate": "Aktualne",- "downloadUpdate": "Pobierz aktualizację",- "restart": "Uruchom ponownie","updateCheckingDisabled": "Sprawdzanie aktualizacji wyłączone","downloading": "Pobieranie... {{progress}}%","installing": "Instalowanie...","preparing": "Przygotowywanie...","checkForUpdates": "Sprawdź aktualizacje",- "portableUpdateTitle": "Manual update required",- "portableUpdateMessage": "Portable installs cannot be updated automatically. To update: download the latest NSIS installer from GitHub Releases, install it to the same folder, then copy your Data/ folder (settings, models, recordings) from the old version to the new one.",- "portableUpdateButton": "Open GitHub Releases"+ "portableUpdateTitle": "Wymagana ręczna aktualizacja",+ "portableUpdateMessage": "Instalacji przenośnych nie można aktualizować automatycznie. Aby zaktualizować: pobierz najnowszy instalator NSIS z GitHub Releases, zainstaluj go w tym samym folderze, a następnie skopiuj swój folder Data/ (ustawienia, modele, nagrania) ze starej wersji do nowej.",+ "portableUpdateButton": "Otwórz GitHub Releases"},"common": {"loading": "Wczytywanie...",- "save": "Zapisz",- "cancel": "Anuluj",- "reset": "Resetuj",- "add": "Dodaj",- "remove": "Usuń","delete": "Usuń",- "edit": "Edytuj",- "create": "Utwórz",- "update": "Aktualizuj","close": "Zamknij","open": "Otwórz","copy": "Kopiuj","clear": "Wyczyść",- "default": "Domyślne",- "enabled": "Włączone",- "disabled": "Wyłączone",- "on": "Włącz",- "off": "Wyłącz",- "yes": "Tak",- "no": "Nie","noOptionsFound": "Nie znaleziono opcji"},"accessibility": {- "permissionsRequired": "Wymagane uprawnienia dostępności","permissionsDescription": "Handy potrzebuje uprawnień dostępności, aby wpisywać transkrybowany tekst.",- "openSettings": "Otwórz ustawienia systemowe",- "dismiss": "Zamknij"+ "openSettings": "Otwórz ustawienia systemowe"},"errors": {"loadDirectory": "Błąd wczytywania katalogu: {{error}}",@@ -612,7 +607,8 @@"modelLoadFailed": "Nie udało się załadować modelu: {{model}}","modelLoadFailedUnknown": "nieznany model","pasteFailedTitle": "Nie udało się wkleić tekstu",- "pasteFailed": "Nie można było wkleić tekstu do aktywnej aplikacji."+ "pasteFailed": "Nie można było wkleić tekstu do aktywnej aplikacji.",+ "transcriptionFailedTitle": "Transkrypcja nie powiodła się"},"appLanguage": {"title": "Język aplikacji",@@ -621,5 +617,8 @@"overlay": {"transcribing": "Transkrypcja...","processing": "Przetwarzanie..."+ },+ "whatsNew": {+ "title": "Nowości w Handy v{{version}}"}}diff --git a/src/i18n/locales/pt/translation.json b/src/i18n/locales/pt/translation.jsonindex 43a5ba67..57a398e3 100644--- a/src/i18n/locales/pt/translation.json+++ b/src/i18n/locales/pt/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "Para começar, escolha um modelo de transcrição",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "Recomendado",- "download": "Baixar",- "downloading": "Baixando...","customModelDescription": "Não suportado oficialmente",- "downloadFailed": "Falha no download. Por favor, tente novamente.","modelCard": {"accuracy": "precisão","speed": "velocidade"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "Falha ao carregar modelos disponíveis",- "downloadModel": "Falha ao baixar modelo: {{error}}"+ "selectModel": "Failed to select model"},"permissions": {"title": "Permissões Necessárias",@@ -121,6 +121,7 @@},"modelSelector": {"custom": "Personalizado",+ "streaming": "Streaming","active": "Ativo","noModelsAvailable": "Nenhum modelo disponível","verifying": "Verificando {{modelName}}...",@@ -141,19 +142,20 @@"downloadSpeed": "{{speed}} MB/s","capabilities": {"languageSelection": "Suporta vários idiomas de entrada",- "multiLanguage": "Multi-idioma",+ "languageCount": "{{total}} languages","translation": "Pode traduzir para inglês","translate": "Traduzir para inglês","singleLanguage": "Suporta apenas este idioma",- "languageOnly": "Apenas {{language}}"+ "languageOnly": "Apenas {{language}}",+ "streaming": "Mostra a transcrição ao vivo enquanto você fala"},"cancel": "Cancelar",- "cancelDownload": "Cancelar download"+ "cancelDownload": "Cancelar download",+ "legacy": "Legado"},"settings": {"modelSettings": {- "title": "Configurações de {{model}}",- "noSettingsNeeded": "Este modelo funciona automaticamente sem necessidade de configuração."+ "title": "Configurações de {{model}}"},"general": {"title": "Geral",@@ -187,7 +189,6 @@"language": {"title": "Idioma","description": "Selecione o idioma para reconhecimento de fala. Auto detectará automaticamente o idioma, enquanto selecionar um idioma específico pode melhorar a precisão para esse idioma.",- "descriptionUnsupported": "O modelo Parakeet detecta automaticamente o idioma. Não é necessária seleção manual.","searchPlaceholder": "Buscar idiomas...","noResults": "Nenhum idioma encontrado","auto": "Auto"@@ -200,20 +201,20 @@"models": {"title": "Modelos de Transcrição","description": "Selecione um modelo de transcrição ou baixe modelos adicionais. Diferentes modelos oferecem diferentes níveis de precisão e velocidade.",- "downloaded": "Baixados",- "available": "Disponíveis para Download","deleteConfirm": "Tem certeza de que deseja excluir {{modelName}}? Você precisará baixá-lo novamente para usá-lo.","deleteActiveConfirm": "{{modelName}} é o seu modelo ativo. Excluí-lo interromperá as transcrições até que você selecione um novo modelo. Tem certeza?","deleteTitle": "Excluir Modelo","filters": {- "all": "Todos",- "multiLanguage": "Multi-idioma",- "translation": "Tradução","allLanguages": "Todos os Idiomas"},"noModelsMatch": "Nenhum modelo corresponde a este filtro.","yourModels": "Modelos baixados",- "availableModels": "Disponíveis para download"+ "availableModels": "Disponíveis para download",+ "searchPlaceholder": "Buscar modelos por nome…",+ "rescan": {+ "label": "Reescanear",+ "tooltip": "Reescaneia em busca de modelos adicionados à pasta de modelos ou ao cache do Hugging Face fora do Handy"+ }},"sound": {"title": "Som",@@ -239,7 +240,6 @@}},"advanced": {- "title": "Avançado","groups": {"app": "Aplicativo","output": "Saída",@@ -256,7 +256,7 @@"description": "Mantém o fluxo do microfone aberto por 30 segundos após parar a gravação, reduzindo a latência em transcrições consecutivas. Pode degradar a qualidade do áudio Bluetooth enquanto ativo."},"acceleration": {- "whisper": {+ "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)."},@@ -265,8 +265,6 @@"description": "Aceleração por hardware para modelos ONNX (Parakeet, Canary, Moonshine, etc.). DirectML no Windows é experimental. Os modelos podem falhar na transcrição."},"gpuDevice": {- "title": "Dispositivo GPU",- "description": "Selecione qual GPU usar para inferência do Whisper. Auto escolhe a GPU dedicada.","auto": "Auto"}},@@ -283,12 +281,22 @@"description": "Exibir o ícone do Handy na bandeja do sistema."},"overlay": {- "title": "Posição da Sobreposição",- "description": "Exibir sobreposição de feedback visual durante gravação e transcrição. No Linux, 'Nenhum' é recomendado.",- "options": {- "none": "Nenhum",- "bottom": "Inferior",- "top": "Superior"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "Nenhum",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "Posição da Sobreposição",+ "description": "Exibir sobreposição de feedback visual durante gravação e transcrição. No Linux, 'Nenhum' é recomendado.",+ "options": {+ "bottom": "Inferior",+ "top": "Superior"+ }}},"pasteMethod": {@@ -332,8 +340,7 @@},"translateToEnglish": {"label": "Traduzir para Inglês",- "description": "Traduzir automaticamente fala de outros idiomas para inglês durante a transcrição.",- "descriptionUnsupported": "Tradução não é suportada pelo modelo {{model}}."+ "description": "Traduzir automaticamente fala de outros idiomas para inglês durante a transcrição."},"modelUnload": {"title": "Descarregar Modelo",@@ -356,10 +363,13 @@"add": "Adicionar","remove": "Remover {{word}}","duplicate": "\"{{word}}\" já existe"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "Pós-Processamento","hotkey": {"title": "Tecla de atalho"},@@ -370,9 +380,6 @@"description": "Selecione um provedor compatível com OpenAI."},"appleIntelligence": {- "title": "Apple Intelligence",- "description": "Executa totalmente no dispositivo. Nenhuma chave de API ou acesso à rede é necessário.",- "requirements": "Requer um Mac Apple Silicon executando macOS Tahoe (26.0) ou posterior. Apple Intelligence deve estar habilitado nas Configurações do Sistema.","unavailable": "Apple Intelligence não está disponível neste dispositivo. Requer um Mac Apple Silicon executando macOS Tahoe (26.0) ou posterior com Apple Intelligence habilitado nas Configurações do Sistema."},"baseUrl": {@@ -387,10 +394,8 @@},"model": {"title": "Modelo",- "descriptionApple": "Forneça um limite numérico opcional de tokens ou mantenha a predefinição padrão no dispositivo.","descriptionCustom": "Forneça o identificador do modelo esperado pelo seu endpoint personalizado.","descriptionDefault": "Escolha um modelo exposto pelo provedor selecionado.",- "placeholderApple": "Apple Intelligence","placeholderWithOptions": "Buscar ou selecionar um modelo","placeholderNoOptions": "Digite o nome de um modelo","refreshModels": "Atualizar modelos"@@ -518,6 +523,13 @@"recordingBuffer": {"title": "Buffer de gravação extra","description": "Tempo extra (em milissegundos) para continuar gravando após soltar a tecla, para capturar áudio restante. 0 = sem buffer extra."+ },+ "whatsNewPreview": {+ "title": "Pré-visualizar novidades",+ "description": "Abrir a nota de versão incorporada mais recente sem marcá-la como vista",+ "button": "Pré-visualizar",+ "noNotes": "Nenhuma nota de versão incorporada encontrada",+ "error": "Falha ao pré-visualizar as notas de versão"}},"about": {@@ -542,22 +554,22 @@},"acknowledgments": {"title": "Agradecimentos",- "whisper": {- "title": "Whisper.cpp",+ "ggml": {+ "title": "ggml","description": "Inferência de alto desempenho do modelo de reconhecimento automático de fala Whisper da OpenAI",- "details": "O Handy usa Whisper.cpp para processamento rápido e local de fala para texto. Agradecemos ao incrível trabalho de Georgi Gerganov e colaboradores."+ "details": "O Handy usa ggml para processamento rápido e local de fala para texto. Agradecemos ao incrível trabalho de Georgi Gerganov e colaboradores."}+ },+ "whatsNewUpdates": {+ "label": "Mostrar novidades",+ "description": "Mostrar notas de versão após atualizações do Handy"}}},"footer": {- "downloadingModel": "Baixando {{model}}...","checkingUpdates": "Verificando atualizações...",- "updateAvailable": "Atualização disponível: {{version}}","updateAvailableShort": "Atualização disponível","upToDate": "Atualizado",- "downloadUpdate": "Baixar Atualização",- "restart": "Reiniciar","updateCheckingDisabled": "Verificação de Atualização Desabilitada","downloading": "Baixando... {{progress}}%","installing": "Instalando...",@@ -569,33 +581,16 @@},"common": {"loading": "Carregando...",- "save": "Salvar",- "cancel": "Cancelar",- "reset": "Redefinir",- "add": "Adicionar",- "remove": "Remover","delete": "Excluir",- "edit": "Editar",- "create": "Criar",- "update": "Atualizar","close": "Fechar","open": "Abrir","copy": "Copiar","clear": "Limpar",- "default": "Padrão",- "enabled": "Habilitado",- "disabled": "Desabilitado",- "on": "Ligado",- "off": "Desligado",- "yes": "Sim",- "no": "Não","noOptionsFound": "Nenhuma opção encontrada"},"accessibility": {- "permissionsRequired": "Permissões de Acessibilidade Necessárias","permissionsDescription": "O Handy precisa de permissões de acessibilidade para digitar o texto transcrito.",- "openSettings": "Abrir Configurações do Sistema",- "dismiss": "Dispensar"+ "openSettings": "Abrir Configurações do Sistema"},"errors": {"loadDirectory": "Erro ao carregar diretório: {{error}}",@@ -612,7 +607,8 @@"modelLoadFailed": "Falha ao carregar o modelo: {{model}}","modelLoadFailedUnknown": "modelo desconhecido","pasteFailedTitle": "Falha ao colar o texto",- "pasteFailed": "Não foi possível colar o texto no aplicativo ativo."+ "pasteFailed": "Não foi possível colar o texto no aplicativo ativo.",+ "transcriptionFailedTitle": "Falha na transcrição"},"appLanguage": {"title": "Idioma da Aplicação",@@ -621,5 +617,8 @@"overlay": {"transcribing": "Transcrevendo...","processing": "Processando..."+ },+ "whatsNew": {+ "title": "Novidades no Handy v{{version}}"}}diff --git a/src/i18n/locales/ru/translation.json b/src/i18n/locales/ru/translation.jsonindex 7c2a2d29..2f442115 100644--- a/src/i18n/locales/ru/translation.json+++ b/src/i18n/locales/ru/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "Для начала выберите модель транскрипции",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "Рекомендуется",- "download": "Скачать",- "downloading": "Загрузка...","customModelDescription": "Официально не поддерживается",- "downloadFailed": "Загрузка не удалась. Пожалуйста, попробуйте снова.","modelCard": {"accuracy": "точность","speed": "скорость"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "Не удалось загрузить доступные модели.",- "downloadModel": "Не удалось загрузить модель: {{error}}."+ "selectModel": "Failed to select model"},"permissions": {"title": "Требуются разрешения",@@ -121,6 +121,7 @@},"modelSelector": {"custom": "Пользовательская",+ "streaming": "Потоковый","active": "Активный","switching": "Переключение...","noModelsAvailable": "Нет доступных моделей",@@ -141,37 +142,38 @@"downloadSpeed": "{{speed}} МБ/с","capabilities": {"languageSelection": "Поддерживает несколько языков ввода",- "multiLanguage": "Многоязычная",+ "languageCount": "{{total}} languages","translation": "Может переводить на английский","translate": "Перевод на английский","singleLanguage": "Поддерживает только этот язык",- "languageOnly": "Только {{language}}"+ "languageOnly": "Только {{language}}",+ "streaming": "Показывает транскрипцию в реальном времени во время речи"},"cancel": "Отмена",- "cancelDownload": "Отменить загрузку"+ "cancelDownload": "Отменить загрузку",+ "legacy": "Устаревшее"},"settings": {"modelSettings": {- "title": "Настройки {{model}}",- "noSettingsNeeded": "Эта модель работает автоматически без необходимости настройки."+ "title": "Настройки {{model}}"},"models": {"title": "Модели транскрипции","description": "Выберите модель транскрипции или загрузите дополнительные модели. Разные модели предлагают разные уровни точности и скорости.",- "downloaded": "Загружено",- "available": "Доступные для загрузки","deleteConfirm": "Вы уверены, что хотите удалить {{modelName}}? Вам нужно будет загрузить её снова, чтобы использовать.","deleteActiveConfirm": "{{modelName}} — ваша активная модель. Удаление остановит транскрипцию, пока вы не выберете новую модель. Вы уверены?","deleteTitle": "Удалить модель","filters": {- "all": "Все",- "multiLanguage": "Многоязычные",- "translation": "Перевод","allLanguages": "Все языки"},"noModelsMatch": "Нет моделей, соответствующих этому фильтру.","yourModels": "Загруженные модели",- "availableModels": "Доступны для загрузки"+ "availableModels": "Доступны для загрузки",+ "searchPlaceholder": "Поиск моделей по имени…",+ "rescan": {+ "label": "Пересканировать",+ "tooltip": "Пересканировать модели, добавленные в папку моделей или кэш Hugging Face вне Handy"+ }},"general": {"title": "Общие",@@ -205,7 +207,6 @@"language": {"title": "Язык","description": "Выберите язык для распознавания речи. «Авто» автоматически определит язык, а выбор конкретного языка может повысить точность определения этого языка.",- "descriptionUnsupported": "Модель Parakeet автоматически определяет язык. Ручной выбор не требуется.","searchPlaceholder": "Поиск языков...","noResults": "Языки не найдены","auto": "Авто"@@ -239,7 +240,6 @@}},"advanced": {- "title": "Продвинутые","groups": {"app": "Приложение","output": "Вывод",@@ -256,7 +256,7 @@"description": "Оставляет поток микрофона открытым в течение 30 секунд после остановки записи, уменьшая задержку при последовательных транскрипциях. Может ухудшить качество звука Bluetooth."},"acceleration": {- "whisper": {+ "transcribe": {"title": "Ускорение Whisper","description": "Аппаратное ускорение для моделей Whisper. Автоматический режим использует GPU при наличии (Metal на macOS, Vulkan на Windows/Linux)."},@@ -265,8 +265,6 @@"description": "Аппаратное ускорение для моделей ONNX (Parakeet, Canary, Moonshine и др.). DirectML на Windows является экспериментальным. Модели могут не выполнять транскрипцию."},"gpuDevice": {- "title": "Устройство GPU",- "description": "Выберите GPU для инференса Whisper. Авто выбирает выделенный GPU.","auto": "Авто"}},@@ -283,12 +281,22 @@"description": "Отображать значок Handy в системном трее."},"overlay": {- "title": "Позиция индикатора",- "description": "Отображение индикатора визуальной обратной связи во время записи и транскрипции. В Linux рекомендуется выбрать «Нет».",- "options": {- "none": "Нет",- "bottom": "Снизу",- "top": "Сверху"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "Нет",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "Позиция индикатора",+ "description": "Отображение индикатора визуальной обратной связи во время записи и транскрипции. В Linux рекомендуется выбрать «Нет».",+ "options": {+ "bottom": "Снизу",+ "top": "Сверху"+ }}},"pasteMethod": {@@ -332,8 +340,7 @@},"translateToEnglish": {"label": "Перевести на английский",- "description": "Автоматически переводить речь с других языков на английский во время транскрипции.",- "descriptionUnsupported": "Перевод не поддерживается моделью {{model}}."+ "description": "Автоматически переводить речь с других языков на английский во время транскрипции."},"modelUnload": {"title": "Выгрузить модель",@@ -356,10 +363,13 @@"add": "Добавить","remove": "Удалить {{word}}","duplicate": "\"{{word}}\" уже существует"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "Постобработка","hotkey": {"title": "Горячая клавиша"},@@ -370,9 +380,6 @@"description": "Выберите поставщика, совместимого с OpenAI."},"appleIntelligence": {- "title": "Apple Интеллект",- "description": "Полностью работает на устройстве. Никакой ключ API или доступ к сети не требуется.",- "requirements": "Требуется Apple Silicon Mac под управлением macOS Tahoe (26.0) или более поздней версии. Apple Intelligence должен быть включен в настройках системы.","unavailable": "Apple Intelligence недоступен на этом устройстве. Требуется Apple Silicon Mac под управлением macOS Tahoe (26.0) или более поздней версии с включенным Apple Intelligence в настройках системы."},"baseUrl": {@@ -387,10 +394,8 @@},"model": {"title": "Модель",- "descriptionApple": "Укажите дополнительный числовой лимит токенов или сохраните настройки по умолчанию, установленные на устройстве.","descriptionCustom": "Укажите идентификатор модели, ожидаемый вашей пользовательской конечной точкой.","descriptionDefault": "Выберите модель, предоставляемую выбранным поставщиком.",- "placeholderApple": "Apple Интеллект","placeholderWithOptions": "Найдите или выберите модель","placeholderNoOptions": "Введите название модели","refreshModels": "Обновить модели"@@ -518,6 +523,13 @@"recordingBuffer": {"title": "Дополнительный буфер записи","description": "Дополнительное время (в миллисекундах) для продолжения записи после отпускания клавиши, чтобы захватить завершающий звук. 0 = без дополнительного буфера."+ },+ "whatsNewPreview": {+ "title": "Предпросмотр новинок",+ "description": "Открыть последние встроенные примечания к выпуску, не отмечая их как просмотренные",+ "button": "Предпросмотр",+ "noNotes": "Встроенные примечания к выпуску не найдены",+ "error": "Не удалось показать предварительный просмотр примечаний к выпуску"}},"about": {@@ -542,60 +554,43 @@},"acknowledgments": {"title": "Благодарности",- "whisper": {- "title": "Whisper.cpp",+ "ggml": {+ "title": "ggml","description": "Высокопроизводительная модель автоматического распознавания речи OpenAI Whisper",- "details": "Handy использует Whisper.cpp для быстрого локального преобразования речи в текст. Спасибо великолепной работе Георгия Герганова и участников."+ "details": "Handy использует ggml для быстрого локального преобразования речи в текст. Спасибо великолепной работе Георгия Герганова и участников."}+ },+ "whatsNewUpdates": {+ "label": "Показывать новинки",+ "description": "Показывать примечания к выпуску после обновлений Handy"}}},"footer": {- "downloadingModel": "Загрузка {{model}}...","checkingUpdates": "Проверяем наличие обновлений...",- "updateAvailable": "Доступно обновление: {{version}}","updateAvailableShort": "Доступно обновление","upToDate": "Не требует обновлений",- "downloadUpdate": "Скачать обновление",- "restart": "Перезапуск","updateCheckingDisabled": "Проверка обновлений отключена","downloading": "Загрузка... {{progress}} %","installing": "Установка...","preparing": "Подготовка...","checkForUpdates": "Проверить наличие обновлений",- "portableUpdateTitle": "Manual update required",- "portableUpdateMessage": "Portable installs cannot be updated automatically. To update: download the latest NSIS installer from GitHub Releases, install it to the same folder, then copy your Data/ folder (settings, models, recordings) from the old version to the new one.",- "portableUpdateButton": "Open GitHub Releases"+ "portableUpdateTitle": "Требуется ручное обновление",+ "portableUpdateMessage": "Портативные установки нельзя обновить автоматически. Чтобы обновить: скачайте последний установщик NSIS со страницы GitHub Releases, установите его в ту же папку, затем скопируйте папку Data/ (настройки, модели, записи) из старой версии в новую.",+ "portableUpdateButton": "Открыть GitHub Releases"},"common": {"loading": "Загрузка...",- "save": "Сохранять",- "cancel": "Отмена",- "reset": "Перезагрузить",- "add": "Добавлять",- "remove": "Удалять","delete": "Удалить",- "edit": "Редактировать",- "create": "Создавать",- "update": "Обновлять","close": "Закрывать","open": "Открыть","copy": "Копировать","clear": "Очистить",- "default": "По умолчанию",- "enabled": "Включено",- "disabled": "Неполноценный",- "on": "На",- "off": "Выключенный",- "yes": "Да",- "no": "Нет","noOptionsFound": "Вариантов не найдено"},"accessibility": {- "permissionsRequired": "Требуются разрешения на доступ","permissionsDescription": "Handy необходимы разрешения на доступ для ввода расшифрованного текста.",- "openSettings": "Открыть настройки системы",- "dismiss": "Увольнять"+ "openSettings": "Открыть настройки системы"},"errors": {"loadDirectory": "Ошибка загрузки каталога: {{error}}.",@@ -612,7 +607,8 @@"modelLoadFailed": "Не удалось загрузить модель: {{model}}","modelLoadFailedUnknown": "неизвестная модель","pasteFailedTitle": "Не удалось вставить текст",- "pasteFailed": "Не удалось вставить текст в активное приложение."+ "pasteFailed": "Не удалось вставить текст в активное приложение.",+ "transcriptionFailedTitle": "Ошибка транскрипции"},"appLanguage": {"title": "Язык приложения",@@ -621,5 +617,8 @@"overlay": {"transcribing": "Расшифровка...","processing": "Обработка..."+ },+ "whatsNew": {+ "title": "Новое в Handy v{{version}}"}}diff --git a/src/i18n/locales/sv/translation.json b/src/i18n/locales/sv/translation.jsonindex 10893158..dd839bbc 100644--- a/src/i18n/locales/sv/translation.json+++ b/src/i18n/locales/sv/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "För att komma igång, välj en transkriptionsmodell",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "Rekommenderat",- "download": "Ladda ner",- "downloading": "Laddar ner...","customModelDescription": "Stöds inte officiellt",- "downloadFailed": "Nedladdningen misslyckades. Försök igen.","modelCard": {"accuracy": "noggrannhet","speed": "hastighet"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "Misslyckades med att ladda tillgängliga modeller",- "downloadModel": "Misslyckades med att ladda ner modell: {{error}}"+ "selectModel": "Failed to select model"},"permissions": {"title": "Behörigheter krävs",@@ -121,6 +121,7 @@},"modelSelector": {"custom": "Anpassad",+ "streaming": "Streaming","active": "Aktiv","switching": "Byter...","noModelsAvailable": "Inga modeller tillgängliga",@@ -144,16 +145,17 @@"capabilities": {"languageSelection": "Stöder flera indataspråk","singleLanguage": "Stöder endast detta språk",- "multiLanguage": "Flerspråkig",+ "languageCount": "{{total}} languages","languageOnly": "Endast {{language}}","translation": "Kan översätta till engelska",- "translate": "Översätt till engelska"- }+ "translate": "Översätt till engelska",+ "streaming": "Visar transkription i realtid medan du talar"+ },+ "legacy": "Äldre"},"settings": {"modelSettings": {- "title": "{{model}}-inställningar",- "noSettingsNeeded": "Denna modell fungerar automatiskt utan att någon konfiguration krävs."+ "title": "{{model}}-inställningar"},"general": {"title": "Allmänt",@@ -187,7 +189,6 @@"language": {"title": "Språk","description": "Välj språk för taligenkänning. Auto kommer automatiskt att bestämma språket, medan val av ett specifikt språk kan förbättra noggrannheten för det språket.",- "descriptionUnsupported": "Parakeet-modellen upptäcker automatiskt språket. Inget manuellt val behövs.","searchPlaceholder": "Sök språk...","noResults": "Inga språk hittades","auto": "Auto"@@ -202,18 +203,18 @@"description": "Välj en transkriptionsmodell eller ladda ner ytterligare modeller. Olika modeller erbjuder varierande nivåer av noggrannhet och hastighet.","yourModels": "Nedladdade modeller","availableModels": "Tillgängliga att ladda ner",- "downloaded": "Nedladdad",- "available": "Tillgänglig att ladda ner","deleteConfirm": "Är du säker på att du vill ta bort {{modelName}}? Du måste ladda ner den igen för att använda den.","deleteActiveConfirm": "{{modelName}} är din aktiva modell. Om du tar bort den avbryts transkriptioner tills du väljer en ny modell. Är du säker?","deleteTitle": "Ta bort modell","filters": {- "all": "Alla",- "multiLanguage": "Flerspråkig",- "translation": "Översättning","allLanguages": "Alla språk"},- "noModelsMatch": "Inga modeller matchar detta filter."+ "noModelsMatch": "Inga modeller matchar detta filter.",+ "searchPlaceholder": "Sök modeller efter namn…",+ "rescan": {+ "label": "Skanna om",+ "tooltip": "Skanna om efter modeller som lagts till i modellmappen eller Hugging Face-cachen utanför Handy"+ }},"sound": {"title": "Ljud",@@ -239,7 +240,6 @@}},"advanced": {- "title": "Avancerat","groups": {"app": "App","output": "Utmatning",@@ -256,7 +256,7 @@"description": "Håller mikrofonströmmen öppen i 30 sekunder efter att inspelningen avslutats, vilket minskar latensen för transkriptioner efter varandra. Kan försämra Bluetooth-ljudkvaliteten medan den är aktiv."},"acceleration": {- "whisper": {+ "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)."},@@ -265,8 +265,6 @@"description": "Hårdvaruacceleration för ONNX-modeller (Parakeet, Canary, Moonshine, etc.). DirectML på Windows är experimentellt. Modeller kan misslyckas med att transkribera."},"gpuDevice": {- "title": "GPU-enhet",- "description": "Välj vilken GPU som ska användas för Whisper-inferens. Auto väljer den dedikerade GPU:n.","auto": "Auto"}},@@ -283,12 +281,22 @@"description": "Visa Handy-ikonen i systemfältet."},"overlay": {- "title": "Överlagringsposition",- "description": "Visa visuell återkoppling under inspelning och transkription. På Linux rekommenderas 'Ingen'.",- "options": {- "none": "Ingen",- "bottom": "Nederst",- "top": "Överst"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "Ingen",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "Överlagringsposition",+ "description": "Visa visuell återkoppling under inspelning och transkription. På Linux rekommenderas 'Ingen'.",+ "options": {+ "bottom": "Nederst",+ "top": "Överst"+ }}},"pasteMethod": {@@ -332,8 +340,7 @@},"translateToEnglish": {"label": "Översätt till engelska",- "description": "Översätt automatiskt tal från andra språk till engelska under transkription.",- "descriptionUnsupported": "Översättning stöds inte av {{model}}-modellen."+ "description": "Översätt automatiskt tal från andra språk till engelska under transkription."},"modelUnload": {"title": "Avlasta modell",@@ -356,10 +363,13 @@"add": "Lägg till","remove": "Ta bort {{word}}","duplicate": "\"{{word}}\" finns redan"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "Efterbearbetning","hotkey": {"title": "Snabbkommando"},@@ -370,9 +380,6 @@"description": "Välj en OpenAI-kompatibel leverantör."},"appleIntelligence": {- "title": "Apple Intelligence",- "description": "Körs helt lokalt på enheten. Ingen API-nyckel eller nätverksåtkomst krävs.",- "requirements": "Kräver en Apple Silicon Mac som kör macOS Tahoe (26.0) eller senare. Apple Intelligence måste vara aktiverat i systeminställningarna.","unavailable": "Apple Intelligence är inte tillgängligt på den här enheten. Kräver en Apple Silicon Mac som kör macOS Tahoe (26.0) eller senare med Apple Intelligence aktiverat i systeminställningarna."},"baseUrl": {@@ -387,10 +394,8 @@},"model": {"title": "Modell",- "descriptionApple": "Ange en valfri numerisk tokengräns eller behåll standardinställningen på enheten.","descriptionCustom": "Ange den modellidentifierare som förväntas av din anpassade slutpunkt.","descriptionDefault": "Välj en modell som exponeras av den valda leverantören.",- "placeholderApple": "Apple Intelligence","placeholderWithOptions": "Sök eller välj en modell","placeholderNoOptions": "Ange ett modellnamn","refreshModels": "Uppdatera modeller"@@ -518,6 +523,13 @@"recordingBuffer": {"title": "Extra inspelningsbuffert","description": "Extra tid (i millisekunder) för att fortsätta spela in efter att du släppt tangenten, för att fånga upp avslutande ljud. 0 = ingen extra buffert."+ },+ "whatsNewPreview": {+ "title": "Förhandsvisa nyheter",+ "description": "Öppna den senaste medföljande versionsinformationen utan att markera den som visad",+ "button": "Förhandsvisa",+ "noNotes": "Ingen medföljande versionsinformation hittades",+ "error": "Det gick inte att förhandsvisa versionsinformationen"}},"about": {@@ -542,60 +554,43 @@},"acknowledgments": {"title": "Tack till",- "whisper": {- "title": "Whisper.cpp",+ "ggml": {+ "title": "ggml","description": "Högpresterande inferens av OpenAI:s Whisper-modell för automatisk taligenkänning",- "details": "Handy använder Whisper.cpp för snabb, lokal tal-till-text-behandling. Tack till det fantastiska arbete som utförts av Georgi Gerganov med medarbetare."+ "details": "Handy använder ggml för snabb, lokal tal-till-text-behandling. Tack till det fantastiska arbete som utförts av Georgi Gerganov med medarbetare."}+ },+ "whatsNewUpdates": {+ "label": "Visa nyheter",+ "description": "Visa versionsinformation efter Handy-uppdateringar"}}},"footer": {- "downloadingModel": "Laddar ner {{model}}...","checkingUpdates": "Söker efter uppdateringar...",- "updateAvailable": "Uppdatering tillgänglig: {{version}}","updateAvailableShort": "Uppdatering tillgänglig","upToDate": "Uppdaterad",- "downloadUpdate": "Ladda ner uppdatering",- "restart": "Starta om","updateCheckingDisabled": "Uppdateringskontroll inaktiverad","downloading": "Laddar ner... {{progress}}%","installing": "Installerar...","preparing": "Förbereder...","checkForUpdates": "Sök efter uppdateringar",- "portableUpdateTitle": "Manual update required",- "portableUpdateMessage": "Portable installs cannot be updated automatically. To update: download the latest NSIS installer from GitHub Releases, install it to the same folder, then copy your Data/ folder (settings, models, recordings) from the old version to the new one.",- "portableUpdateButton": "Open GitHub Releases"+ "portableUpdateTitle": "Manuell uppdatering krävs",+ "portableUpdateMessage": "Portabla installationer kan inte uppdateras automatiskt. Så här uppdaterar du: ladda ner den senaste NSIS-installeraren från GitHub Releases, installera den i samma mapp och kopiera sedan din Data/-mapp (inställningar, modeller, inspelningar) från den gamla versionen till den nya.",+ "portableUpdateButton": "Öppna GitHub Releases"},"common": {"loading": "Laddar...",- "save": "Spara",- "cancel": "Avbryt",- "reset": "Återställ",- "add": "Lägg till",- "remove": "Ta bort","delete": "Ta bort",- "edit": "Redigera",- "create": "Skapa",- "update": "Uppdatera","close": "Stäng","open": "Öppna","copy": "Kopiera","clear": "Rensa",- "default": "Standard",- "enabled": "Aktiverad",- "disabled": "Inaktiverad",- "on": "På",- "off": "Av",- "yes": "Ja",- "no": "Nej","noOptionsFound": "Inga alternativ hittades"},"accessibility": {- "permissionsRequired": "Behörigheter för hjälpmedel krävs","permissionsDescription": "Handy behöver behörighet för hjälpmedel för att kunna skriva transkriberad text.",- "openSettings": "Öppna systeminställningar",- "dismiss": "Avvisa"+ "openSettings": "Öppna systeminställningar"},"errors": {"loadDirectory": "Fel vid laddning av mapp: {{error}}",@@ -612,7 +607,8 @@"noInputDeviceTitle": "Ingen mikrofon hittades","noInputDevice": "Ingen ljudenhet hittades. Anslut en mikrofon eller ett headset och försök igen.","pasteFailedTitle": "Det gick inte att klistra in texten",- "pasteFailed": "Texten kunde inte klistras in i det aktiva programmet."+ "pasteFailed": "Texten kunde inte klistras in i det aktiva programmet.",+ "transcriptionFailedTitle": "Transkriptionen misslyckades"},"appLanguage": {"title": "Applikationsspråk",@@ -621,5 +617,8 @@"overlay": {"transcribing": "Transkriberar...","processing": "Bearbetar..."+ },+ "whatsNew": {+ "title": "Nytt i Handy v{{version}}"}}diff --git a/src/i18n/locales/tr/translation.json b/src/i18n/locales/tr/translation.jsonindex de1a8ac5..1eb1f9f8 100644--- a/src/i18n/locales/tr/translation.json+++ b/src/i18n/locales/tr/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "Başlamak için bir transkripsiyon modeli seçin",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "Önerilen",- "download": "İndir",- "downloading": "İndiriliyor...","customModelDescription": "Resmi olarak desteklenmiyor",- "downloadFailed": "İndirme başarısız oldu. Lütfen tekrar deneyin.","modelCard": {"accuracy": "doğruluk","speed": "hız"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "Mevcut modeller yüklenemedi",- "downloadModel": "Model indirilemedi: {{error}}"+ "selectModel": "Failed to select model"},"permissions": {"title": "İzinler Gerekli",@@ -121,6 +121,7 @@},"modelSelector": {"custom": "Özel",+ "streaming": "Akış","active": "Aktif","noModelsAvailable": "Kullanılabilir model yok","verifying": "{{modelName}} doğrulanıyor...",@@ -141,37 +142,38 @@"downloadSpeed": "{{speed}} MB/s","capabilities": {"languageSelection": "Birden fazla giriş dilini destekler",- "multiLanguage": "Çok dilli",+ "languageCount": "{{total}} languages","translation": "İngilizce'ye çevirebilir","translate": "İngilizce'ye çevir","singleLanguage": "Yalnızca bu dili destekler",- "languageOnly": "Yalnızca {{language}}"+ "languageOnly": "Yalnızca {{language}}",+ "streaming": "Konuşurken canlı transkripsiyon gösterir"},"cancel": "İptal",- "cancelDownload": "İndirmeyi iptal et"+ "cancelDownload": "İndirmeyi iptal et",+ "legacy": "Eski"},"settings": {"modelSettings": {- "title": "{{model}} Ayarları",- "noSettingsNeeded": "Bu model yapılandırma gerektirmeden otomatik olarak çalışır."+ "title": "{{model}} Ayarları"},"models": {"title": "Transkripsiyon Modelleri","description": "Bir transkripsiyon modeli seçin veya ek modeller indirin. Farklı modeller değişen doğruluk ve hız seviyeleri sunar.",- "downloaded": "İndirildi",- "available": "İndirilebilir","deleteConfirm": "{{modelName}} modelini silmek istediğinizden emin misiniz? Kullanmak için tekrar indirmeniz gerekecek.","deleteActiveConfirm": "{{modelName}} aktif modelinizdir. Silmek, yeni bir model seçene kadar transkripsiyonları durduracaktır. Emin misiniz?","deleteTitle": "Modeli Sil","filters": {- "all": "Tümü",- "multiLanguage": "Çok dilli",- "translation": "Çeviri","allLanguages": "Tüm Diller"},"noModelsMatch": "Bu filtreyle eşleşen model yok.","yourModels": "İndirilen modeller",- "availableModels": "İndirilebilir"+ "availableModels": "İndirilebilir",+ "searchPlaceholder": "Modelleri ada göre ara…",+ "rescan": {+ "label": "Yeniden tara",+ "tooltip": "Handy dışında modeller klasörüne veya Hugging Face önbelleğine eklenen modelleri yeniden tara"+ }},"general": {"title": "Genel",@@ -205,7 +207,6 @@"language": {"title": "Dil","description": "Konuşma tanıma dilini seçin. 'Otomatik' seçeneği dili kendisi belirler, ancak belirli bir dil seçmek o dildeki doğruluğu artırabilir.",- "descriptionUnsupported": "Parakeet modeli dili otomatik algılar. Manuel seçim gerekmez.","searchPlaceholder": "Dil ara...","noResults": "Dil bulunamadı","auto": "Otomatik"@@ -239,7 +240,6 @@}},"advanced": {- "title": "Gelişmiş","groups": {"app": "Uygulama","output": "Çıktı",@@ -256,7 +256,7 @@"description": "Kayıt durdurulduktan sonra mikrofon akışını 30 saniye açık tutar, ardışık transkripsiyonlarda gecikmeyi azaltır. Etkinken Bluetooth ses kalitesini düşürebilir."},"acceleration": {- "whisper": {+ "transcribe": {"title": "Whisper Hızlandırma","description": "Whisper modelleri için donanım hızlandırma. Otomatik mod, mevcutsa GPU kullanır (macOS'ta Metal, Windows/Linux'ta Vulkan)."},@@ -265,8 +265,6 @@"description": "ONNX modelleri için donanım hızlandırma (Parakeet, Canary, Moonshine vb.). Windows'ta DirectML deneyseldir. Modeller transkripsiyon yapamayabilir."},"gpuDevice": {- "title": "GPU Aygıtı",- "description": "Whisper çıkarımı için hangi GPU'nun kullanılacağını seçin. Otomatik, özel GPU'yu seçer.","auto": "Otomatik"}},@@ -283,12 +281,22 @@"description": "Handy simgesini sistem tepsisinde göster."},"overlay": {- "title": "Overlay Konumu",- "description": "Kayıt ve transkripsiyon sırasında görsel geri bildirim kaplamasını gösterir. Linux'ta 'Yok' önerilir.",- "options": {- "none": "Yok",- "bottom": "Alt",- "top": "Üst"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "Yok",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "Overlay Konumu",+ "description": "Kayıt ve transkripsiyon sırasında görsel geri bildirim kaplamasını gösterir. Linux'ta 'Yok' önerilir.",+ "options": {+ "bottom": "Alt",+ "top": "Üst"+ }}},"pasteMethod": {@@ -332,8 +340,7 @@},"translateToEnglish": {"label": "İngilizceye Çevir",- "description": "Transkripsiyon sırasında diğer dillerden İngilizceye otomatik olarak çevirir.",- "descriptionUnsupported": "Çeviri {{model}} modeli tarafından desteklenmiyor."+ "description": "Transkripsiyon sırasında diğer dillerden İngilizceye otomatik olarak çevirir."},"modelUnload": {"title": "Modeli Boşalt",@@ -356,10 +363,13 @@"add": "Ekle","remove": "{{word}} Kaldır","duplicate": "\"{{word}}\" zaten mevcut"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "Son İşlem","hotkey": {"title": "Kısayol Tuşu"},@@ -370,9 +380,6 @@"description": "OpenAI uyumlu bir sağlayıcı seçin."},"appleIntelligence": {- "title": "Apple Intelligence",- "description": "Tamamen cihaz üzerinde çalışır. API anahtarı veya ağ erişimi gerekmez.",- "requirements": "macOS Tahoe (26.0) veya üzeri çalıştıran bir Apple Silicon Mac gerektirir. Sistem Ayarları'nda Apple Intelligence etkin olmalıdır.","unavailable": "Apple Intelligence bu cihazda kullanılamıyor. macOS Tahoe (26.0) veya üzeri ve Sistem Ayarları'nda Apple Intelligence etkin olan bir Apple Silicon Mac gerektirir."},"baseUrl": {@@ -387,10 +394,8 @@},"model": {"title": "Model",- "descriptionApple": "İsteğe bağlı bir sayısal token sınırı belirleyin veya varsayılan cihaz içi ön ayarı kullanın.","descriptionCustom": "Özel uç noktanızın beklediği model tanımlayıcısını girin.","descriptionDefault": "Seçili sağlayıcının sunduğu bir modeli seçin.",- "placeholderApple": "Apple Intelligence","placeholderWithOptions": "Model ara veya seç","placeholderNoOptions": "Model adı yazın","refreshModels": "Modelleri Yenile"@@ -518,6 +523,13 @@"recordingBuffer": {"title": "Ekstra kayıt tamponu","description": "Tuşu bıraktıktan sonra arka plandaki sesi yakalamak için kaydı sürdürme süresi (milisaniye). 0 = ekstra tampon yok."+ },+ "whatsNewPreview": {+ "title": "Yenilikleri Önizle",+ "description": "En son paketlenmiş sürüm notunu görüldü olarak işaretlemeden aç",+ "button": "Önizle",+ "noNotes": "Paketlenmiş sürüm notu bulunamadı",+ "error": "Sürüm notları önizlenemedi"}},"about": {@@ -542,60 +554,43 @@},"acknowledgments": {"title": "Teşekkürler",- "whisper": {- "title": "Whisper.cpp",+ "ggml": {+ "title": "ggml","description": "OpenAI'nin Whisper otomatik konuşma tanıma modelinin yüksek performanslı çıkarımı",- "details": "Handy, hızlı ve yerel konuşmadan metne dönüştürme için Whisper.cpp kullanır. Georgi Gerganov ve katkıda bulunanların harika çalışmaları için teşekkür ederiz."+ "details": "Handy, hızlı ve yerel konuşmadan metne dönüştürme için ggml kullanır. Georgi Gerganov ve katkıda bulunanların harika çalışmaları için teşekkür ederiz."}+ },+ "whatsNewUpdates": {+ "label": "Yenilikleri Göster",+ "description": "Handy güncellemelerinden sonra sürüm notlarını göster"}}},"footer": {- "downloadingModel": "{{model}} indiriliyor...","checkingUpdates": "Güncellemeler kontrol ediliyor...",- "updateAvailable": "Güncelleme mevcut: {{version}}","updateAvailableShort": "Güncelleme mevcut","upToDate": "Güncel",- "downloadUpdate": "Güncellemeyi İndir",- "restart": "Yeniden Başlat","updateCheckingDisabled": "Güncelleme Kontrolü Devre Dışı","downloading": "İndiriliyor... %{{progress}}","installing": "Yükleniyor...","preparing": "Hazırlanıyor...","checkForUpdates": "Güncellemeleri kontrol et",- "portableUpdateTitle": "Manual update required",- "portableUpdateMessage": "Portable installs cannot be updated automatically. To update: download the latest NSIS installer from GitHub Releases, install it to the same folder, then copy your Data/ folder (settings, models, recordings) from the old version to the new one.",- "portableUpdateButton": "Open GitHub Releases"+ "portableUpdateTitle": "Manuel güncelleme gerekli",+ "portableUpdateMessage": "Taşınabilir kurulumlar otomatik olarak güncellenemez. Güncellemek için: GitHub Releases’ten en son NSIS yükleyicisini indirin, aynı klasöre kurun ve ardından Data/ klasörünüzü (ayarlar, modeller, kayıtlar) eski sürümden yenisine kopyalayın.",+ "portableUpdateButton": "GitHub Releases’i aç"},"common": {"loading": "Yükleniyor...",- "save": "Kaydet",- "cancel": "İptal",- "reset": "Sıfırla",- "add": "Ekle",- "remove": "Kaldır","delete": "Sil",- "edit": "Düzenle",- "create": "Oluştur",- "update": "Güncelle","close": "Kapat","open": "Aç","copy": "Kopyala","clear": "Temizle",- "default": "Varsayılan",- "enabled": "Etkin",- "disabled": "Devre Dışı",- "on": "Açık",- "off": "Kapalı",- "yes": "Evet",- "no": "Hayır","noOptionsFound": "Seçenek bulunamadı"},"accessibility": {- "permissionsRequired": "Erişilebilirlik İzinleri Gerekli","permissionsDescription": "Handy, transkribe edilen metni yazabilmek için erişilebilirlik izinlerine ihtiyaç duyar.",- "openSettings": "Sistem Ayarlarını Aç",- "dismiss": "Yoksay"+ "openSettings": "Sistem Ayarlarını Aç"},"errors": {"loadDirectory": "Dizin yüklenirken hata oluştu: {{error}}",@@ -612,7 +607,8 @@"modelLoadFailed": "Model yüklenemedi: {{model}}","modelLoadFailedUnknown": "bilinmeyen model","pasteFailedTitle": "Metin yapıştırılamadı",- "pasteFailed": "Metin etkin uygulamaya yapıştırılamadı."+ "pasteFailed": "Metin etkin uygulamaya yapıştırılamadı.",+ "transcriptionFailedTitle": "Transkripsiyon başarısız oldu"},"appLanguage": {"title": "Uygulama Dili",@@ -621,5 +617,8 @@"overlay": {"transcribing": "Transkribe ediliyor...","processing": "İşleniyor..."+ },+ "whatsNew": {+ "title": "Handy v{{version}} yenilikleri"}}diff --git a/src/i18n/locales/uk/translation.json b/src/i18n/locales/uk/translation.jsonindex f18e501a..5819215e 100644--- a/src/i18n/locales/uk/translation.json+++ b/src/i18n/locales/uk/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "Для початку оберіть модель транскрипції",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "Рекомендовано",- "download": "Завантажити",- "downloading": "Завантаження...","customModelDescription": "Офіційно не підтримується",- "downloadFailed": "Завантаження не вдалося. Будь ласка, спробуйте ще раз.","modelCard": {"accuracy": "точність","speed": "швидкість"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "Не вдалося завантажити доступні моделі",- "downloadModel": "Не вдалося завантажити модель: {{error}}"+ "selectModel": "Failed to select model"},"permissions": {"title": "Потрібні дозволи",@@ -121,6 +121,7 @@},"modelSelector": {"custom": "Користувацька",+ "streaming": "Потокове","active": "Активна","noModelsAvailable": "Немає доступних моделей","verifying": "Перевірка {{modelName}}...",@@ -141,19 +142,20 @@"downloadSpeed": "{{speed}} MB/s","capabilities": {"languageSelection": "Підтримує кілька мов введення",- "multiLanguage": "Багатомовна",+ "languageCount": "{{total}} languages","translation": "Може перекладати на англійську","translate": "Перекласти на англійську","singleLanguage": "Підтримує лише цю мову",- "languageOnly": "Лише {{language}}"+ "languageOnly": "Лише {{language}}",+ "streaming": "Показує транскрипцію в реальному часі під час мовлення"},"cancel": "Скасувати",- "cancelDownload": "Скасувати завантаження"+ "cancelDownload": "Скасувати завантаження",+ "legacy": "Застаріле"},"settings": {"modelSettings": {- "title": "Налаштування {{model}}",- "noSettingsNeeded": "Ця модель працює автоматично без потреби в налаштуванні."+ "title": "Налаштування {{model}}"},"general": {"title": "Загальні",@@ -187,7 +189,6 @@"language": {"title": "Мова","description": "Оберіть мову для розпізнавання мовлення. Режим «Авто» визначить мову автоматично, а вибір конкретної мови може покращити точність.",- "descriptionUnsupported": "Модель Parakeet автоматично визначає мову. Ручний вибір не потрібен.","searchPlaceholder": "Пошук мов...","noResults": "Мов не знайдено","auto": "Авто"@@ -200,20 +201,20 @@"models": {"title": "Моделі транскрипції","description": "Виберіть модель транскрипції або завантажте додаткові моделі. Різні моделі пропонують різні рівні точності та швидкості.",- "downloaded": "Завантажено",- "available": "Доступні для завантаження","deleteConfirm": "Ви впевнені, що хочете видалити {{modelName}}? Вам потрібно буде завантажити її знову, щоб використовувати.","deleteActiveConfirm": "{{modelName}} — ваша активна модель. Видалення зупинить транскрипцію, доки ви не оберете нову модель. Ви впевнені?","deleteTitle": "Видалити модель","filters": {- "all": "Усі",- "multiLanguage": "Багатомовні",- "translation": "Переклад","allLanguages": "Усі мови"},"noModelsMatch": "Жодна модель не відповідає цьому фільтру.","yourModels": "Завантажені моделі",- "availableModels": "Доступні для завантаження"+ "availableModels": "Доступні для завантаження",+ "searchPlaceholder": "Пошук моделей за назвою…",+ "rescan": {+ "label": "Пересканувати",+ "tooltip": "Пересканувати моделі, додані до папки моделей або кешу Hugging Face поза межами Handy"+ }},"sound": {"title": "Звук",@@ -239,7 +240,6 @@}},"advanced": {- "title": "Розширені","groups": {"app": "Додаток","output": "Вивід",@@ -256,7 +256,7 @@"description": "Залишає потік мікрофона відкритим протягом 30 секунд після зупинки запису, зменшуючи затримку при послідовних транскрипціях. Може погіршити якість звуку Bluetooth."},"acceleration": {- "whisper": {+ "transcribe": {"title": "Прискорення Whisper","description": "Апаратне прискорення для моделей Whisper. Автоматичний режим використовує GPU за наявності (Metal на macOS, Vulkan на Windows/Linux)."},@@ -265,8 +265,6 @@"description": "Апаратне прискорення для моделей ONNX (Parakeet, Canary, Moonshine тощо). DirectML на Windows є експериментальним. Моделі можуть не виконувати транскрипцію."},"gpuDevice": {- "title": "Пристрій GPU",- "description": "Виберіть GPU для інференсу Whisper. Автоматично обирає виділений GPU.","auto": "Авто"}},@@ -283,12 +281,22 @@"description": "Відображати значок Handy у системному треї."},"overlay": {- "title": "Позиція оверлею",- "description": "Показувати візуальний оверлей під час запису та транскрипції. На Linux рекомендовано «Немає»",- "options": {- "none": "Немає",- "bottom": "Внизу",- "top": "Вгорі"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "Немає",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "Позиція оверлею",+ "description": "Показувати візуальний оверлей під час запису та транскрипції. На Linux рекомендовано «Немає»",+ "options": {+ "bottom": "Внизу",+ "top": "Вгорі"+ }}},"pasteMethod": {@@ -332,8 +340,7 @@},"translateToEnglish": {"label": "Перекласти на англійську",- "description": "Автоматично перекладати мовлення з інших мов англійською під час транскрипції.",- "descriptionUnsupported": "Переклад не підтримується моделлю {{model}}."+ "description": "Автоматично перекладати мовлення з інших мов англійською під час транскрипції."},"modelUnload": {"title": "Вивантаження моделі",@@ -356,10 +363,13 @@"add": "Додати","remove": "Видалити {{word}}","duplicate": "\"{{word}}\" вже існує"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "Постобробка","hotkey": {"title": "Гаряча клавіша"},@@ -370,9 +380,6 @@"description": "Оберіть OpenAI-сумісного провайдера"},"appleIntelligence": {- "title": "Apple Intelligence",- "description": "Працює повністю на пристрої. API-ключ або доступ до мережі не потрібні.",- "requirements": "Потрібен Mac з Apple Silicon під управлінням macOS Tahoe (26.0) або новіше. Apple Intelligence має бути увімкнений у Системних налаштуваннях.","unavailable": "Apple Intelligence недоступний на цьому пристрої. Потрібен Mac з Apple Silicon під управлінням macOS Tahoe (26.0) або новіше з увімкненим Apple Intelligence в Системних налаштуваннях."},"baseUrl": {@@ -387,10 +394,8 @@},"model": {"title": "Модель",- "descriptionApple": "Вкажіть необов'язковий числовий ліміт токенів або залиште стандартний пресет на пристрої.","descriptionCustom": "Вкажіть ідентифікатор моделі, який очікує ваш ендпоінт.","descriptionDefault": "Оберіть модель, надану обраним провайдером",- "placeholderApple": "Apple Intelligence","placeholderWithOptions": "Шукайте або оберіть модель","placeholderNoOptions": "Введіть назву моделі","refreshModels": "Оновити моделі"@@ -518,6 +523,13 @@"recordingBuffer": {"title": "Додатковий буфер запису","description": "Додатковий час (у мілісекундах) для продовження запису після відпускання клавіші, щоб захопити завершальний звук. 0 = без додаткового буфера."+ },+ "whatsNewPreview": {+ "title": "Попередній перегляд новин",+ "description": "Відкрити останні вбудовані примітки до випуску, не позначаючи їх як переглянуті",+ "button": "Перегляд",+ "noNotes": "Вбудовані примітки до випуску не знайдено",+ "error": "Не вдалося переглянути примітки до випуску"}},"about": {@@ -542,60 +554,43 @@},"acknowledgments": {"title": "Подяки",- "whisper": {- "title": "Whisper.cpp",+ "ggml": {+ "title": "ggml","description": "Високопродуктивний інференс моделі автоматичного розпізнавання мовлення Whisper від OpenAI",- "details": "Handy використовує Whisper.cpp для швидкої локальної обробки мовлення в текст. Дякуємо за чудову роботу Георгію Герганову та контриб'юторам."+ "details": "Handy використовує ggml для швидкої локальної обробки мовлення в текст. Дякуємо за чудову роботу Георгію Герганову та контриб'юторам."}+ },+ "whatsNewUpdates": {+ "label": "Показувати новини",+ "description": "Показувати примітки до випуску після оновлень Handy"}}},"footer": {- "downloadingModel": "Завантаження {{model}}...","checkingUpdates": "Перевірка оновлень...",- "updateAvailable": "Доступне оновлення: {{version}}","updateAvailableShort": "Доступне оновлення","upToDate": "Актуальна версія",- "downloadUpdate": "Завантажити оновлення",- "restart": "Перезапустити","updateCheckingDisabled": "Перевірка оновлень вимкнена","downloading": "Завантаження... {{progress}}%","installing": "Встановлення...","preparing": "Підготовка...","checkForUpdates": "Перевірити оновлення",- "portableUpdateTitle": "Manual update required",- "portableUpdateMessage": "Portable installs cannot be updated automatically. To update: download the latest NSIS installer from GitHub Releases, install it to the same folder, then copy your Data/ folder (settings, models, recordings) from the old version to the new one.",- "portableUpdateButton": "Open GitHub Releases"+ "portableUpdateTitle": "Потрібне ручне оновлення",+ "portableUpdateMessage": "Портативні встановлення не можна оновити автоматично. Щоб оновити: завантажте найновіший інсталятор NSIS зі сторінки GitHub Releases, установіть його в ту саму теку, а потім скопіюйте теку Data/ (налаштування, моделі, записи) зі старої версії до нової.",+ "portableUpdateButton": "Відкрити GitHub Releases"},"common": {"loading": "Завантаження...",- "save": "Зберегти",- "cancel": "Скасувати",- "reset": "Скинути",- "add": "Додати",- "remove": "Видалити","delete": "Видалити",- "edit": "Редагувати",- "create": "Створити",- "update": "Оновити","close": "Закрити","open": "Відкрити","copy": "Копіювати","clear": "Очистити",- "default": "За замовчуванням",- "enabled": "Увімкнено",- "disabled": "Вимкнено",- "on": "Увімк.",- "off": "Вимк.",- "yes": "Так",- "no": "Ні","noOptionsFound": "Опцій не знайдено"},"accessibility": {- "permissionsRequired": "Потрібні права доступу","permissionsDescription": "Handy потребує дозволи доступності для введення транскрибованого тексту.",- "openSettings": "Відкрити Системні налаштування",- "dismiss": "Закрити"+ "openSettings": "Відкрити Системні налаштування"},"errors": {"loadDirectory": "Помилка завантаження папки: {{error}}",@@ -612,7 +607,8 @@"modelLoadFailed": "Не вдалося завантажити модель: {{model}}","modelLoadFailedUnknown": "невідома модель","pasteFailedTitle": "Не вдалося вставити текст",- "pasteFailed": "Не вдалося вставити текст до активної програми."+ "pasteFailed": "Не вдалося вставити текст до активної програми.",+ "transcriptionFailedTitle": "Помилка транскрипції"},"appLanguage": {"title": "Мова інтерфейсу",@@ -621,5 +617,8 @@"overlay": {"transcribing": "Обробка...","processing": "Постобробка..."+ },+ "whatsNew": {+ "title": "Нове в Handy v{{version}}"}}diff --git a/src/i18n/locales/vi/translation.json b/src/i18n/locales/vi/translation.jsonindex b89ffcc5..0f586036 100644--- a/src/i18n/locales/vi/translation.json+++ b/src/i18n/locales/vi/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "Để bắt đầu, hãy chọn một mô hình chuyển đổi giọng nói",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "Đề xuất",- "download": "Tải xuống",- "downloading": "Đang tải xuống...","customModelDescription": "Không được hỗ trợ chính thức",- "downloadFailed": "Tải xuống thất bại. Vui lòng thử lại.","modelCard": {"accuracy": "độ chính xác","speed": "tốc độ"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "Không thể tải các mô hình có sẵn",- "downloadModel": "Không thể tải mô hình: {{error}}"+ "selectModel": "Failed to select model"},"permissions": {"title": "Cần cấp quyền",@@ -121,6 +121,7 @@},"modelSelector": {"custom": "Tùy chỉnh",+ "streaming": "Truyền trực tiếp","active": "Đang hoạt động","switching": "Đang chuyển...","noModelsAvailable": "Không có mô hình nào",@@ -141,37 +142,38 @@"downloadSpeed": "{{speed}} MB/s","capabilities": {"languageSelection": "Hỗ trợ nhiều ngôn ngữ đầu vào",- "multiLanguage": "Đa ngôn ngữ",+ "languageCount": "{{total}} languages","translation": "Có thể dịch sang tiếng Anh","translate": "Dịch sang tiếng Anh","singleLanguage": "Chỉ hỗ trợ ngôn ngữ này",- "languageOnly": "Chỉ {{language}}"+ "languageOnly": "Chỉ {{language}}",+ "streaming": "Hiển thị phiên âm trực tiếp khi bạn nói"},"cancel": "Hủy",- "cancelDownload": "Hủy tải xuống"+ "cancelDownload": "Hủy tải xuống",+ "legacy": "Cũ"},"settings": {"modelSettings": {- "title": "Cài đặt {{model}}",- "noSettingsNeeded": "Mô hình này hoạt động tự động mà không cần cấu hình."+ "title": "Cài đặt {{model}}"},"models": {"title": "Mô hình chuyển đổi","description": "Chọn mô hình chuyển đổi hoặc tải thêm mô hình. Các mô hình khác nhau có mức độ chính xác và tốc độ khác nhau.",- "downloaded": "Đã tải xuống",- "available": "Có thể tải xuống","deleteConfirm": "Bạn có chắc chắn muốn xóa {{modelName}}? Bạn sẽ cần tải lại để sử dụng.","deleteActiveConfirm": "{{modelName}} là mô hình đang hoạt động của bạn. Xóa nó sẽ dừng phiên âm cho đến khi bạn chọn một mô hình mới. Bạn có chắc không?","deleteTitle": "Xóa mô hình","filters": {- "all": "Tất cả",- "multiLanguage": "Đa ngôn ngữ",- "translation": "Dịch thuật","allLanguages": "Tất cả ngôn ngữ"},"noModelsMatch": "Không có mô hình nào khớp với bộ lọc này.","yourModels": "Mô hình đã tải",- "availableModels": "Có sẵn để tải xuống"+ "availableModels": "Có sẵn để tải xuống",+ "searchPlaceholder": "Tìm mô hình theo tên…",+ "rescan": {+ "label": "Quét lại",+ "tooltip": "Quét lại các mô hình được thêm vào thư mục mô hình hoặc bộ nhớ đệm Hugging Face bên ngoài Handy"+ }},"general": {"title": "Chung",@@ -205,7 +207,6 @@"language": {"title": "Ngôn ngữ","description": "Chọn ngôn ngữ để nhận dạng giọng nói. Tự động sẽ tự động xác định ngôn ngữ, trong khi chọn một ngôn ngữ cụ thể có thể cải thiện độ chính xác cho ngôn ngữ đó.",- "descriptionUnsupported": "Mô hình Parakeet tự động phát hiện ngôn ngữ. Không cần chọn thủ công.","searchPlaceholder": "Tìm kiếm ngôn ngữ...","noResults": "Không tìm thấy ngôn ngữ","auto": "Tự động"@@ -239,7 +240,6 @@}},"advanced": {- "title": "Nâng cao","groups": {"app": "Ứng dụng","output": "Đầu ra",@@ -256,7 +256,7 @@"description": "Giữ luồng micro mở trong 30 giây sau khi dừng ghi âm, giảm độ trễ khi phiên âm liên tiếp. Có thể làm giảm chất lượng âm thanh Bluetooth khi đang hoạt động."},"acceleration": {- "whisper": {+ "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)."},@@ -265,8 +265,6 @@"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."},"gpuDevice": {- "title": "Thiết bị GPU",- "description": "Chọn GPU để sử dụng cho suy luận Whisper. Tự động chọn GPU chuyên dụng.","auto": "Tự động"}},@@ -283,12 +281,22 @@"description": "Hiển thị biểu tượng Handy trong khay hệ thống."},"overlay": {- "title": "Vị trí lớp phủ",- "description": "Hiển thị lớp phủ phản hồi trực quan trong quá trình ghi âm và chuyển đổi. Trên Linux, 'Không có' được khuyến nghị.",- "options": {- "none": "Không có",- "bottom": "Dưới",- "top": "Trên"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "Không có",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "Vị trí lớp phủ",+ "description": "Hiển thị lớp phủ phản hồi trực quan trong quá trình ghi âm và chuyển đổi. Trên Linux, 'Không có' được khuyến nghị.",+ "options": {+ "bottom": "Dưới",+ "top": "Trên"+ }}},"pasteMethod": {@@ -332,8 +340,7 @@},"translateToEnglish": {"label": "Dịch sang tiếng Anh",- "description": "Tự động dịch giọng nói từ các ngôn ngữ khác sang tiếng Anh trong quá trình chuyển đổi.",- "descriptionUnsupported": "Mô hình {{model}} không hỗ trợ dịch thuật."+ "description": "Tự động dịch giọng nói từ các ngôn ngữ khác sang tiếng Anh trong quá trình chuyển đổi."},"modelUnload": {"title": "Giải phóng mô hình",@@ -356,10 +363,13 @@"add": "Thêm","remove": "Xóa {{word}}","duplicate": "\"{{word}}\" đã tồn tại"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "Xử lý sau","hotkey": {"title": "Phím tắt"},@@ -370,9 +380,6 @@"description": "Chọn một nhà cung cấp tương thích OpenAI."},"appleIntelligence": {- "title": "Apple Intelligence",- "description": "Chạy hoàn toàn trên thiết bị. Không cần khóa API hoặc truy cập mạng.",- "requirements": "Yêu cầu Mac Apple Silicon chạy macOS Tahoe (26.0) trở lên. Apple Intelligence phải được bật trong Cài đặt Hệ thống.","unavailable": "Apple Intelligence không khả dụng trên thiết bị này. Yêu cầu Mac Apple Silicon chạy macOS Tahoe (26.0) trở lên với Apple Intelligence được bật trong Cài đặt Hệ thống."},"baseUrl": {@@ -387,10 +394,8 @@},"model": {"title": "Mô hình",- "descriptionApple": "Cung cấp giới hạn token tùy chọn hoặc giữ cài đặt mặc định trên thiết bị.","descriptionCustom": "Cung cấp định danh mô hình được yêu cầu bởi điểm cuối tùy chỉnh của bạn.","descriptionDefault": "Chọn một mô hình được cung cấp bởi nhà cung cấp đã chọn.",- "placeholderApple": "Apple Intelligence","placeholderWithOptions": "Tìm kiếm hoặc chọn một mô hình","placeholderNoOptions": "Nhập tên mô hình","refreshModels": "Làm mới mô hình"@@ -518,6 +523,13 @@"recordingBuffer": {"title": "Bộ đệm ghi âm thêm","description": "Thời gian thêm (tính bằng mili giây) để tiếp tục ghi âm sau khi nhả phím, để thu âm thanh cuối. 0 = không có bộ đệm thêm."+ },+ "whatsNewPreview": {+ "title": "Xem trước điểm mới",+ "description": "Mở ghi chú phát hành mới nhất được đóng gói mà không đánh dấu là đã xem",+ "button": "Xem trước",+ "noNotes": "Không tìm thấy ghi chú phát hành được đóng gói",+ "error": "Không thể xem trước ghi chú phát hành"}},"about": {@@ -542,60 +554,43 @@},"acknowledgments": {"title": "Lời cảm ơn",- "whisper": {- "title": "Whisper.cpp",+ "ggml": {+ "title": "ggml","description": "Suy luận hiệu suất cao của mô hình nhận dạng giọng nói tự động Whisper của OpenAI",- "details": "Handy sử dụng Whisper.cpp để xử lý chuyển đổi giọng nói thành văn bản nhanh, cục bộ. Cảm ơn công việc tuyệt vời của Georgi Gerganov và các cộng tác viên."+ "details": "Handy sử dụng ggml để xử lý chuyển đổi giọng nói thành văn bản nhanh, cục bộ. Cảm ơn công việc tuyệt vời của Georgi Gerganov và các cộng tác viên."}+ },+ "whatsNewUpdates": {+ "label": "Hiển thị điểm mới",+ "description": "Hiển thị ghi chú phát hành sau khi Handy cập nhật"}}},"footer": {- "downloadingModel": "Đang tải {{model}}...","checkingUpdates": "Đang kiểm tra cập nhật...",- "updateAvailable": "Có bản cập nhật: {{version}}","updateAvailableShort": "Có bản cập nhật","upToDate": "Đã cập nhật",- "downloadUpdate": "Tải cập nhật",- "restart": "Khởi động lại","updateCheckingDisabled": "Đã tắt kiểm tra cập nhật","downloading": "Đang tải... {{progress}}%","installing": "Đang cài đặt...","preparing": "Đang chuẩn bị...","checkForUpdates": "Kiểm tra cập nhật",- "portableUpdateTitle": "Manual update required",- "portableUpdateMessage": "Portable installs cannot be updated automatically. To update: download the latest NSIS installer from GitHub Releases, install it to the same folder, then copy your Data/ folder (settings, models, recordings) from the old version to the new one.",- "portableUpdateButton": "Open GitHub Releases"+ "portableUpdateTitle": "Cần cập nhật thủ công",+ "portableUpdateMessage": "Bản cài đặt di động không thể cập nhật tự động. Để cập nhật: tải trình cài đặt NSIS mới nhất từ GitHub Releases, cài đặt vào cùng thư mục, sau đó sao chép thư mục Data/ (cài đặt, mô hình, bản ghi) từ phiên bản cũ sang phiên bản mới.",+ "portableUpdateButton": "Mở GitHub Releases"},"common": {"loading": "Đang tải...",- "save": "Lưu",- "cancel": "Hủy",- "reset": "Đặt lại",- "add": "Thêm",- "remove": "Xóa","delete": "Xóa",- "edit": "Chỉnh sửa",- "create": "Tạo",- "update": "Cập nhật","close": "Đóng","open": "Mở","copy": "Sao chép","clear": "Xóa",- "default": "Mặc định",- "enabled": "Đã bật",- "disabled": "Đã tắt",- "on": "Bật",- "off": "Tắt",- "yes": "Có",- "no": "Không","noOptionsFound": "Không tìm thấy tùy chọn"},"accessibility": {- "permissionsRequired": "Cần quyền truy cập","permissionsDescription": "Handy cần quyền truy cập để gõ văn bản đã chuyển đổi.",- "openSettings": "Mở Cài đặt Hệ thống",- "dismiss": "Bỏ qua"+ "openSettings": "Mở Cài đặt Hệ thống"},"errors": {"loadDirectory": "Lỗi khi tải thư mục: {{error}}",@@ -612,7 +607,8 @@"modelLoadFailed": "Không thể tải mô hình: {{model}}","modelLoadFailedUnknown": "mô hình không xác định","pasteFailedTitle": "Không thể dán văn bản",- "pasteFailed": "Không thể dán văn bản vào ứng dụng đang hoạt động."+ "pasteFailed": "Không thể dán văn bản vào ứng dụng đang hoạt động.",+ "transcriptionFailedTitle": "Phiên âm thất bại"},"appLanguage": {"title": "Ngôn ngữ ứng dụng",@@ -621,5 +617,8 @@"overlay": {"transcribing": "Đang chuyển đổi...","processing": "Đang xử lý..."+ },+ "whatsNew": {+ "title": "Điểm mới trong Handy v{{version}}"}}diff --git a/src/i18n/locales/zh-TW/translation.json b/src/i18n/locales/zh-TW/translation.jsonindex 04357f97..61637720 100644--- a/src/i18n/locales/zh-TW/translation.json+++ b/src/i18n/locales/zh-TW/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "首先,請選擇一種模型",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "推薦",- "download": "下載",- "downloading": "下載中...","customModelDescription": "官方不支援",- "downloadFailed": "下載失敗,請重試","modelCard": {"accuracy": "準確度","speed": "速度"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "無法載入可用模型",- "downloadModel": "模型下載失敗: {{error}}"+ "selectModel": "Failed to select model"},"permissions": {"title": "需要權限",@@ -121,6 +121,7 @@},"modelSelector": {"custom": "自訂",+ "streaming": "串流","active": "使用中","switching": "切換中...","noModelsAvailable": "沒有可用的模型",@@ -144,16 +145,17 @@"capabilities": {"languageSelection": "支援多種輸入語言","singleLanguage": "僅支援此語言",- "multiLanguage": "多語言",+ "languageCount": "{{total}} languages","languageOnly": "僅 {{language}}","translation": "可翻譯為英語",- "translate": "翻譯為英語"- }+ "translate": "翻譯為英語",+ "streaming": "在您說話時即時顯示轉錄"+ },+ "legacy": "舊版"},"settings": {"modelSettings": {- "title": "{{model}} 設定",- "noSettingsNeeded": "此模型自動運行,無需設定"+ "title": "{{model}} 設定"},"general": {"title": "一般",@@ -187,7 +189,6 @@"language": {"title": "語言","description": "選擇語音識別的語言。選擇自動將自動判定語言,選擇特定語言可以提高該語言的準確度",- "descriptionUnsupported": "Parakeet 模型會自動偵測語言,無需手動選擇","searchPlaceholder": "搜尋語言...","noResults": "未找到語言","auto": "自動"@@ -202,18 +203,18 @@"description": "選擇轉錄模型或下載其他模型。不同模型提供不同的準確度和速度","yourModels": "已下載的模型","availableModels": "可供下載",- "downloaded": "已下載",- "available": "可下載","deleteConfirm": "確定要刪除 {{modelName}} 嗎?刪除後須重新下載才能使用","deleteActiveConfirm": "{{modelName}} 是您目前使用的模型。刪除後將停止轉錄,直到您選擇新的模型。確定要刪除嗎?","deleteTitle": "刪除模型","filters": {- "all": "全部",- "multiLanguage": "多語言",- "translation": "翻譯","allLanguages": "所有語言"},- "noModelsMatch": "沒有符合此篩選條件的模型"+ "noModelsMatch": "沒有符合此篩選條件的模型",+ "searchPlaceholder": "依名稱搜尋模型…",+ "rescan": {+ "label": "重新掃描",+ "tooltip": "重新掃描在 Handy 之外新增到模型資料夾或 Hugging Face 快取中的模型"+ }},"sound": {"title": "聲音",@@ -239,7 +240,6 @@}},"advanced": {- "title": "進階","groups": {"app": "應用程式","output": "輸出",@@ -256,7 +256,7 @@"description": "錄音停止後保持麥克風串流開啟30秒,減少連續轉錄時的延遲。啟用時可能會降低藍牙音訊品質。"},"acceleration": {- "whisper": {+ "transcribe": {"title": "Whisper 加速","description": "Whisper 模型的硬體加速。自動模式在可用時使用 GPU(macOS 上使用 Metal,Windows/Linux 上使用 Vulkan)。"},@@ -265,8 +265,6 @@"description": "ONNX 模型的硬體加速(Parakeet、Canary、Moonshine 等)。Windows 上的 DirectML 為實驗性功能。模型可能無法正常轉錄。"},"gpuDevice": {- "title": "GPU 裝置",- "description": "選擇用於 Whisper 推理的 GPU。自動選擇獨立 GPU。","auto": "自動"}},@@ -283,12 +281,22 @@"description": "在系統匣中顯示 Handy 圖示"},"overlay": {- "title": "懸浮窗位置",- "description": "在錄製和轉錄期間顯示視覺回饋懸浮窗。在 Linux 上建議選擇「無」",- "options": {- "none": "無",- "bottom": "底部",- "top": "頂部"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "無",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "懸浮窗位置",+ "description": "在錄製和轉錄期間顯示視覺回饋懸浮窗。在 Linux 上建議選擇「無」",+ "options": {+ "bottom": "底部",+ "top": "頂部"+ }}},"pasteMethod": {@@ -332,8 +340,7 @@},"translateToEnglish": {"label": "翻譯為英語",- "description": "在轉錄過程中自動將其他語言的語音翻譯為英語",- "descriptionUnsupported": "{{model}} 模型不支援翻譯功能"+ "description": "在轉錄過程中自動將其他語言的語音翻譯為英語"},"modelUnload": {"title": "卸載模型",@@ -356,10 +363,13 @@"add": "新增","remove": "刪除 {{word}}","duplicate": "「{{word}}」已存在"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "後處理","hotkey": {"title": "快捷鍵"},@@ -370,9 +380,6 @@"description": "選擇一個相容 OpenAI 的供應商"},"appleIntelligence": {- "title": "Apple Intelligence",- "description": "完全在裝置上運行,無需 API 金鑰或網路存取",- "requirements": "需要執行 macOS Tahoe(26.0)或更高版本的 Apple Silicon Mac。必須在系統設定中啟用 Apple Intelligence","unavailable": "Apple Intelligence 在此裝置上不可用。需要執行 macOS Tahoe(26.0)或更高版本的 Apple Silicon Mac,並在系統設定中啟用 Apple Intelligence"},"baseUrl": {@@ -387,10 +394,8 @@},"model": {"title": "模型",- "descriptionApple": "可設定 token 數量上限,或保持裝置預設值","descriptionCustom": "輸入自訂端點所需的模型 ID","descriptionDefault": "從所選供應商的可用模型中選擇",- "placeholderApple": "Apple Intelligence","placeholderWithOptions": "搜尋或選擇模型","placeholderNoOptions": "輸入模型名稱","refreshModels": "重新整理模型"@@ -518,6 +523,13 @@"recordingBuffer": {"title": "額外錄音緩衝","description": "放開按鍵後繼續錄音的額外時間(毫秒),以捕捉尾音。0 = 無額外緩衝。"+ },+ "whatsNewPreview": {+ "title": "預覽新功能",+ "description": "開啟最新內建版本資訊,且不標記為已看過",+ "button": "預覽",+ "noNotes": "找不到內建版本資訊",+ "error": "無法預覽版本資訊"}},"about": {@@ -542,60 +554,43 @@},"acknowledgments": {"title": "致謝",- "whisper": {- "title": "Whisper.cpp",+ "ggml": {+ "title": "ggml","description": "針對 OpenAI Whisper 自動語音識別模型的高效能推理引擎",- "details": "Handy 使用 Whisper.cpp 進行快速的本機語音轉文字處理。感謝 Georgi Gerganov 和貢獻者們的傑出工作"+ "details": "Handy 使用 ggml 進行快速的本機語音轉文字處理。感謝 Georgi Gerganov 和貢獻者們的傑出工作"}+ },+ "whatsNewUpdates": {+ "label": "顯示新功能",+ "description": "Handy 更新後顯示版本資訊"}}},"footer": {- "downloadingModel": "正在下載 {{model}}...","checkingUpdates": "檢查更新中...",- "updateAvailable": "有可用更新: {{version}}","updateAvailableShort": "有可用更新","upToDate": "已是最新版本",- "downloadUpdate": "下載更新",- "restart": "重新啟動","updateCheckingDisabled": "更新檢查已停用","downloading": "下載中... {{progress}}%","installing": "安裝中...","preparing": "準備中...","checkForUpdates": "檢查更新",- "portableUpdateTitle": "Manual update required",- "portableUpdateMessage": "Portable installs cannot be updated automatically. To update: download the latest NSIS installer from GitHub Releases, install it to the same folder, then copy your Data/ folder (settings, models, recordings) from the old version to the new one.",- "portableUpdateButton": "Open GitHub Releases"+ "portableUpdateTitle": "需要手動更新",+ "portableUpdateMessage": "可攜式安裝無法自動更新。更新方法:從 GitHub Releases 下載最新的 NSIS 安裝程式,安裝到相同資料夾,然後將舊版本的 Data/ 資料夾(設定、模型、錄音)複製到新版本。",+ "portableUpdateButton": "開啟 GitHub Releases"},"common": {"loading": "載入中...",- "save": "儲存",- "cancel": "取消",- "reset": "重設",- "add": "新增",- "remove": "移除","delete": "刪除",- "edit": "編輯",- "create": "建立",- "update": "更新","close": "關閉","open": "開啟","copy": "複製","clear": "清除",- "default": "預設",- "enabled": "已啟用",- "disabled": "已停用",- "on": "開",- "off": "關",- "yes": "是",- "no": "否","noOptionsFound": "未找到選項"},"accessibility": {- "permissionsRequired": "需要輔助使用權限","permissionsDescription": "Handy 需要輔助使用權限才能輸入轉錄的文字",- "openSettings": "開啟系統設定",- "dismiss": "關閉"+ "openSettings": "開啟系統設定"},"errors": {"loadDirectory": "載入目錄時發生錯誤: {{error}}",@@ -612,7 +607,8 @@"modelLoadFailed": "載入模型失敗: {{model}}","modelLoadFailedUnknown": "未知模型","pasteFailedTitle": "貼上文字失敗",- "pasteFailed": "無法將文字貼上至目前作用中的應用程式。"+ "pasteFailed": "無法將文字貼上至目前作用中的應用程式。",+ "transcriptionFailedTitle": "轉錄失敗"},"appLanguage": {"title": "應用程式語言",@@ -621,5 +617,8 @@"overlay": {"transcribing": "正在轉錄...","processing": "處理中..."+ },+ "whatsNew": {+ "title": "Handy v{{version}} 新功能"}}diff --git a/src/i18n/locales/zh/translation.json b/src/i18n/locales/zh/translation.jsonindex 1cad4166..998a96b6 100644--- a/src/i18n/locales/zh/translation.json+++ b/src/i18n/locales/zh/translation.json@@ -19,11 +19,12 @@},"onboarding": {"subtitle": "请选择一个转录模型以开始使用",+ "existingModelsTitle": "Compatible Models",+ "downloadModelsTitle": "Available to Download",+ "showAllModels": "Show all {{total}} models",+ "showFewerModels": "Show fewer models","recommended": "推荐",- "download": "下载",- "downloading": "下载中...","customModelDescription": "非官方支持",- "downloadFailed": "下载失败。请重试。","modelCard": {"accuracy": "准确度","speed": "速度"@@ -95,8 +96,7 @@}},"errors": {- "loadModels": "无法加载可用模型",- "downloadModel": "模型下载失败: {{error}}"+ "selectModel": "Failed to select model"},"permissions": {"title": "需要权限",@@ -121,6 +121,7 @@},"modelSelector": {"custom": "自定义",+ "streaming": "流式","active": "活跃","switching": "切换中...","noModelsAvailable": "没有可用的模型",@@ -141,37 +142,38 @@"downloadSpeed": "{{speed}} MB/s","capabilities": {"languageSelection": "支持多种输入语言",- "multiLanguage": "多语言",+ "languageCount": "{{total}} languages","translation": "可翻译为英语","translate": "翻译为英语","singleLanguage": "仅支持此语言",- "languageOnly": "仅 {{language}}"+ "languageOnly": "仅 {{language}}",+ "streaming": "在您说话时实时显示转录"},"cancel": "取消",- "cancelDownload": "取消下载"+ "cancelDownload": "取消下载",+ "legacy": "旧版"},"settings": {"modelSettings": {- "title": "{{model}} 设置",- "noSettingsNeeded": "此模型自动运行,无需配置。"+ "title": "{{model}} 设置"},"models": {"title": "转录模型","description": "选择转录模型或下载其他模型。不同模型提供不同的准确度和速度。",- "downloaded": "已下载",- "available": "可下载","deleteConfirm": "确定要删除 {{modelName}} 吗?您需要重新下载才能使用。","deleteActiveConfirm": "{{modelName}} 是您当前使用的模型。删除后将停止转录,直到您选择新的模型。确定要删除吗?","deleteTitle": "删除模型","filters": {- "all": "全部",- "multiLanguage": "多语言",- "translation": "翻译","allLanguages": "所有语言"},"noModelsMatch": "没有符合此筛选条件的模型。","yourModels": "已下载的模型",- "availableModels": "可供下载"+ "availableModels": "可供下载",+ "searchPlaceholder": "按名称搜索模型…",+ "rescan": {+ "label": "重新扫描",+ "tooltip": "重新扫描在 Handy 之外添加到模型文件夹或 Hugging Face 缓存中的模型"+ }},"general": {"title": "通用",@@ -205,7 +207,6 @@"language": {"title": "语言","description": "选择语音识别的语言。自动将自动确定语言,选择特定语言可以提高该语言的准确度。",- "descriptionUnsupported": "Parakeet 模型会自动检测语言,无需手动选择。","searchPlaceholder": "搜索语言...","noResults": "未找到语言","auto": "自动"@@ -239,7 +240,6 @@}},"advanced": {- "title": "高级","groups": {"app": "应用","output": "输出",@@ -256,7 +256,7 @@"description": "录音停止后保持麦克风流开启30秒,减少连续转录时的延迟。激活时可能会降低蓝牙音频质量。"},"acceleration": {- "whisper": {+ "transcribe": {"title": "Whisper 加速","description": "Whisper 模型的硬件加速。自动模式在可用时使用 GPU(macOS 上使用 Metal,Windows/Linux 上使用 Vulkan)。"},@@ -265,8 +265,6 @@"description": "ONNX 模型的硬件加速(Parakeet、Canary、Moonshine 等)。Windows 上的 DirectML 为实验性功能。模型可能无法正常转录。"},"gpuDevice": {- "title": "GPU 设备",- "description": "选择用于 Whisper 推理的 GPU。自动选择独立 GPU。","auto": "自动"}},@@ -283,12 +281,22 @@"description": "在系统托盘中显示 Handy 图标。"},"overlay": {- "title": "悬浮窗位置",- "description": "在录制和转录期间显示可视反馈悬浮窗。在 Linux 上建议选择「无」。",- "options": {- "none": "无",- "bottom": "底部",- "top": "顶部"+ "style": {+ "title": "Overlay",+ "description": "Choose the recording overlay: None hides it, Minimal shows a compact pill, Live shows transcription in real time as you speak (streaming-capable models only — look for the Streaming badge in the model picker). On Linux 'None' is recommended.",+ "options": {+ "none": "无",+ "minimal": "Minimal",+ "live": "Live"+ }+ },+ "position": {+ "title": "悬浮窗位置",+ "description": "在录制和转录期间显示可视反馈悬浮窗。在 Linux 上建议选择「无」。",+ "options": {+ "bottom": "底部",+ "top": "顶部"+ }}},"pasteMethod": {@@ -332,8 +340,7 @@},"translateToEnglish": {"label": "翻译为英语",- "description": "在转录过程中自动将其他语言的语音翻译为英语。",- "descriptionUnsupported": "{{model}} 模型不支持翻译功能。"+ "description": "在转录过程中自动将其他语言的语音翻译为英语。"},"modelUnload": {"title": "卸载模型",@@ -356,10 +363,13 @@"add": "添加","remove": "删除 {{word}}","duplicate": "\"{{word}}\" 已存在"+ },+ "voiceActivityDetection": {+ "title": "Voice Activity Detection",+ "description": "Filter silence from recordings. Streaming-capable models use a longer VAD tail; disabling VAD records raw audio."}},"postProcessing": {- "title": "后处理","hotkey": {"title": "快捷键"},@@ -370,9 +380,6 @@"description": "选择一个兼容 OpenAI 的提供商。"},"appleIntelligence": {- "title": "Apple Intelligence",- "description": "完全在设备上运行。无需 API 密钥或网络访问。",- "requirements": "需要运行 macOS Tahoe(26.0)或更高版本的 Apple Silicon Mac。必须在系统设置中启用 Apple Intelligence。","unavailable": "Apple Intelligence 在此设备上不可用。需要运行 macOS Tahoe(26.0)或更高版本的 Apple Silicon Mac,并在系统设置中启用 Apple Intelligence。"},"baseUrl": {@@ -387,10 +394,8 @@},"model": {"title": "模型",- "descriptionApple": "提供可选的数字令牌限制或保持默认的设备预设。","descriptionCustom": "提供自定义端点期望的模型标识符。","descriptionDefault": "选择所选提供商提供的模型。",- "placeholderApple": "Apple Intelligence","placeholderWithOptions": "搜索或选择模型","placeholderNoOptions": "输入模型名称","refreshModels": "刷新模型"@@ -518,6 +523,13 @@"recordingBuffer": {"title": "额外录音缓冲","description": "放开按键后继续录音的额外时间(毫秒),以捕捉尾音。0 = 无额外缓冲。"+ },+ "whatsNewPreview": {+ "title": "预览新功能",+ "description": "打开最新内置发行说明,且不标记为已查看",+ "button": "预览",+ "noNotes": "未找到内置发行说明",+ "error": "无法预览发行说明"}},"about": {@@ -542,60 +554,43 @@},"acknowledgments": {"title": "致谢",- "whisper": {- "title": "Whisper.cpp",+ "ggml": {+ "title": "ggml","description": "OpenAI Whisper 自动语音识别模型的高性能推理",- "details": "Handy 使用 Whisper.cpp 进行快速的本地语音转文字处理。感谢 Georgi Gerganov 和贡献者们的出色工作。"+ "details": "Handy 使用 ggml 进行快速的本地语音转文字处理。感谢 Georgi Gerganov 和贡献者们的出色工作。"}+ },+ "whatsNewUpdates": {+ "label": "显示新功能",+ "description": "Handy 更新后显示发行说明"}}},"footer": {- "downloadingModel": "正在下载 {{model}}...","checkingUpdates": "检查更新中...",- "updateAvailable": "有可用更新: {{version}}","updateAvailableShort": "有可用更新","upToDate": "已是最新版本",- "downloadUpdate": "下载更新",- "restart": "重启","updateCheckingDisabled": "更新检查已禁用","downloading": "下载中... {{progress}}%","installing": "安装中...","preparing": "准备中...","checkForUpdates": "检查更新",- "portableUpdateTitle": "Manual update required",- "portableUpdateMessage": "Portable installs cannot be updated automatically. To update: download the latest NSIS installer from GitHub Releases, install it to the same folder, then copy your Data/ folder (settings, models, recordings) from the old version to the new one.",- "portableUpdateButton": "Open GitHub Releases"+ "portableUpdateTitle": "需要手动更新",+ "portableUpdateMessage": "便携版无法自动更新。更新方法:从 GitHub Releases 下载最新的 NSIS 安装程序,安装到同一文件夹,然后将旧版本的 Data/ 文件夹(设置、模型、录音)复制到新版本。",+ "portableUpdateButton": "打开 GitHub Releases"},"common": {"loading": "加载中...",- "save": "保存",- "cancel": "取消",- "reset": "重置",- "add": "添加",- "remove": "移除","delete": "删除",- "edit": "编辑",- "create": "创建",- "update": "更新","close": "关闭","open": "打开","copy": "复制","clear": "清除",- "default": "默认",- "enabled": "已启用",- "disabled": "已禁用",- "on": "开",- "off": "关",- "yes": "是",- "no": "否","noOptionsFound": "未找到选项"},"accessibility": {- "permissionsRequired": "需要辅助功能权限","permissionsDescription": "Handy 需要辅助功能权限才能输入转录的文字。",- "openSettings": "打开系统设置",- "dismiss": "关闭"+ "openSettings": "打开系统设置"},"errors": {"loadDirectory": "加载目录时出错: {{error}}",@@ -612,7 +607,8 @@"modelLoadFailed": "加载模型失败: {{model}}","modelLoadFailedUnknown": "未知模型","pasteFailedTitle": "粘贴文本失败",- "pasteFailed": "无法将文本粘贴到当前活动的应用程序中。"+ "pasteFailed": "无法将文本粘贴到当前活动的应用程序中。",+ "transcriptionFailedTitle": "转录失败"},"appLanguage": {"title": "应用语言",@@ -621,5 +617,8 @@"overlay": {"transcribing": "正在转录...","processing": "处理中..."+ },+ "whatsNew": {+ "title": "Handy v{{version}} 新功能"}}diff --git a/src/lib/constants/languages.ts b/src/lib/constants/languages.tsindex 0d965674..790d1ac3 100644--- a/src/lib/constants/languages.ts+++ b/src/lib/constants/languages.ts@@ -3,11 +3,14 @@ export interface Language {label: string;}+export const CHINESE_LANGUAGE_CODE = "zh";+export const LANGUAGES: Language[] = [{ value: "auto", label: "Auto Detect" },{ value: "en", label: "English" },- { value: "zh-Hans", label: "Simplified Chinese" },- { value: "zh-Hant", label: "Traditional Chinese" },+ { value: CHINESE_LANGUAGE_CODE, label: "Chinese" },+ { value: "zh-Hans", label: "Chinese (Simplified output)" },+ { value: "zh-Hant", label: "Chinese (Traditional output)" },{ value: "yue", label: "Cantonese" },{ value: "de", label: "German" },{ value: "es", label: "Spanish" },@@ -107,3 +110,44 @@ export const LANGUAGES: Language[] = [{ value: "jw", label: "Javanese" },{ value: "su", label: "Sundanese" },];++const CHINESE_OUTPUT_INTENTS = new Set(["zh-Hans", "zh-Hant"]);++const LANGUAGE_LABELS = new Map(+ LANGUAGES.map((language) => [language.value, language.label] as const),+);++export const MODEL_CAPABILITY_LANGUAGES: Language[] = LANGUAGES.filter(+ (language) =>+ language.value !== "auto" && !CHINESE_OUTPUT_INTENTS.has(language.value),+);++export const recognitionLanguage = (languageCode: string): string =>+ CHINESE_OUTPUT_INTENTS.has(languageCode)+ ? CHINESE_LANGUAGE_CODE+ : languageCode;++export const supportsLanguageCode = (+ supportedLanguages: string[],+ languageCode: string,+): boolean => {+ const recognitionCode = recognitionLanguage(languageCode);+ return supportedLanguages.some(+ (supportedLanguage) =>+ recognitionLanguage(supportedLanguage) === recognitionCode,+ );+};++export const getUniqueCapabilityLanguages = (+ supportedLanguages: string[],+): string[] => {+ const seen = new Set<string>();+ return supportedLanguages.map(recognitionLanguage).filter((languageCode) => {+ if (seen.has(languageCode)) return false;+ seen.add(languageCode);+ return true;+ });+};++export const getLanguageLabel = (languageCode: string): string | undefined =>+ LANGUAGE_LABELS.get(languageCode);diff --git a/src/overlay/RecordingOverlay.css b/src/overlay/RecordingOverlay.cssindex e11b509c..5afbf6e1 100644--- a/src/overlay/RecordingOverlay.css+++ b/src/overlay/RecordingOverlay.css@@ -1,95 +1,369 @@-.recording-overlay {- height: 36px;- width: 172px;- display: grid;- grid-template-columns: auto 1fr auto;- align-items: center;- padding: 6px;- background: #000000cc;- border-radius: 18px;- opacity: 0;- transition: opacity 300ms ease-out;- box-sizing: border-box;+@import "../styles/theme.css";++:root {+ --s-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;+ /* Near-opaque app surface (theme.css --color-background at 98%). Auto-flips+ light/dark with --color-background, so no dark-mode override is needed. */+ --s-surface: color-mix(in srgb, var(--color-background) 98%, transparent);+ /* Accent = logo pink; flips automatically via --color-logo-primary. */+ --s-accent: var(--color-logo-primary);+ --s-accent-soft: color-mix(+ in srgb,+ var(--color-background-ui) 16%,+ transparent+ );+ /* Neutrals. Hairlines reuse the app's mid-gray at low opacity — same vocabulary+ as the app's border-mid-gray/* utilities. muted/faint are overlay-specific+ secondary/tertiary text grays (no theme equivalent). */+ --s-muted: #6e6e6e;+ --s-faint: #9a9a9a;+ --s-border: color-mix(in srgb, var(--color-mid-gray) 22%, transparent);+ --s-hair: color-mix(in srgb, var(--color-mid-gray) 12%, transparent);++ /* Card geometry — single source of truth for the visible overlay sizes. The+ native overlay window (overlay.rs) is sized from these: it must be at least+ the card's max footprint (--ov-work-w for compact, --ov-open-w for Live),+ since the card is anchored flush to the screen edge in CSS. Keep overlay.rs+ in sync when these change. */+ --ov-rest-w: 172px; /* resting compact pill (minimal, recording) -- roomy enough+ for the English working label before the grow starts */+ --ov-pill-w: 184px; /* base width / Live pill before it opens or collapses */+ --ov-work-w: 216px; /* working pill (transcribing / polishing) -- wide enough to+ center longer labels; shared by Live (collapsed) + minimal */+ --ov-open-w: 392px; /* Live panel, expanded */+ --ov-base-h: 40px; /* control-row height (.sbase) */+ --ov-cap-max-h: 64px; /* max height of the scrolling live-text region */+}+@media (prefers-color-scheme: dark) {+ :root {+ /* Accent uses the lighter logo pink in dark — reads better on the dark+ surface than the deeper UI pink. */+ --s-accent-soft: color-mix(+ in srgb,+ var(--color-logo-primary) 20%,+ transparent+ );+ --s-muted: #a3a09a;+ --s-faint: #6f6c66;+ /* Hairlines flip to the near-white text token for contrast on dark. */+ --s-border: color-mix(in srgb, var(--color-text) 12%, transparent);+ --s-hair: color-mix(in srgb, var(--color-text) 8%, transparent);+ }}-.overlay-left {+/* ============================================================+ Unified overlay stage — one fixed, transparent container shared by the compact+ pill and the Live panel (both render the same `.scard` base). The card is+ anchored flush to the screen-edge side (bottom by default, top when placed up+ top) and centered horizontally, so the visible card sits exactly+ OVERLAY_*_OFFSET from the screen edge regardless of window height — only the+ offsets in overlay.rs move it. Pops scale from that edge, so the card is never+ drawn past it (matters for the 4px top offset on Windows/Linux).+ ============================================================ */+.ov-stage {+ position: fixed;+ inset: 0;display: flex;- align-items: center;+ justify-content: center; /* horizontal centering, kept for both forms */+ align-items: flex-end; /* bottom placement: flush to the bottom edge */+ font-family: var(--s-font);+}+.ov-stage.top {+ align-items: flex-start; /* top placement: flush to the top edge */}-.overlay-middle {- display: flex;- align-items: center;- justify-content: center;+/* Compact pill: fade the whole container in/out (the pill itself never pops or+ morphs). */+.ov-fade {+ opacity: 0;+ transition: opacity 200ms ease-out;+}+.ov-fade.show {+ opacity: 1;}-.overlay-right {- display: flex;- align-items: center;- justify-content: flex-end;+/* Top placement, Live panel: stack the control pill above the text region so the+ card grows downward from its top edge (oldest line under the pill, newest at+ the bottom) — mirroring the bottom overlay's upward flow. The compact pill has+ no flowing text, so this only affects the Live panel. The text region keeps the+ same fade + scroll-pin; older lines dissolve up under the pill. */+.ov-stage.top .scard {+ /* column-reverse stacks the control pill above the text region. */+ flex-direction: column-reverse;+ transform-origin: top center;+}+.ov-stage.top .stext-cap {+ /* Mirror of the bottom overlay (top: 12 / bottom: 0): the first line sits flush+ under the pill and the breathing room moves below the text. The top fade is+ off at rest — at zero top padding it would dim the resting first line — and+ switches on (below) only once text overflows. */+ padding-top: 0;+ padding-bottom: 12px;+ -webkit-mask-image: none;+ mask-image: none;+}+/* Once live text overflows, fade older lines up under the pill, matching the+ bottom overlay's top fade. Gated on `.overflowing` so a short resting line+ (sitting at the very top) is never dimmed. */+.ov-stage.top .stext-cap.overflowing {+ -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px);+ mask-image: linear-gradient(to bottom, transparent 0, #000 18px);+}+.ov-stage.top .stext-cap p {+ /* Top-anchor short text just under the pill; on overflow the cap still pins to+ the bottom (newest visible) and older lines fade off the top, same as bottom. */+ margin: 0;}-.bars-container {- display: flex;- align-items: end;- justify-content: center;- gap: 3px;- padding-bottom: 0px;- height: 24px;+/* Shared base card. Flat: theme surface + hairline border, no shadow or blur. */+.scard {+ width: var(--ov-pill-w);+ border-radius: 24px;overflow: hidden;+ display: flex;+ flex-direction: column;+ flex: none; /* hold our own width; never let the stage flex shrink the card */+ transform-origin: bottom center;+ background: var(--s-surface);+ border: 1px solid var(--s-border);+ /* Flat: no drop shadow, no backdrop blur/saturate (was a glassy gradient look). */+ /* pop-in plays on mount; morph (width/radius) is a transition */+ animation: scard-pop 460ms cubic-bezier(0.22, 1, 0.36, 1);+ transition:+ width 460ms cubic-bezier(0.22, 1, 0.36, 1),+ border-radius 460ms cubic-bezier(0.22, 1, 0.36, 1);+ will-change: transform, width, opacity;+}+@keyframes scard-pop {+ from {+ opacity: 0;+ /* Scale from the anchored edge (transform-origin) — never translate past it. */+ transform: scale(0.92);+ }+ to {+ opacity: 1;+ transform: none;+ }+}+.scard.leaving {+ opacity: 0;+ transform: scale(0.96);+ transition:+ opacity 240ms ease,+ transform 300ms ease;+}+.scard.open {+ width: var(--ov-open-w);+ border-radius: 16px;+}+.scard.working {+ width: var(--ov-work-w);+ border-radius: 18px;}-.bar {- width: 6px;- background: #ffe5ee;- max-height: 20px;- border-radius: 2px;- transition: height 80ms linear;- min-height: 4px;+/* Compact form: two fixed widths so the recording→working change is an animatable+ width transition (intrinsic max-content can't be transitioned, and every label+ is short enough to fit the resting pill, so content-sizing produced no visible+ grow). The resting pill hugs the waveform; the working pill is roomy enough to+ center the longest label — the .swork-label ellipsis is only a safety net past it. */+.scard.compact {+ animation: none;+ width: var(--ov-rest-w);+}+.scard.compact.cworking {+ width: var(--ov-work-w);}-.recording-overlay.fade-in {+/* text region — auto-height open via grid-rows trick; region fades as a whole */+.stext {+ display: grid;+ grid-template-rows: 0fr;+ opacity: 0;+ transition:+ grid-template-rows 440ms cubic-bezier(0.22, 1, 0.36, 1),+ opacity 260ms ease;+}+.scard.open .stext {+ grid-template-rows: 1fr;opacity: 1;}--.transcribing-text {- color: white;- font-size: 12px;- font-family:- -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;- animation: transcribing-pulse 1.5s infinite ease-in-out;+.stext-clip {+ overflow: hidden;+ min-height: 0;+}+.stext-cap {+ max-height: var(--ov-cap-max-h);+ overflow-y: auto;+ overscroll-behavior: contain;+ display: flex;+ flex-direction: column;+ padding-top: 12px;+ padding-bottom: 0px;+ padding-left: 14px;+ padding-right: 14px;+ font-size: 15px;+ font-style: italic;+ line-height: 1.35;+ letter-spacing: -0.003em;+ color: color-mix(in srgb, var(--color-text) 90%, transparent);+ -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px);+ mask-image: linear-gradient(to bottom, transparent 0, #000 18px);+ scrollbar-width: none; /* Firefox */+ -ms-overflow-style: none; /* legacy Edge */+}+/* Hide the scrollbar (WebKit/Chromium) — scroll-back is signalled by the fade. */+.stext-cap::-webkit-scrollbar {+ display: none;+}+.stext-cap p {+ /* Bottom-anchor the text when it's shorter than the viewport, avoiding the+ justify-content:flex-end overflow bug that makes the top unscrollable. */+ margin: auto 0 0;+}+.stext-cap .tentative {+ color: inherit;+}+.scaret {+ display: inline-block;+ width: 2px;+ height: 1.02em;+ translate: 0 3px;+ margin-left: 1px;+ background: var(--s-accent);+ border-radius: 2px;+ animation: scaret-blink 1.05s steps(1) infinite;+}+@keyframes scaret-blink {+ 50% {+ opacity: 0;+ }}-@keyframes transcribing-pulse {- 0%,- 100% {- opacity: 0.6;+/* base row — dot (left) | waveform (center) | timer + cancel (right).+ Same structure for pill & panel; the dot stays anchored left in both. */+.sbase {+ height: var(--ov-base-h);+ padding: 0 10px;+ display: grid;+ /* Equal side columns (min 22px to hold the cancel button) keep the center item+ — waveform or label — centered whether the pill is at min width or content-+ sized. */+ grid-template-columns: minmax(22px, 1fr) auto minmax(22px, 1fr);+ align-items: center;+}+.sbase-l {+ display: flex;+ padding-left: 5px;+ align-items: center;+ justify-self: start;+}+.sbase-r {+ display: flex;+ align-items: center;+ gap: 10px;+ justify-self: end;+}+.sdot {+ width: 7px;+ height: 7px;+ border-radius: 50%;+ background: var(--s-accent);+ flex: none;+ animation: sdot-pulse 1.9s infinite;+}+@keyframes sdot-pulse {+ 0% {+ box-shadow: 0 0 0 0 var(--s-accent-soft);}- 50% {- opacity: 1;+ 70% {+ box-shadow: 0 0 0 7px transparent;}}+.stimer {+ font-size: 12px;+ color: var(--s-faint);+ font-variant-numeric: tabular-nums;+ white-space: nowrap;+ opacity: 0;+ transition: opacity 240ms ease 80ms;+}+.scard.open .stimer {+ opacity: 1;+}-.cancel-button {- width: 24px;- height: 24px;+/* Waveform — simple reactive bars, themed; heights set inline from mic levels. */+.swave {+ display: flex;+ align-items: center;+ gap: 3px;+ padding-right: 8px;+ height: 18px;+ flex: none;+}+.swave i {+ width: 4px;+ min-height: 3px;+ max-height: 18px;+ border-radius: 2px;+ background: var(--s-accent);+ transition: height 80ms linear;+}+.sx {+ width: 22px;+ height: 22px;border-radius: 50%;- background: transparent;+ flex: none;+ padding: 0;+ border: 0;+ -webkit-appearance: none;+ appearance: none;display: flex;align-items: center;justify-content: center;+ color: var(--s-muted);+ background: var(--s-hair);cursor: pointer;transition:- background-color 150ms ease-out,- transform 100ms ease-out;- flex-shrink: 0;+ background-color 150ms ease,+ color 150ms ease,+ transform 100ms ease;}--.cancel-button:hover {- background: #faa2ca33;+.sx svg {+ width: 9px;+ height: 9px;+ display: block;+}+.sx:hover {+ background: var(--s-accent-soft);+ color: var(--color-text);transform: scale(1.05);}--.cancel-button:active {+.sx:active {transform: scale(0.95);}++/* working state (transcribing / polishing) — spinner + label */+.sspinner {+ width: 13px;+ height: 13px;+ border-radius: 50%;+ border: 2px solid var(--s-hair);+ border-top-color: var(--s-accent);+ animation: sspin 0.7s linear infinite;+ flex: none;+}+@keyframes sspin {+ to {+ transform: rotate(1turn);+ }+}+.swork-label {+ font-size: 12px;+ color: var(--s-muted);+ white-space: nowrap;+ padding: 0 8px; /* breathing room from the spinner / cancel when content-sized */+ /* Safety net: ellipsize rather than clip if a label exceeds the max pill width. */+ min-width: 0;+ overflow: hidden;+ text-overflow: ellipsis;+}diff --git a/src/overlay/RecordingOverlay.tsx b/src/overlay/RecordingOverlay.tsxindex 67f354dd..1fcfc0ff 100644--- a/src/overlay/RecordingOverlay.tsx+++ b/src/overlay/RecordingOverlay.tsx@@ -1,117 +1,282 @@import { listen } from "@tauri-apps/api/event";-import React, { useEffect, useRef, useState } from "react";+import React, { useEffect, useLayoutEffect, useRef, useState } from "react";import { useTranslation } from "react-i18next";-import {- MicrophoneIcon,- TranscriptionIcon,- CancelIcon,-} from "../components/icons";import "./RecordingOverlay.css";-import { commands } from "@/bindings";+import { commands, events } from "@/bindings";+import type {+ StreamPhase,+ StreamPhaseEvent,+ StreamTextEvent,+ StreamWorkKind,+} from "@/bindings";import i18n, { syncLanguageFromSettings } from "@/i18n";import { getLanguageDirection } from "@/lib/utils/rtl";-type OverlayState = "recording" | "transcribing" | "processing";+type OverlayState = "recording" | "streaming" | "transcribing" | "processing";++// Number of reactive bars in the waveform (the simple, smoothed style shared by+// every overlay form). Mic levels arrive as 16 FFT buckets; we take the first N.+const WAVE_BARS = 9;const RecordingOverlay: React.FC = () => {const { t } = useTranslation();const [isVisible, setIsVisible] = useState(false);const [state, setState] = useState<OverlayState>("recording");- const [levels, setLevels] = useState<number[]>(Array(16).fill(0));+ const [levels, setLevels] = useState<number[]>(Array(WAVE_BARS).fill(0));+ const [streamText, setStreamText] = useState<StreamTextEvent>({+ committed: "",+ tentative: "",+ });+ const [phase, setPhase] = useState<StreamPhase>("listening");+ const [workKind, setWorkKind] = useState<StreamWorkKind>("transcribing");+ const [elapsed, setElapsed] = useState(0);+ // Bumped on each new streaming session so the Live card remounts fresh (replays+ // the pop-in, and never animates in from the previous panel's open size).+ const [session, setSession] = useState(0);+ // Overlay placement (top vs bottom of the screen). The Live panel grows downward+ // from a top overlay (oldest line under the pill) and upward from a bottom one.+ const [position, setPosition] = useState<"top" | "bottom">("bottom");+ // True once live text overflows the cap. A top overlay fades its top edge only+ // while overflowing, so the resting first line stays crisp flush under the pill.+ const [overflowing, setOverflowing] = useState(false);+const smoothedLevelsRef = useRef<number[]>(Array(16).fill(0));+ // Live-text scroll-back: the text region "sticks" to the newest line while the+ // user is at the bottom; if they scroll up to read history, auto-follow pauses+ // until they scroll back down.+ const capRef = useRef<HTMLDivElement>(null);+ const pinnedRef = useRef(true);const direction = getLanguageDirection(i18n.language);useEffect(() => {const setupEventListeners = async () => {- // Listen for show-overlay event from Rustconst unlistenShow = await listen("show-overlay", async (event) => {- // Sync language from settings each time overlay is shownawait syncLanguageFromSettings();+ // The Live panel flows downward from a top overlay and upward from a+ // bottom one; read the placement so the layout can flip to match.+ try {+ const settings = await commands.getAppSettings();+ if (settings.status === "ok") {+ setPosition(+ settings.data.overlay_position === "top" ? "top" : "bottom",+ );+ }+ } catch {+ // Keep the previous/default placement if settings can't be read.+ }const overlayState = event.payload as OverlayState;setState(overlayState);+ if (overlayState === "recording" || overlayState === "streaming") {+ setStreamText({ committed: "", tentative: "" });+ }+ if (overlayState === "streaming") {+ setPhase("listening");+ setWorkKind("transcribing");+ setElapsed(0);+ setSession((s) => s + 1); // remount the card fresh for this session+ }setIsVisible(true);});- // Listen for hide-overlay event from Rustconst unlistenHide = await listen("hide-overlay", () => {setIsVisible(false);});- // Listen for mic-level updatesconst unlistenLevel = await listen<number[]>("mic-level", (event) => {const newLevels = event.payload as number[];-- // Apply smoothing to reduce jitter+ // Exponential smoothing across the 16 buckets, then take the first N+ // bars for the shared waveform.const smoothed = smoothedLevelsRef.current.map((prev, i) => {const target = newLevels[i] || 0;- return prev * 0.7 + target * 0.3; // Smooth transition+ return prev * 0.7 + target * 0.3;});-smoothedLevelsRef.current = smoothed;- setLevels(smoothed.slice(0, 9));+ setLevels(smoothed.slice(0, WAVE_BARS));+ });++ const unlistenStream = await events.streamTextEvent.listen((event) => {+ setStreamText(event.payload);+ });++ const unlistenPhase = await events.streamPhaseEvent.listen((event) => {+ const payload: StreamPhaseEvent = event.payload;+ setPhase(payload.phase);+ if (payload.kind) setWorkKind(payload.kind);});- // Cleanup functionreturn () => {unlistenShow();unlistenHide();unlistenLevel();+ unlistenStream();+ unlistenPhase();};};setupEventListeners();}, []);- const getIcon = () => {- if (state === "recording") {- return <MicrophoneIcon />;- } else {- return <TranscriptionIcon />;- }+ // Elapsed timer while the Live overlay is visible.+ useEffect(() => {+ if (state !== "streaming" || !isVisible) return;+ const id = setInterval(() => setElapsed((e) => e + 1), 1000);+ return () => clearInterval(id);+ }, [state, isVisible]);++ // Stick to the bottom as text streams in — but only while pinned, so a user who+ // has scrolled up to read history isn't yanked back down by the next chunk.+ useLayoutEffect(() => {+ const el = capRef.current;+ if (!el) return;+ // Fade the top edge only once text actually overflows the cap.+ setOverflowing(el.scrollHeight > el.clientHeight + 1);+ if (pinnedRef.current) el.scrollTop = el.scrollHeight;+ }, [streamText]);++ // Each fresh streaming session starts pinned to the bottom, fade cleared.+ useEffect(() => {+ pinnedRef.current = true;+ setOverflowing(false);+ }, [session]);++ // Re-pin when the user is within ~a line of the bottom; unpin otherwise.+ const handleStreamScroll = () => {+ const el = capRef.current;+ if (!el) return;+ pinnedRef.current = el.scrollHeight - el.scrollTop - el.clientHeight <= 16;};- return (- <div- dir={direction}- className={`recording-overlay ${isVisible ? "fade-in" : ""}`}+ const fmtTime = (s: number) =>+ `${Math.floor(s / 60)}:${String(s % 60).padStart(2, "0")}`;++ // ---- Shared building blocks (one visual language for every overlay form) ----+ const waveform = (+ <div className="swave">+ {levels.map((v, i) => (+ <i+ key={i}+ style={{+ height: `${Math.max(3, Math.min(18, 3 + Math.pow(v, 0.7) * 15))}px`,+ }}+ />+ ))}+ </div>+ );++ const cancelBtn = (+ <button+ className="sx"+ aria-label="cancel"+ onClick={() => commands.cancelOperation()}>- <div className="overlay-left">{getIcon()}</div>+ <svg viewBox="0 0 16 16" aria-hidden="true">+ <path+ d="M4 4 L12 12 M12 4 L4 12"+ stroke="currentColor"+ strokeWidth="1.6"+ strokeLinecap="round"+ />+ </svg>+ </button>+ );++ // dot (left) | waveform (center) | timer + cancel (right) — same structure for+ // pill & panel, so the Live morph is a pure width change.+ const listeningRow = (showTimer: boolean, showCancel: boolean) => (+ <div className="sbase">+ <div className="sbase-l">+ <span className="sdot" />+ </div>+ {waveform}+ <div className="sbase-r">+ {showTimer && <span className="stimer">{fmtTime(elapsed)}</span>}+ {showCancel && cancelBtn}+ </div>+ </div>+ );++ // spinner (left) | label (center) | cancel (right) — same 3-zone grid as the+ // listening row, so the label is centered.+ const workingRow = (label: string, showCancel: boolean) => (+ <div className="sbase">+ <div className="sbase-l">+ <span className="sspinner" />+ </div>+ <span className="swork-label">{label}</span>+ <div className="sbase-r">{showCancel && cancelBtn}</div>+ </div>+ );++ // ---- Live overlay: a pill that sculpts open into a panel ----+ if (state === "streaming") {+ const hasText =+ streamText.committed.length > 0 || streamText.tentative.length > 0;+ const working = phase === "working";+ // Keep the panel open whenever there's text — even while finalizing — so the+ // transcript stays put under a working spinner instead of collapsing and+ // squishing the text mid-stream. Only fall back to the small working pill+ // when there was no text to preserve.+ const open = hasText;+ const collapsed = working && !hasText;- <div className="overlay-middle">- {state === "recording" && (- <div className="bars-container">- {levels.map((v, i) => (+ return (+ <div dir={direction} className={`ov-stage ${position}`}>+ <div+ key={session}+ className={`scard ${open ? "open" : ""} ${collapsed ? "working" : ""} ${+ isVisible ? "" : "leaving"+ }`}+ >+ <div className="stext">+ <div className="stext-clip"><div- key={i}- className="bar"- style={{- height: `${Math.min(20, 4 + Math.pow(v, 0.7) * 16)}px`, // Cap at 20px max height- transition: "height 60ms ease-out, opacity 120ms ease-out",- opacity: Math.max(0.2, v * 1.7), // Minimum opacity for visibility- }}- />- ))}+ className={`stext-cap ${overflowing ? "overflowing" : ""}`}+ ref={capRef}+ onScroll={handleStreamScroll}+ >+ <p>+ <span className="committed">+ {streamText.committed ? streamText.committed + " " : ""}+ </span>+ <span className="tentative">{streamText.tentative}</span>+ {/* Drop the blinking caret once finalizing — it's no longer+ capturing, and a static spinner conveys the work. */}+ {!working && <span className="scaret" />}+ </p>+ </div>+ </div></div>- )}- {state === "transcribing" && (- <div className="transcribing-text">{t("overlay.transcribing")}</div>- )}- {state === "processing" && (- <div className="transcribing-text">{t("overlay.processing")}</div>- )}+ {working+ ? workingRow(+ workKind === "polishing"+ ? t("overlay.processing")+ : t("overlay.transcribing"),+ true,+ )+ : listeningRow(open, true)}+ </div></div>+ );+ }- <div className="overlay-right">- {state === "recording" && (- <div- className="cancel-button"- onClick={() => {- commands.cancelOperation();- }}- >- <CancelIcon />- </div>- )}+ // ---- Minimal overlay: exactly one row at a time — waveform (recording), or a+ // spinner + label (transcribing / processing). Never both. The pill animates its+ // width between them; the cancel button is in both rows so it stays put.+ const working = state === "transcribing" || state === "processing";+ const workLabel =+ state === "processing"+ ? t("overlay.processing")+ : t("overlay.transcribing");++ return (+ <div+ dir={direction}+ className={`ov-stage ${position} ov-fade ${isVisible ? "show" : ""}`}+ >+ <div+ className={`scard compact ${working && isVisible ? "cworking" : ""}`}+ >+ {working ? workingRow(workLabel, true) : listeningRow(false, true)}</div></div>);diff --git a/src/stores/modelStore.ts b/src/stores/modelStore.tsindex 901173aa..01d2233b 100644--- a/src/stores/modelStore.ts+++ b/src/stores/modelStore.ts@@ -30,15 +30,14 @@ interface ModelsStore {downloadStats: Record<string, DownloadStats>;loading: boolean;error: string | null;- hasAnyModels: boolean;- isFirstRun: boolean;initialized: boolean;+ isRescanning: boolean;// Actionsinitialize: () => Promise<void>;loadModels: () => Promise<void>;loadCurrentModel: () => Promise<void>;- checkFirstRun: () => Promise<boolean>;+ rescanLocalModels: () => Promise<void>;selectModel: (modelId: string) => Promise<boolean>;downloadModel: (modelId: string) => Promise<boolean>;cancelDownload: (modelId: string) => Promise<boolean>;@@ -67,9 +66,8 @@ export const useModelStore = create<ModelsStore>()(downloadStats: {},loading: true,error: null,- hasAnyModels: false,- isFirstRun: false,initialized: false,+ isRescanning: false,// Internal setterssetModels: (models) => set({ models }),@@ -128,18 +126,19 @@ export const useModelStore = create<ModelsStore>()(}},- checkFirstRun: async () => {+ rescanLocalModels: async () => {+ set({ isRescanning: true });try {- const result = await commands.hasAnyModelsAvailable();- if (result.status === "ok") {- const hasModels = result.data;- set({ hasAnyModels: hasModels, isFirstRun: !hasModels });- return !hasModels;+ const result = await commands.rescanLocalModels();+ if (result.status !== "ok") {+ set({ error: `Failed to rescan models: ${result.error}` });}- return false;+ // On success the backend emits `models-updated`, which reloads the list+ // via the listener registered in initialize().} catch (err) {- console.error("Failed to check model availability:", err);- return false;+ set({ error: `Failed to rescan models: ${err}` });+ } finally {+ set({ isRescanning: false });}},@@ -148,11 +147,7 @@ export const useModelStore = create<ModelsStore>()(set({ error: null });const result = await commands.setActiveModel(modelId);if (result.status === "ok") {- set({- currentModel: modelId,- isFirstRun: false,- hasAnyModels: true,- });+ set({ currentModel: modelId });return true;} else {set({ error: `Failed to switch to model: ${result.error}` });@@ -273,10 +268,10 @@ export const useModelStore = create<ModelsStore>()(initialize: async () => {if (get().initialized) return;- const { loadModels, loadCurrentModel, checkFirstRun } = get();+ const { loadModels, loadCurrentModel } = get();// Load initial data- await Promise.all([loadModels(), loadCurrentModel(), checkFirstRun()]);+ await Promise.all([loadModels(), loadCurrentModel()]);// Set up event listenerslisten<DownloadProgress>("model-download-progress", (event) => {@@ -426,6 +421,10 @@ export const useModelStore = create<ModelsStore>()(get().loadCurrentModel();});+ listen("models-updated", () => {+ get().loadModels();+ });+set({ initialized: true });},})),diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.tsindex ef35ebfc..02a8b670 100644--- a/src/stores/settingsStore.ts+++ b/src/stores/settingsStore.ts@@ -4,7 +4,7 @@ import { listen } from "@tauri-apps/api/event";import type {AppSettings as Settings,AudioDevice,- WhisperAcceleratorSetting,+ TranscribeAcceleratorSetting,OrtAcceleratorSetting,} from "@/bindings";import { commands } from "@/bindings";@@ -88,6 +88,10 @@ const settingUpdaters: {commands.changeAutostartSetting(value as boolean),update_checks_enabled: (value) =>commands.changeUpdateChecksSetting(value as boolean),+ show_whats_new_on_update: (value) =>+ commands.changeShowWhatsNewOnUpdateSetting(value as boolean),+ whats_new_last_seen_version: (value) =>+ commands.changeWhatsNewLastSeenVersionSetting(value as string),push_to_talk: (value) => commands.changePttSetting(value as boolean),selected_microphone: (value) =>commands.setSelectedMicrophone(@@ -143,16 +147,18 @@ const settingUpdaters: {commands.changeExperimentalEnabledSetting(value as boolean),lazy_stream_close: (value) =>commands.changeLazyStreamCloseSetting(value as boolean),+ overlay_style: (value) => commands.changeOverlayStyleSetting(value as string),+ vad_enabled: (value) => commands.changeVadEnabledSetting(value as boolean),show_tray_icon: (value) =>commands.changeShowTrayIconSetting(value as boolean),- whisper_accelerator: (value) =>- commands.changeWhisperAcceleratorSetting(- value as WhisperAcceleratorSetting,+ transcribe_accelerator: (value) =>+ commands.changeTranscribeAcceleratorSetting(+ value as TranscribeAcceleratorSetting,),ort_accelerator: (value) =>commands.changeOrtAcceleratorSetting(value as OrtAcceleratorSetting),- whisper_gpu_device: (value) =>- commands.changeWhisperGpuDevice(value as number),+ transcribe_gpu_device: (value) =>+ commands.changeTranscribeGpuDevice(value as number),extra_recording_buffer_ms: (value) =>commands.changeExtraRecordingBufferSetting(value as number),};diff --git a/src/styles/theme.css b/src/styles/theme.cssnew file mode 100644index 00000000..401e00db--- /dev/null+++ b/src/styles/theme.css@@ -0,0 +1,20 @@+/* Handy Colors */++:root {+ --color-text: #0f0f0f;+ --color-background: #fbfbfb;+ --color-background-ui: #da5893;+ --color-logo-primary: #faa2ca;+ --color-logo-stroke: #382731;+ --color-text-stroke: #f6f6f6;+ --color-mid-gray: #808080;+}++@media (prefers-color-scheme: dark) {+ :root {+ --color-text: #fbfbfb;+ --color-background: #2c2b29;+ --color-logo-primary: #f28cbb;+ --color-logo-stroke: #fad1ed;+ }+}diff --git a/tailwind.config.js b/tailwind.config.jsdeleted file mode 100644index edb04470..00000000--- a/tailwind.config.js+++ /dev/null@@ -1,16 +0,0 @@-/** @type {import('tailwindcss').Config} */-export default {- content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],- theme: {- extend: {- colors: {- text: "var(--color-text)",- background: "var(--color-background)",- "logo-primary": "var(--color-logo-primary)",- "logo-stroke": "var(--color-logo-stroke)",- "text-stroke": "var(--color-text-stroke)",- },- },- },- plugins: [],-};