Commit Graph
78 Commits
Author SHA1 Message Date
Palash Debnath 4aa2cd27b6 Polish desktop setup, settings and studio workspaces (#4527)
* Polish desktop setup, settings and studio workspaces

* Add desktop refresh changelog entry

* Check home creation destinations in the desktop guard

* Align desktop workflow checks with the redesigned controls and restore paired consent choices

* Stabilize native window and titlebar checks during navigation

* Restore a continuous workspace background across desktop chrome

* Verify workspace and settings panel corners in the theme smoke

* Give Support a full-width donation panel and stack sponsor, Pro and contact sections

* Give sponsor marks room and simplify Support actions

* Organize Support contact actions in a responsive grid

* Fix desktop take navigation, drawer visibility and shortcut capture

* Recover desktop setup choices when local settings cannot be read or saved

* Welcome users with the studio cat and credit the open-source community

* Compare exact filesystem identities before claiming an existing terminal command

* Check visible setup controls and model headings and isolate Home credits
2026-11-29 08:57:06 +05:30
669ed5ef0d fix(xpu): route integrated Intel Arc unified memory to TTS release (#4480)
* fix(xpu): route integrated Intel Arc unified memory to TTS release

Detect a single integrated Intel Arc XPU by its tiny local_mem_size and
treat it as unified memory, so offload_tts_for_asr() releases the TTS model
via _offload_unified_memory() instead of relocating it CPU<->XPU with
_relocate_shared_model(). Discrete Arc, CUDA, NPU, multi-XPU and unreadable
property cases keep the dedicated path.

The forced clone-reference release is gated on that same detection, so
non-integrated unified hosts (Apple Silicon, CPU-only) keep the old
headroom window; only the integrated Intel Arc case becomes unconditional.

Also wrap the clone-reference auto-transcribe path with
offload_tts_for_asr()/restore_tts_after_asr() so a clone upload no longer
cold-loads WhisperX beside a resident XPU TTS model.

Tests: 20 targeted tests in host; 722 passed and 1 unrelated failure in
the XPU container's full backend suite (the failure is a repo-wide
torch.load audit tripped by untracked .scratch/_appimage trees). Live
two-run verification: POST /profiles clone upload returned 200 in 33 s
twice, logged "Unified memory tight ... releasing the TTS model", host
stayed up.

* docs: record integrated Intel Arc XPU unified-memory fix

* fix(xpu): detect integrated Arc by is_integrated_gpu, serialize unified release and clone ASR restore

* fix(xpu): hold placement through clone reference ASR, skip it when release is refused, document is_integrated_gpu minimum

* fix(xpu): reference-count the clone reference ASR placement hold

* fix(xpu): wait for in-flight TTS load/unload before reference ASR, drop hold on failed release

* test(xpu): release every reference-ASR hold a test takes, and fail any test that leaks one

A forced-release test never restored, so its hold kept exclusive placement and
every later TTS load in the session waited, stalling the Windows suite until
its timeout. The hold reset now runs for every test in the file, and a
backend/tests guard fails and clears any leaked hold, placement or in-flight
TTS op.

---------

Co-authored-by: gottabstrong <312960339+gottabstrong@users.noreply.github.com>
Co-authored-by: debpalash <4178343+debpalash@users.noreply.github.com>
2026-11-26 11:18:31 -08:00
Palash Debnath 42f0f93b8f ci: faster Python tests and ROCm image builds; smaller installers (#4322)
* ci: shard Python tests, cache ROCm image layers, mount uv cache in Docker build

* build(electron): ship only main-process dependencies in app.asar

* docs(changelog): fragments for #4322

* ci: shard hook no longer leaks into nested pytest runs; refresh flake node-deps hash; fix moss rebound fixture
2026-11-21 19:03:25 +05:30
Palash Debnath 409c893449 fix(setup): ship wheels for source-only deps so setup never compiles (#4253) (#4268)
* fix(setup): ship wheels for source-only deps so first-run setup never compiles (#4253)

* docs(changelog): add fragment for #4268

* fix(setup): make vendored wheels verifiable and shipped by every consumer (#4253)

* chore(vendor): ship the ANTLR BSD notice with the vendored runtime wheel

BSD-3 requires the copyright notice to accompany binary redistribution; the antlr4-python3-runtime sdist ships none, so keep the project notice beside the wheel and package it.

* test(install): accept vendored wheel paths in the frozen export

uv export emits the vendored wheels (#4253) as ./vendor/wheels/*.whl paths, which packaging.Requirement rejects.

* test(lock): check per-target wheel tags and extras; ship the ANTLR notice in Nix

The wheel-only guard now follows extra-activated dependencies and requires a wheel whose tags match each tested platform and Python, not just any wheel. sphn 0.2.1 has no Linux ARM64 wheel upstream and is allowlisted for that source-only target. The Nix output now installs the ANTLR licence beside the vendored wheel.

* ci(dagger): copy the vendored wheels before the dependency sync

[tool.uv.sources] points docopt, antlr4-python3-runtime and dora-search at vendor/wheels (#4253); the manifest-only layer copied pyproject.toml and uv.lock without them, so dagger python-tests and check could not install.

* ci(install): run the install smoke when the vendored wheels change

The installer ships vendor/wheels (#4253), so tests/test_install_smoke_workflow.py requires it among the install-smoke triggers.
2026-11-20 11:39:13 +05:30
Palash Debnath 763b84b6da docs(docker): share through host-managed Tailscale Serve (#4111)
Document a host-managed HTTPS Serve listener with loopback publishing and administrator authentication, without exposing the host daemon socket to the container. Clarify browser TLS, Docker Desktop and proxy-header trust limits. Parsed Compose configuration is unchanged; 115 targeted checks, full CI and both harvested reviews passed.
2026-11-14 14:55:45 +05:30
hkarmoush 37ba6e18b9 fix(colab): pass the security-floor check with duplicate packages and load the UI through the new proxy
- security_floors.installed() keeps the first copy on sys.path, as import does, so a stale apt copy no longer fails the check (#4066)
- the notebook run() helper prints the child's output so failures show their cause (#4066)
- the Colab launch cell trusts any Host behind Google's authenticated proxy; the origin allowlist stays exact (#4067)
- the browser guard logs a refused Host at debug level (#4067)

Fixes #4066
Fixes #4067
2026-11-13 10:57:22 +03:00
velixio 48ce9374e4 Send opt-in analytics to Supermetry instead of PostHog and record the engine used 2026-11-08 22:46:32 +05:30
debpalash e9e9970a30 fix(security): update PyTorch to 2.10 (CVE-2026-24747)
torch < 2.10 lets a crafted checkpoint run code even under
torch.load(weights_only=True). Move the main-app trio to torch 2.10.0,
torchaudio 2.10.0 and torchvision 0.25.0 everywhere it is pinned: uv
constraints and lock, deploy/torch-constraints.txt, the Dockerfile
(CUDA base image, cu129 arm64 stage, ROCm base image), setup.py and
runtime-project.ts. Linux AMD ROCm moves to the rocm7.1 index, the only
ROCm line PyTorch publishes 2.10 for (owner decision).

The cu126/cu128/cu129 GPU architecture lists are unchanged from 2.8, so no
NVIDIA card loses kernels. torchaudio 2.9+ I/O changes are already
handled: audio_io falls back to soundfile and prepare_audio_imports
installs the pyannote shim on every platform.

Engine sidecars keep their own upstream pins. Windows ROCm stays on
AMD's 2.9.1 build: repo.radeon.com publishes no 2.10 wheels yet.
2026-11-08 18:38:28 +05:30
debpalash 8e9761612d fix(deploy): skip security floors whose environment marker does not apply 2026-11-08 00:44:31 +05:30
debpalash d03a7d05c4 fix(deploy): raise base-image packages below their security floor
The CUDA base image ships msgpack 1.1.1, which nothing in the image
requires, so the constrained install left it below its floor and the new
guard failed the build. deploy/security_floors.py lists installed packages
below their floor for upgrade, then checks; Docker and Colab both use it.
2026-11-08 00:08:43 +05:30
debpalash 85dd0787ea fix(deploy): apply the security floors to the Docker and Colab installs
uv pip install ignores [tool.uv] constraint-dependencies, so a base
image's older compatible package survived below the floors uv sync
enforces. Pass them as deploy/security-constraints.txt, guard the image
against below-floor installs, and test the file stays in lockstep.
2026-11-07 23:55:01 +05:30
Palash Debnath 429f1e5bb2 docs(readme): organize platform installation methods and add Homebrew (#3774)
* docs: organize platform installation methods and add Homebrew

* docs: add installation guide changelog fragment

* docs: keep Docker quick-start data in the mounted volume

* docs: preserve legacy Docker data during upgrades
2026-11-02 23:26:58 +05:30
debpalash 541fee952f Fix Windows installer process directory boundaries 2026-10-28 16:21:20 +05:30
velixio ad1c96daec feat(provenance): clean-room reimplementation of the residue-scan sections
Reimplements every CLEAN-ROOM marker the previous commit left, from the
written spec only, in sandboxes built without history. The original tests
for the touched areas pass unchanged against the new code (337 passed).
Regenerates mobile/contract/openapi.json for the new model descriptions.
2026-10-28 13:26:12 +05:30
velixio 8c535daf67 chore(provenance): remove remaining contributor code found by the residue scan pending clean-room reimplementation
Removes code from contributors without a CLA on file, leaving CLEAN-ROOM markers where the reimplementation goes.
2026-10-28 13:02:16 +05:30
debpalash f3b6848ee8 docs(rocm): never point RX 9000 cards at an RDNA3 override
The Docker guide's forced HSA_OVERRIDE_GFX_VERSION=11.0.0 example covered
RX 9000 cards, which would map RDNA4 onto RDNA3 kernels. Scope every such
example to its generation and say RDNA4 needs none.
2026-10-28 04:10:53 +05:30
velixio 58ef2ee746 docs: clean-room rewording of remaining contributor passages
Rewrites the ROCm source-checkout notes, Start dictation details, Docker Hub architecture sentences, STRUCTURE rule and heading, Tailscale sharing steps and the CN/JA agent-install and source-run passages from a meaning-only spec.
2026-10-28 00:06:54 +05:30
velixio 7d6e3ab7d9 chore(provenance): remove contributor doc passages pending clean-room reimplementation
Removes code from contributors without a CLA on file, leaving CLEAN-ROOM markers where the reimplementation goes.
2026-10-28 00:06:54 +05:30
velixio 96a94569d2 Merge remote-tracking branch 'origin/main' into cla/rewrite-wave-2
# Conflicts:
#	backend/services/llm_providers.py
#	backend/services/text_normalization.py
#	backend/utils/hf_progress.py
#	docs/STRUCTURE.md
#	docs/dubbing/translation-engines.md
#	electron/src/shared/components/settings/settingsCategories.jsx
#	tests/test_llm_providers.py
2026-10-27 16:03:43 +05:30
vincentfranstyo 69fd598ddc docs(install): point Windows PowerShell commands at install.ps1 (#2982) 2026-10-27 09:47:36 +05:30
velixio 2d5eab5114 fix: treat unset form flags as off on direct calls, and read the cuDNN 8 compat path from the environment 2026-10-27 03:10:06 +05:30
velixio 6a3f5b1d9c refactor: clean-room reimplementation of dub transcribe keepalive, sidecar timeouts, audio IO fallbacks and stream-cut errors
Rebuilt from a behaviour spec by an implementer who never saw the removed code (batch K: rest of #2170).

(cherry picked from commit 1930a91fd797b33a94e99911fc9905a945362ad0)
2026-10-27 02:19:49 +05:30
velixio 24e3abe9d2 chore(provenance): remove stream keepalive, sidecar deadline, torchaudio fallback and related code pending clean-room reimplementation
Removes code from contributors without a CLA on file, leaving CLEAN-ROOM markers where the reimplementation goes.

(cherry picked from commit 03c8656ab22b5191cfea9647225c4e6f6e94c095)
2026-10-27 02:19:49 +05:30
velixio 13d8e4ef71 refactor: clean-room reimplementation of small community fixes (translate language guess, Windows compile flag, OrcaRouter, Docker docs, loop window, tqdm, realtime events)
Rewritten from a behavioural spec by an implementer without access to the
removed code, so every line has CLA-covered provenance.

(cherry picked from commit 881b8313ebd78466dd15256b622a9f26752595c8)
2026-10-27 02:16:31 +05:30
velixio 490f3f3c8b chore(provenance): remove small contributor-authored fixes pending clean-room reimplementation
Removes code from contributors without a CLA on file, leaving CLEAN-ROOM markers where the reimplementation goes.

(cherry picked from commit 9da3b6c7cde8659510baec8e8bfc13d8cd367c32)
2026-10-27 02:16:31 +05:30
debpalash 9bc4fadc1d fix(docker): strip override requirements before parsing 2026-10-26 02:41:09 +05:30
Palash Debnath cd51c9f535 Merge pull request #3402 from debpalash/feat/2831-arm64-cuda-docker
feat(docker): publish a native arm64 NVIDIA CUDA image
2026-10-26 01:51:51 +05:30
debpalash 18a1e570f6 feat(docker): publish a native arm64 NVIDIA CUDA image
Adds a build-and-push-cuda-arm64 job on ubuntu-24.04-arm that builds
deploy/Dockerfile for linux/arm64 from a new cuda-arm64-base stage
(Ubuntu 24.04 + torch 2.8.0+cu129, torchaudio 2.8.0, torchvision 0.23.0
from the cu129 index; the aarch64 torch wheel bundles CUDA and cuDNN 9).
Tags mirror the CUDA job with a -cuda-arm64 suffix. The amd64 CUDA and
ROCm jobs and tags are unchanged; BuildKit skips the new stage for them.
2026-10-26 00:25:33 +05:30
debpalash da2b461734 feat(docker): opt-in share-PIN skip for the host's own browser
OMNIVOICE_TRUST_HOST_LOOPBACK=1 (server mode only) lets requests whose
socket address is exactly the container's default gateway skip the share
PIN on the main port. Forwarded headers are never read for the check, the
LAN-share listener never qualifies, and it grants PIN-tier consumption
rights only, never the API key or admin tier. Default unchanged.
2026-10-26 00:13:29 +05:30
velixio 00529154f6 build(docker): bake the build commit into the images 2026-10-24 20:29:27 +05:30
velixio 549a14ba55 fix(docker): pass the uv overrides to the uv pip install paths
Review on #3275: the Pillow 13 override in [tool.uv] reaches uv pip install
only when it runs from the project directory with a recent uv; from anywhere
else it installs Pillow 12.3.0 under gradio's cap. Pass deploy/uv-overrides.txt
explicitly in the Dockerfile and the Colab notebook, check it in the Docker
build, and test that the file tracks pyproject.
2026-10-24 16:58:43 +05:30
velixio bfaf8a5c0a feat(updates): add an opt-in Beta release channel
Beta follows vX.Y.Z-beta.N prereleases cut from main and rolls onto the next
stable release; Stable stays the default. Betas are GitHub prereleases (never
latest), ship an electron-beta-* feed and :beta Docker tags, and skip the Snap
Store and Tauri sunset feeds.
2026-10-22 17:27:54 +05:30
velixio 35bb7dfae7 feat: relocate engine venvs, aarch64 CUDA Docker build, install fallback docs, trim unused deps 2026-10-19 12:22:38 +05:30
velixio 6f55c6ee4a Align Docker health check port 2026-10-12 05:39:56 +05:30
velixio 8cdfe4ad21 Preserve Docker launch options 2026-10-12 05:31:55 +05:30
velixio d3fadb295e Fix packaged configuration loading 2026-10-12 05:07:51 +05:30
velixio 7fedd390be Centralize app identity and default ports 2026-10-12 02:50:48 +05:30
velixio 4c207427a2 fix: restore files the remote-worker removal deleted by mistake
- deploy/install-worker/ is the Cloudflare worker that serves the
  voicestudio.sh install scripts, not a remote GPU worker; the installer
  contracts CI job reads it
- downloadReducer.js (and its test) is still imported by
  useModelDownloads, which the shared Engines and Model Store tabs use
2026-10-11 18:35:44 +05:30
velixio daa7024489 feat!: remove remote devices and remote workers (moved to VoiceStudio Pro)
Remote devices, remote workers and GPU sharing are now part of VoiceStudio
Pro and are no longer in the open-source app.

Removed: backend/worker/** and the workers API, the Workers and inbound-node
settings, compute-target and remote-runtime UI, the worker CI job, the
worker docs and ADR, and the grpcio, grpcio-tools and protobuf direct
dependencies (the protobuf security floor stays as a constraint).

Kept: local generation, dub, audiobook, batch, model install and GPU use on
this machine; network sharing; the remote backend that Intel Macs use.

Compatibility: existing databases keep their remote_workers,
remote_worker_enrollments and remote_tasks tables and migration 0010; they
are ignored. A saved worker target falls back to local. Model install and
licence plans with a non-local target now return HTTP 400.
2026-10-11 17:14:36 +05:30
debpalash b4bd8810a0 fix(api): accept media GETs from an allowed UI origin by Referer; clarify refusal messages
Split UI/API deployments (OMNIVOICE_PUBLIC_API_BASE) load video previews
and downloads with GETs that carry no Origin, only Sec-Fetch-Site, so they
were refused even with the UI origin in OMNIVOICE_ALLOWED_ORIGINS. Without
an Origin, a request whose Referer origin is on the same allowlist now
passes; a missing or foreign Referer is still refused.

The private-address URL import message now says where desktop users set
OMNIVOICE_ALLOW_PRIVATE_URL_IMPORTS (shared with the host-name message) and
that VPN or proxy apps in TUN/fake-IP mode can cause it.

The #2618 offload tests stub torch.cuda so a CUDA host with free VRAM no
longer changes their result.

Docs: reverse proxies in OMNIVOICE_TRUSTED_NETWORKS need their host name in
OMNIVOICE_ALLOWED_HOSTS, split deployments list the UI origin, LAN guests
open the share link by IP, and engine folders are set in the env file.

Changelog: cite #2419 for work that shipped through it, add upgrade steps,
the Windows ARM64 installer row and the #2609 credit, and split the URL
import entry.
2026-10-07 13:42:42 +05:30
debpalash 9f81168ea9 fix(api): reject cross-site browser requests and private URL import targets
- Refuse state-changing requests and WebSocket handshakes whose Origin or
  Sec-Fetch-Site marks another site, for every auth configuration; GET
  routes that start work refuse cross-site fetch metadata too.
- Require an allowed Host name for requests authorized only by network
  position (OMNIVOICE_ALLOWED_HOSTS adds names); credentialed requests and
  the public UI shell are exempt.
- Validate URL imports: http(s) only, public destinations only unless
  OMNIVOICE_ALLOW_PRIVATE_URL_IMPORTS=1, enforced again at connect time
  inside yt-dlp and on resolved media URLs; pass URLs after "--".
- Accept media extensions only for gallery and dubbing uploads, stop
  returning server paths from gallery imports, and limit ws/tts emo_audio
  to the app's voices and outputs folders.
- Apply the same checks in the Electron dev backend proxy.
2026-10-04 21:46:35 +05:30
Palash Debnath c4d63ef207 fix(app): align Electron, backend, packaging and documentation (#2578)
Align maintained Electron setup, docs, model licence descriptions, contact details, and CI syntax checks with the current application.
2026-10-03 06:24:59 +05:30
Palash Debnath c52618afa7 Use the canonical VoiceStudio GHCR image everywhere (#2350)
* docs: make voicestudio the default GHCR image

* docs: link canonical GHCR changelog entry
2026-09-27 06:00:22 +05:30
Palash Debnath 29c8a13260 refactor: move shared UI under Electron 2026-09-26 11:46:37 -07:00
Palash Debnath d6348b56f2 chore: retire legacy Tauri app and UI 2026-09-26 11:26:48 -07:00
Palash Debnath 930d814aa9 fix: use Electron UI for Docker and web (#2341)
* fix: serve Electron UI in Docker

* docs: link Docker UI change

* fix: allow configured web API through CSP

* fix: authenticate Docker browser sessions

* fix: authenticate web call event streams

* test: preserve native websocket proxy behavior
2026-09-26 22:45:11 +05:30
debpalash 7f239f6ae9 feat(installer): install Electron releases or main and safely uninstall 2026-09-21 20:10:48 +05:30
basil-k-aji-dev a628ba161e fix: install cuDNN 8 compat libraries in the CUDA Docker image
The CUDA base image is pytorch/pytorch:2.8.0-cuda12.8-cudnn9-runtime, so it
ships cuDNN 9. CTranslate2 — WhisperX and faster-whisper — links cuDNN 8, and
its absence aborts the backend process outright rather than raising (#1371).

scripts/setup.py side-loads the cuDNN 8 libraries for source installs, but the
Dockerfile never did, so every CTranslate2 ASR engine was unavailable in Docker
and the demo synthesis timed out with libcudnn_ops_infer.so.8 missing.

Install the same nvidia-cudnn-cu12==8.9.7.29 shim during the image build,
deriving the target from sys.prefix so it matches where backend/core/cudnn8.py
searches rather than hardcoding the conda path — sys.prefix differs between the
conda-based CUDA image and the ROCm venv. Guarded to GPU_FLAVOR=cuda, since
ROCm does not use cuDNN, and --no-deps keeps the base image's torch stack
untouched. A post-install assert fails the build if no .so.8 libraries landed,
rather than letting it resurface as the same runtime warning.

Fixes #2050
2026-09-13 23:51:57 +05:30
Yang Fan ae25a6a594 docs: clarify Docker image architecture requirements 2026-09-10 13:51:58 +08:00
Palash Debnath 0ed7d2ec22 chore(release): prepare v0.5.2 (#1761)
Synchronize VoiceStudio release metadata, lockfiles, installers, container references, documentation, and the dated v0.5.2 changelog after all planned fixes landed.
2026-09-02 10:26:14 +05:30