Commit Graph
374 Commits
Author SHA1 Message Date
debpalash 1b89803e96 chore: remove unused scripts, the Tauri MSI tooling and Turborepo ignore lines (#2603) 2026-11-12 17:23:15 +05:30
debpalash a813a16ac8 release notes: drop an older tag's own download table, keep phone rows when no desktop leg reports 2026-11-12 15:10:02 +05:30
debpalash 60e299ab66 release notes: open with one download table (desktop, phones, signing), then Highlights 2026-11-12 14:46:55 +05:30
Palash Debnath 6a8a746996 Merge pull request #4005 from debpalash/feat/omnivoice-tts-server
feat(gguf): bundle omnivoice.cpp tts-server for resident mode (#3654)
2026-11-12 01:40:22 +05:30
debpalash 2dea9301bd ci(release): report every absent rehearsal leg even when another leg is broken
The absent legs and installers are now found before any check can fail, and
--missing-report is written in a finally block. A leg with an incomplete feed
still fails the step, but the rehearsal's final step lists every leg that built
nothing (review).
2026-11-11 19:46:41 +05:30
debpalash ab252d6be2 ci(release): keep the phone app layout and always list missing rehearsal legs
- Download each phone app into its own folder. A pattern that matches one
  artifact extracts it without the artifact-name folder, which lost the
  surviving app when the other phone leg failed (review).
- The missing-legs step runs after earlier rehearsal failures, and the signing
  notes accept no reports in a rehearsal, so a run where every package leg was
  skipped still lists them. Releases stay strict (review).
2026-11-11 18:10:33 +05:30
debpalash d49f40056c ci(release): harden rehearsal signing checks and verify the legs that built
- Test signing accepts only an intact signature whose chain fails on nothing
  but the untrusted root; HashMismatch, a missing signature or an expired
  certificate fail (review).
- App Store signing steps skip in a rehearsal even when signed_ios is set, so
  they never run without the protected environment (review).
- A rehearsal's release job also runs after failed build legs: it verifies
  what built, lists the missing legs, and fails at the end. Releases still
  need every leg.
2026-11-11 17:57:47 +05:30
debpalash 88c93ab95d ci(release): rehearse the release workflow from any branch without publishing
electron-release.yml gains rehearsal=true: from any branch and without a tag it
builds every desktop package, the omnivoice-tts runtimes and the phone apps,
runs the packaged smoke tests, then the release job's verification
(prepare_electron_release.py --rehearsal against package.json's version, the
updater feed checksum and channel checks, the sunset feeds and signing notes).

It publishes nothing: the exact-tag check stays for releases, a rehearsal
refuses publish/release_tag/allow_unsigned, every publishing step is skipped by
its condition and refuses a rehearsal again in its script, phone builds skip
the protected signing environment, and SignPath runs only on an explicit
signpath_policy=test-signing. Artifacts expire after 3 days.

tests/test_release_rehearsal.py pins the guards; docs/RELEASING.md documents it.
2026-11-11 17:09:55 +05:30
debpalash 6d32e307e3 fix(gguf): install SPIRV-Headers for the Windows Vulkan build
Pinned ggml now requires find_package(SPIRV-Headers CONFIG), which the
LunarG SDK does not provide. Install the commit-checked Khronos release
matching the SDK into a private prefix; read UTF-8 explicitly in the
bundle test.
2026-11-11 13:58:59 +05:30
debpalash 291d9fa7c0 feat(gguf): bundle omnivoice.cpp tts-server so resident mode works in releases
Move the omnivoice.cpp pin (desktop and mobile) to 040c8b3, the commit that adds
the tts-server target and voice registry the resident mode needs. Build, checksum,
upload and package tts-server-<platform> beside omnivoice-tts-<platform> on every
desktop platform, fail the build and packaging when it is missing, and log once
why resident mode fell back to the per-request binary.

Refs #3654
2026-11-11 13:42:07 +05:30
debpalash 36b04d5e6f fix(release): name new contributors first in later betas
A beta's notes span everything since the last stable, so its Contributors list
repeated from beta to beta and new contributors were invisible. A second or
later beta now lists who is new since the previous beta, then the full list.
2026-11-11 04:35:58 +05:30
Palash Debnath e63314cc56 Merge branch 'main' into feat/audiocpp-drama3 2026-11-10 12:45:08 +05:30
debpalash 1991129d1a feat(audiocpp): pin the audio.cpp v0.9.4 runtime (#3129)
Update the managed runtime pin from v0.7.4 to v0.9.4 using the SHA-256
digests GitHub publishes for the release assets. v0.9.3 is the first
release with the fish_drama3 family.

The breeze_tts, dots_tts and sortformer_diar resource layouts are
unchanged since v0.7.4, and the server still accepts the request and
config fields VoiceStudio sends, so installed GGUFs load as they are.
An app-managed v0.7.4 runtime stays usable as a fallback until the user
installs the update, which Settings offers. A failed self-check now says
so and leaves the existing runtime in place. Add an opt-in smoke script
that loads an installed model in the stock release binary.
2026-11-10 06:49:23 +05:30
debpalash 13838353f7 fix: address review findings (#3959)
- glibc guard: fail when objdump cannot inspect an ELF (+ test)
- NSIS uninstall: report runtime/hf_cache directories that could not be removed
- docs: Snapcraft Builds revisions use --ozone-platform=wayland, not the env var
2026-11-10 05:53:43 +05:30
debpalash f3500ffac3 fix(snap): build Linux packages on glibc 2.35 and guard the helper's glibc floor (#3879) 2026-11-10 05:14:32 +05:30
Palash Debnath 9e2ca73aa7 Merge branch 'main' into perf/baselines 2026-11-10 02:41:02 +05:30
Palash Debnath ab2eb3379f Merge branch 'main' into perf/baselines 2026-11-10 00:12:14 +05:30
Palash Debnath 167a834bce Merge branch 'main' into fix/pin-ct2-rocm10 2026-11-09 23:34:14 +05:30
debpalash ae7a69fa9c feat(rocm): pin the in-repo CTranslate2 HIP build for RDNA 2 2026-11-09 23:10:07 +05:30
debpalash 13bb925c9d fix(bench): throwaway HOME for app launches; reload on repeated chunk failure
- app_start.mjs: launch env moves HOME/USERPROFILE/XDG dirs into the
  throwaway profile so a packaged app's terminal-command setup cannot
  touch ~/.local/bin or shell profiles (launch_env.mjs, tested)
- ErrorRecovery: Try Again reloads the renderer for dynamic-import
  failures; resetting the boundary replayed React.lazy's cached rejection
- bench.py idle(): always take one RSS sample and guard the CPU division
  for a zero or tiny --idle-window
2026-11-09 22:30:31 +05:30
Palash Debnath 937e9e854b Merge branch 'main' into perf/baselines 2026-11-09 22:13:49 +05:30
Palash Debnath cfb8283f4e Merge branch 'main' into train/9 2026-11-09 22:11:48 +05:30
debpalash afe81f9b98 fix(nix): GApps launcher env, correct symlink relocation, wider CI scope
- Launcher passes wrapGAppsHook3's arguments (GSettings schemas, GIO
  modules, XDG_DATA_DIRS) like nixpkgs' electron wrapper; checked.
- node deps: relocate absolute symlinks relative to the link's directory
  and fail on any that do not resolve; the runtime prune drops only the
  links to the skipped electron package; new symlinksResolve check.
- nix.yml runs on every change that can reach the build, skipping only
  docs, tests, mobile and changelog fragments (merge queue too).
2026-11-09 21:49:57 +05:30
debpalash 1835be1e93 fix(bench): isolate the Electron launch env; one changelog entry
Addresses review: app_start.mjs passed the caller's OMNIVOICE_*,
VOICESTUDIO_* and proxy variables to Electron, unlike bench.py's backend
isolation, so a developer's settings could redirect the data folder.
The two #3940 fragments are merged into one.
2026-11-09 21:37:59 +05:30
debpalash 67655188e4 fix(bench): keep loopback readiness checks off HTTP(S)_PROXY
Addresses review: with a proxy set and no loopback exception, the
benchmark's readiness checks went through the proxy and waited out the
300 s timeout although the backend was up.
2026-11-09 21:26:21 +05:30
debpalash 731e2bdda2 feat(bench): offline startup, idle and bundle-size benchmark harness (#3924)
scripts/bench/bench.py measures backend spawn-to-ready, startup steps,
idle RSS/CPU and boot import times; bundle.mjs reports renderer chunk
sizes and checks them against bundle-baseline.json; app_start.mjs times
Electron launch to first paint and Home plus idle CPU. Runs are isolated
from user data and network: throwaway data dir and profile, offline HF,
a dead proxy for outbound HTTP, updater off, non-local requests aborted.
2026-11-09 21:18:22 +05:30
eaves dropper 1244757d5e fix(nix): build with vendored AWS-LC and prune the runtime closure
nixpkgs' cargo setup hook exports AWS_LC_SYS_USE_SYSTEM=1 for every
buildRustPackage, but the matching defaultCrateOverrides entry only feeds
the legacy buildRustCrate path. aws-lc-sys 0.45 (via reqwest/rustls) then
panicked because no system AWS-LC was in buildInputs. Set
dontCargoUseSystemLibs so it builds its vendored copy instead.

Stop shipping build-only and renderer-only dependencies:

- Vite/Rolldown emits `//#region` comments containing the absolute
  node_modules store path. Those strings kept the entire node-deps FOD in
  the runtime closure. Strip the path from the built bundles.
- Add scripts/prune-runtime-node-modules.mjs, which walks bun's isolated
  layout from the modules the main process actually loads and copies only
  that closure.
- Ship the pruned tree at resources/node_modules; the renderer is already
  bundled, so app/node_modules is no longer needed.
- Add checks that every runtime specifier resolves and that the bundles no
  longer reference the node-deps derivation.

Packaged node_modules drops from 1.2 GiB to 11 MiB and the closure from
3.4 GiB to 1.6 GiB.
2026-11-09 19:54:08 +05:30
debpalash 248a4b518d Merge remote-tracking branch 'origin/main' into train/7
# Conflicts:
#	electron/src/main/index.ts
2026-11-09 17:54:29 +05:30
debpalash 2534bb9371 fix(setup): heal non-ASCII .pth files in source checkouts (#1783, #3726)
uv's editable install writes the checkout path into
`_editable_impl_omnivoice.pth` as UTF-8, and Python 3.11 decodes `.pth`
files in the ANSI code page. A checkout in a non-ASCII folder on a
non-UTF-8 Windows code page (Thai cp874 here) therefore could not run
`bun run setup:api` or `bun run dev`: uv's interpreter query died in
`init_import_site`. Installed runtimes were already healed; no
source-checkout path called the healer.

The healer moves to `electron/scripts/pth-ascii.mjs` (re-exported by
`src/main/pth-ascii.ts`, with a synchronous twin) so plain-Node scripts
share it. `setup:api` heals `.venv` before every uv call (each sync
rewrites the file), the dev:api supervisor before every launch, and the
app's source-checkout branch before probing the venv. Failures are
tolerated everywhere.

Inspired by #3726 by @Taksin014.
2026-11-09 17:31:58 +05:30
debpalash fd407f8914 fix(train7): put the terminal command on PATH for Bash login shells
Bash login shells read the first of .bash_profile, .bash_login and
.profile, and many .bash_profile files never source .bashrc. The shell
installer and the app now also configure an existing .bash_profile or
.bash_login, idempotently, without creating one that would hide .profile.
2026-11-09 17:00:15 +05:30
debpalash f8340436a6 fix(train7): omit optional CLI bodies and check current startup rules
- The contract exporter now resolves Optional[Model] bodies (anyOf with
  null) and records whether a body is required. `voicestudio dub
  transcript clean` without fields sends no body, so the backend cleans
  the saved transcript instead of rejecting `{}` with a 422.
- The wheel smoke imported a POLICY table the CLI no longer defines; it
  now checks the OFFLINE/OBSERVE startup rules, and a unit test runs that
  check against the source tree so it cannot rot again.
- CLI tests and contract reads use explicit UTF-8.
- Explain the CLI's intentionally empty except clauses (CodeQL).
2026-11-09 15:39:16 +05:30
debpalash dada1d6138 Merge train/7-cli (#3828) into train/7 2026-11-09 14:49:38 +05:30
debpalash 3403434127 fix(train7): approve AMD wheel host; build CTranslate2 ROCm in-repo
Replace the contributor-fork CTranslate2 download with a
workflow_dispatch build (ct2-rocm-windows.yml) from pinned upstream
OpenNMT/CTranslate2 source (78b1e17 + upstream #2142, tree-checked
against the RX 6700 XT validated source), published as a prerelease of
this repository. The recipe points at that release with its pins unset;
an unpinned build is treated as unavailable, so RDNA 2 installs the
locked CPU CTranslate2 like gfx1010 until the hashes are pinned.
2026-11-09 14:33:56 +05:30
debpalash 9a8d4c143d fix(train7): case-insensitive installer paths; Linux rename upgrade path
On a case-insensitive filesystem ~/.local/bin/voicestudio and the shell
installer's ~/.local/bin/VoiceStudio AppImage are one file, so linking the
command replaced the app with a link to itself. The installer and the
app's first-launch link now treat that file as the command, and refuse
rather than overwrite a pip/uv-installed command there. Installer tests
cover both case-sensitive and case-insensitive disks.

Linux rename (voicestudio-electron -> voicestudio): desktop file name and
StartupWMClass stay VoiceStudio (desktopName + syncDesktopName), the deb
package name and updater cache are unchanged, the old package's postrm
drops /usr/bin/voicestudio-electron and its AppArmor profile, and the new
one installs /usr/bin/voicestudio; no stale references remain.
2026-11-09 14:33:32 +05:30
debpalash 3ca4243b97 Merge #3712 into train/7
# Conflicts:
#	CLAUDE.md
#	backend/core/device_caps.py
#	backend/core/windows_rocm/install.py
#	backend/core/windows_rocm/probe.py
#	backend/core/windows_rocm/recipe.py
#	backend/core/windows_rocm/verify.py
#	changelog.d/3712.added.md
#	docs/STRUCTURE.md
#	docs/install/windows-rocm.md
#	scripts/windows-rocm-recipe.json
#	tests/test_dots_tts_accelerator_precision.py
2026-11-09 14:21:56 +05:30
debpalash 9b9db94af7 Merge #3828 into train/7
# Conflicts:
#	electron/src/main/backend-setup.test.ts
#	electron/src/main/index.ts
2026-11-09 14:17:56 +05:30
debpalash 7827911606 Merge #3734 into train/7
# Conflicts:
#	AGENTS.md
#	CLAUDE.md
2026-11-09 14:14:54 +05:30
debpalash f2088b890e Merge remote-tracking branch 'origin/main' into release/v0.5.8-beta.2 2026-11-09 01:10:13 +05:30
velixio 6faba57def Fix the CI failures left by the analytics move: route snapshot, shellcheck error and a tight timing bound 2026-11-09 00:38:53 +05:30
debpalash fbbed95c21 fix(analytics): queue first-run events, label conversions, keep the uninstall ping and API contract in step
Review findings on #3902:
- setup_started/setup_failed are sent while no backend is running; hold up
  to 20 and send them once the backend answers (tested).
- Voice conversions report feature=convert, not clone.
- The uninstall ping falls back to the app runtime's Python when python3 is
  not on PATH, so opted-in users are not silently skipped.
- mobile/contract/openapi.json carries the new /analytics/event route.
- Drop an unused regex; explain the empty except (CodeQL).
2026-11-08 23:42:09 +05:30
debpalash 7a9789eb5f Merge remote-tracking branch 'origin/main' into release/v0.5.8-beta.2 2026-11-08 23:01:51 +05:30
velixio 7b8c9c2712 Merge remote-tracking branch 'origin/main' into feat/supermetry-analytics 2026-11-08 22:46:47 +05:30
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 8c361418c7 ci(release): check the draft's real assets and reject any beta served as latest
- A reused draft keeps assets that gh release upload --clobber never
  removes, so after uploading, the draft's actual asset list goes through
  the same foreign-feed check (greptile).
- releases/latest returning any -beta. tag fails the publish step, not only
  the tag being released (coderabbit).
2026-11-08 22:42:22 +05:30
debpalash aa0e4948eb ci(release): refuse another channel's update feed and prove where latest points
- verify_release rejects a release that carries another channel's updater
  feed: electron-stable-*, latest*.yml or the Tauri latest*.json on a beta,
  electron-beta-* on stable. A stable feed on a beta would move stable
  users onto beta payloads. Checked against v0.5.7, v0.5.7-beta.3 and
  v0.5.8-beta.1 (all pass).
- After publishing, the workflow reads releases/latest: a beta must not be
  latest, a stable must be.
- RELEASING.md documents both.
2026-11-08 22:11:05 +05:30
debpalash 75cdc66e50 fix(release): beta notes link to the beta's own downloads
A beta copies [Unreleased], which carries the stable download table
(/download/vX.Y.Z/VoiceStudio-X.Y.Z-...). v0.5.8-beta.1 needed those links
rewritten by hand. prepare_changelog now points the beta section's
download and tag links at the beta release; [Unreleased] keeps the
stable links for the final release.
2026-11-08 20:49:36 +05:30
debpalash a883c7c286 fix(audio): read and write audio without TorchCodec everywhere
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.
2026-11-08 19:05:08 +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
velixio 4e0503c7ff fix(dev): make non-false cleanup previews fail safe 2026-11-08 16:26:35 +05:30
velixio 08e8f09947 feat(dev): add cleanup for project environments and app data 2026-11-08 14:22:43 +05:30