* 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
* 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>
Require explicit administrator credentials for remote diagnostic reads and use an asynchronous guard for SSE logs. Loopback remains supported. Full CI, security checks, signed contributor identity and reviewed findings are green.
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.
torchaudio 2.10 decodes and encodes only through TorchCodec, which
VoiceStudio does not install.
- The process-wide torchaudio.load shim now falls back to soundfile when
TorchCodec is missing, for every caller (pyannote, transformers, tests),
not only backend='soundfile'.
- omnivoice-infer and omnivoice-infer-batch save through a new
omnivoice.utils.audio.save_audio (soundfile); training scripts and the
dataset read through read_audio. Repo scripts use services.audio_io.
- The torchaudio I/O gate now covers omnivoice/, scripts/ and tests/, and a
round-trip test runs with torchaudio.load/save raising.
- Docker ROCm backfills select the base image from the checked-out torch
pin instead of the workflow's.
- The ROCm arch-gate message names torch 2.10.0 and rocm7.1 (its wheels
still include gfx1200/gfx1201; the arch list is a superset of 2.8's).
- wheel-prefetch tests read the torch pin from pyproject instead of
hard-coding 2.8.0.
- docker.md no longer claims there is no cu128 aarch64 wheel.
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.
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.
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.
* 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
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.
The HSA_OVERRIDE_GFX_VERSION target came from a hand-kept table, so any card
it did not list (gfx1152, gfx1035, a gfx1201 on a gfx1200-only wheel) was
treated as a kernel mismatch and ran on the CPU. Derive the target from the
installed wheel's arch list instead: same generation, same or older revision,
closest first; never across a generation.
The setup GPU check told Windows Radeon owners that no Windows ROCm build
exists, called the CPU build a CUDA build, marked a working ROCm GPU as a
warning, and said 'ROCm ready' for a card the wheel has no kernels for. It now
names the installed build, the opt-in for the OS, and the kernel mismatch.
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)
Removes code from contributors without a CLA on file, leaving CLEAN-ROOM markers where the reimplementation goes.
(cherry picked from commit 9da3b6c7cde8659510baec8e8bfc13d8cd367c32)
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.
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.
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.
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.
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.
- 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.
The Model Catalogue put the same decision on two axes: an Engines pane with
TTS/ASR/LLM tabs and a Models pane with TTS/ASR/Dictation/Diarisation
sections, dictation shown in both, plus storage stats, the HF token and the
voice-preview toggle parked on the model list. Settings → Voice still carried
Engines and Models entries that only pointed back here.
Now the page reads top-down: a SetupSummary (speech, transcription,
dictation, language model — engine, device, one status word, Change), the
engine list for one family, and that family's downloadable weights under it
(TTS under TTS; offline ASR, streaming dictation and diarisation under ASR;
nothing for LLM, whose engines bring their own). One storage line points at
Settings → Storage.
- ModelStoreTab takes a `family` and scopes sections and the recommendation
preset to it (scopeReco); stats strip, HF-token toolbar and previews
panel removed from it.
- Settings: Engines/Models categories and CataloguePointer removed; models
directory → Storage, HF mirror → Network (both restart-flagged), voice
previews → Storage. "Manage models" in disk usage opens the catalogue.
- Store: openCatalogue takes a family (pane key tolerated, ignored);
pendingCatalogueTab gone.
- Engine matrix title is now the locale's plain "Engines".
- i18n: catalogue.* summary keys in all 21 locales; pane/pointer keys dropped.
- Docs: "Model Catalogue → Engines" is "Model Catalogue"; "→ Models" is
"→ Downloaded weights".
Lands #1998 by @yangfan-yf-yf. Correct finding: the PowerShell example I added
in #1993 generated the administrator key with `python -c`, and the whole point
of the Docker path is that the host does not need Python. On a Windows host
without it, the very first line of the setup fails.
One thing on top. The key is also accepted as an `?api_key=` query parameter
(core/auth.py), and raw Base64 carries `+`, `/` and `=`. A `+` in a query
string decodes to a space, so a user who pasted such a key into a URL would get
a silent mismatch with nothing to explain it. The Bash line next to it uses
`secrets.token_urlsafe` and never had this shape, so the two now agree:
trim the padding, map `+` to `-` and `/` to `_`.
Verified in Windows PowerShell 5.1 (5.1.26100): the block parses and runs, and
the key is 43 URL-safe characters — the same shape `secrets.token_urlsafe(32)`
produces. validate-install-docs.py and both docker/changelog test files pass.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017ypcgSsh5j2PEonSJiAU1S
@yangfan-yf-yf pushed two more commits to #1987 after the first pass landed.
Two things in them were worth taking:
- an explicit `compose pull` step, so the platform override is proven before
`up -d` rather than discovered when the pull inside it fails; and
- a PowerShell form. An ARM64 Windows host cannot use `export`, and the
surrounding page only ever shows Bash — so the guidance did not actually
reach the users most likely to need it.
Not taken: the same commits also moved `--platform linux/amd64` into the
default `docker pull` / `docker run` quick start. That is a no-op for the
amd64 majority and contradicts the Architecture section directly above, which
introduces the flag as the conditional ARM64 step. The canonical command stays
the one almost everyone should run.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017ypcgSsh5j2PEonSJiAU1S
Lands #1987 by @yangfan-yf-yf, which closes#1921.
The published images are linux/amd64 only, and the quick start reached image
resolution before saying so — an ARM64 user met "no matching manifest for
linux/arm64/v8" with no explanation. Verified against docker.yml, which says
so in its own comment: "only building linux/amd64".
One gap in the original: the platform override was documented for docker pull
and docker run, but Compose has no per-command --platform flag, so the
recommended Compose command still resolved the missing ARM64 manifest and
failed exactly as before. DOCKER_DEFAULT_PLATFORM covers it, with the same
caveat the rest of the section makes — emulation, not native support, and only
the CPU profile makes sense under it.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017ypcgSsh5j2PEonSJiAU1S
Synchronize VoiceStudio release metadata, lockfiles, installers, container references, documentation, and the dated v0.5.2 changelog after all planned fixes landed.
Closes #1716.\n\nDefines supported, best-effort override, unverified, and unsupported architecture evidence; marks RX 6700 XT/gfx1031 over WSL2 ROCDXG as unverified; and requires routing, utilization, and CPU-fallback evidence before claiming acceleration.
Prepare the tested main branch for the v0.5.1 patch release with synchronized version sources, mirrors, lockfiles, release notes, and install guidance.
Closes#1687.
Refresh current v0.5.0/0.5 tag examples, document API-key and share-PIN behavior, and require encrypted private-overlay access for remote deployments. Keeps the Docker install guide and changelog synchronized.
* feat(startup): bind the socket in ~1s and narrate startup step by step
The structural fix for the "can't reach the local backend" class (~1 in 5
of every issue ever filed): uvicorn served nothing until torch import
(10-20s cold), the 30-router fan-out, an import-time DB migration, the
cuDNN preload, and alembic all finished — every slow or fragile step
rendered as an unexplained dead backend.
main.py now keeps module scope fast and defers the heavy work:
- _phase_a_build (executor thread): prefs/env restore + #963 migration,
yt-dlp overlay, cuDNN preload, torchaudio, model_manager, router
imports — order preserved, literal imports so PyInstaller still traces.
- _phase_a_finalize (event loop, no awaits → atomic wrt requests):
include_router, mounts, MCP, SPA, openapi bust.
- _phase_b: the old lifespan startup body; handles on app.state so
shutdown survives a startup that never finished.
- Eager mode (pytest / OMNIVOICE_EAGER_INIT=1) runs everything at import
— byte-equivalent behavior for the ~100 lifespan-less TestClient sites
and for embedders (dump_api_routes, probe boot runner opt in).
While starting: /health answers 503 with the current step, new
/startup/progress serves the full ledger (always 200), and
StartupGateMiddleware 503s everything else with the [starting] marker
(same skip-the-Report-button convention as [shutting_down]). A deferred
failure keeps import-crash semantics: traceback to stderr → shell crash
forensics, run sentinel stays uncleared, exit 1 names the failed step.
Shell: startup_progress() probe (marker-header-gated so a foreign
responder can't narrate the splash) feeds per-step log lines into the
launch poll and the supervisor's reconnect wait. --health-check absorbs
the deferred init (60→180s); --diagnose runs Phase A up front so it
still sees restored prefs. Docker HEALTHCHECK semantics unchanged
(curl -f fails on 503 exactly as it did on connection-refused).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(startup): join the Phase A thread on shutdown; async fail-path sleep
Bot-review harvest on #1550: cancelling the deferred-startup task cannot
stop the executor thread inside Phase A's blocking imports — shutdown now
waits (bounded, only when a build started and hasn't finished) on a
thread-completion event so interpreter teardown can't race a mid-import
(#1000 class). The failure path's last-poll beat is now awaited, not
time.sleep — a blocking sleep froze the very loop that beat exists to let
serve. Also: dump_api_routes forces eager (assignment, not setdefault),
and the integration test's child gets DEVNULL instead of an undrained
pipe that could wedge a cold boot.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(startup): close the Phase A submission race; CodeQL nits
Review finds on #1550: shutdown could sample _phase_a_started unset
while the executor callable was queued-but-not-running, skipping the
thread join. started is now set BEFORE submission, the submission is
shielded so a cancel can't strand a queued callable that would never set
_phase_a_finished, and the wrapper sets finished on every exit including
the already-built early return. Contract pinned by
test_phase_a_thread_join_contract. Plus explanatory comments on the new
bare excepts and a consistent return in the gate's websocket branch.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
The About page reported 'Compute device: cpu / GPU active: no / VRAM 0.00 GB' on a machine with a working GPU. Every line was true and none was usable — it is also exactly what a machine with no GPU at all reports, so the report could not distinguish a driver that isn't loaded from a container that cannot open the device from a ROCm older than the card.
The probe already knew all of it; torch.cuda.is_available() returning False simply produced no note. Each cause now reads differently: a missing device node names the --device flags, a permissions failure names --group-add and how to find the host's real render/video GIDs (copied numbers are the most common way this ends up on CPU in Docker), a card newer than the shipped ROCm points at rocminfo, an HSA_OVERRIDE_GFX_VERSION that is doing more harm than good is named first because it is both likelier and cheaper to test, and an unreachable NVIDIA driver gets its own advice.
The probe never diagnoses from a measurement it did not complete: when torch.cuda.is_available() itself raises, the exception is reported and no device findings are asserted beside it. Metadata access that raises is contained too — this runs on the path whose whole job is to explain a failure, so it cannot become one.