Commit Graph
25 Commits
Author SHA1 Message Date
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
velixio 7daa01e98c Merge remote-tracking branch 'origin/main' into cla/rewrite-wave-2
# Conflicts:
#	backend/api/routers/setup/wizard.py
#	docs/STRUCTURE.md
#	electron/src/renderer/src/components/app-shell/app-shell.test.tsx
#	electron/src/renderer/src/components/app-shell/use-workspace-sidebar.test.tsx
#	electron/src/renderer/src/components/app-shell/workspace-sidebar.test.tsx
#	electron/src/renderer/src/features/longform/generate-panel.test.tsx
#	electron/src/renderer/src/features/longform/longform-page.tsx
#	electron/src/renderer/src/features/settings/settings-page.tsx
#	electron/src/renderer/src/i18n/locales/ar.json
#	electron/src/renderer/src/i18n/locales/de.json
#	electron/src/renderer/src/i18n/locales/en.json
#	electron/src/renderer/src/i18n/locales/es.json
#	electron/src/renderer/src/i18n/locales/fr.json
#	electron/src/renderer/src/i18n/locales/hi.json
#	electron/src/renderer/src/i18n/locales/id.json
#	electron/src/renderer/src/i18n/locales/it.json
#	electron/src/renderer/src/i18n/locales/ja.json
#	electron/src/renderer/src/i18n/locales/ko.json
#	electron/src/renderer/src/i18n/locales/nl.json
#	electron/src/renderer/src/i18n/locales/pl.json
#	electron/src/renderer/src/i18n/locales/pt.json
#	electron/src/renderer/src/i18n/locales/ru.json
#	electron/src/renderer/src/i18n/locales/sv.json
#	electron/src/renderer/src/i18n/locales/th.json
#	electron/src/renderer/src/i18n/locales/tr.json
#	electron/src/renderer/src/i18n/locales/uk.json
#	electron/src/renderer/src/i18n/locales/vi.json
#	electron/src/renderer/src/i18n/locales/zh-CN.json
#	electron/src/renderer/src/i18n/locales/zh-TW.json
2026-10-27 11:52:28 +05:30
Yves Engetschwiler e9daef0c0c fix(perf): use MLX Whisper for Apple Silicon model packs (#3349)
Merged with main's rule that presets keep a Mac on its GPU ASR engine:
MLX Whisper joins the tiered engines, and a host already on it only moves
between MLX models.
2026-10-27 09:51:23 +05:30
velixio 72e4e9d3f6 refactor: clean-room reimplementation of CUDA-graph gating, crash diagnostics, torch.compile opt-out, cue sheets and Clear script
Rebuilt from a behaviour spec by an implementer who never saw the removed code (batch O: #2278, #2205, #2157).

(cherry picked from commit 72d49954a9faf0c591ba9d37ae25e8362253ab02)
2026-10-27 03:17:51 +05:30
velixio bb9befd14f chore(provenance): remove cue sheet, clear script, and pre-Ampere compile safeguards 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 1ac12d16bacef204069252ab042897aef324803b)
2026-10-27 03:17:17 +05:30
debpalash 2eabde6fb3 UI audit fixes: Settings
- Updates: render What's new as safe markdown; drop download tables and images
- Usage: accurate privacy copy (optional analytics lives in Privacy)
- Search: Models, Audio tools and Logs only when they match; theme modes,
  palette names and model families are searchable
- Storage: model-cache copy, amber/red disk bar, one low-space warning
- Models: pack preselects the largest tier that fits the disk; licence chips
  show text; labelled dictation toggle; one size formatter; no duplicate
  Selected button; presets keep MLX/user-picked ASR engines
- Credentials: one Save per provider, accurate copy
- Privacy/Sharing/Network: clear translator labels, own history icon,
  user-facing API-key placeholder, Save only when changed
- Pronunciation: short placeholders, entry count plural
- Structure: /settings opens General, nav names match pages, breadcrumb
  shows the model family, no repeated page heading
- Copy: Settings -> Models instead of stale page names; plurals
- Hearth: non-red primary action colour
2026-10-27 03:09:44 +05:30
Palash Debnath 48e85106eb feat(electron): simplify sidebar controls and remove sponsor footer (#3031)
Remove the sponsor footer, simplify sidebar performance controls, preserve cross-platform sidebar behavior, and keep featured integrations visible in the directory. Also ensure saved performance presets finish promptly while clone-draft synchronization continues safely in the background.
2026-10-23 19:34:19 +05:30
debpalash 637268be7a feat(perf): opt-in offload of the TTS model to RAM after generation (#2618)
For users sharing the GPU with a local LLM or other VRAM-heavy app. When
enabled (Settings > Performance & Device > Memory management, or
OMNIVOICE_OFFLOAD_AFTER_GENERATION=1; default off), the in-process TTS
model moves to system RAM once the GPU pool has been idle for a short
grace period, and the next generation moves it back through the existing
placement heal (get_model and now the cached OmniVoiceBackend path).

Works on CUDA/ROCm, XPU, NPU and MPS; a no-op on CPU. Never offloads while
another GPU job is running or queued, or while a dub/batch/audiobook job
is active. All model moves share one lock, and a failed restore leaves the
model wholly on CPU instead of split across devices.
2026-10-07 10:27:18 +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 DebnathandClaude Sonnet 5.5 86147607a5 fix(gpu): address #2501 review findings; regenerate API route snapshot
- route snapshot gains GET /api/settings/gpu-report
- IndexTTS: inspect bootstrap's own venv candidates, not only OMNIVOICE_INDEXTTS_DIR
- report: engines missing a dep/binary/model are never counted as using the GPU
- mixed Radeon+GeForce: diagnose the card the installed torch build targets
- Linux Intel Arc: discrete detection via PCI slot, no invented VRAM figure
- wizard: unparseable NVIDIA driver metadata skips the floor check
- tests: clear the cached fake probe; per-call module resolution

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-01 20:51:48 +05:30
Palash Debnath 0834c8be28 feat(studio): consolidate community fixes and composer UI (#2419)
Consolidate community engine, workflow, dictation, and setup fixes with the Electron composer, sidebar, and voice UI.

Fix review findings in engine residency, remote exports, backup cleanup, bounded compressed-audio decoding, and reference preprocessing. Preserve contributor credits in CHANGELOG.md and leave the app version unchanged.

Supersedes #2325, #2338, #2368, #2377, #2379, #2380, #2383, #2384, #2387, #2390, #2391, #2392, #2393, #2395, #2400, #2401, #2402, #2409, #2410, and #2412.
2026-09-29 21:15:25 +05:30
Palash Debnath f07e313cc7 Merge reviewed hardware presets while retaining independent pack selection 2026-09-28 14:44:41 -07:00
Palash Debnath 1ee696553f feat: complete workspace contributors, website previews and local agent interface 2026-09-28 14:32:57 -07:00
Palash Debnath 6b0f439574 fix: retain CPU planning and preset feedback during refresh 2026-09-28 14:27:10 -07:00
Palash Debnath 07375c8299 Polish hardware panel and preserve usable sidebar space 2026-09-28 13:40:09 -07:00
Palash Debnath a8444f61e7 feat: show live hardware usage and harden preset switching 2026-09-28 10:59:30 -07:00
Palash Debnath 76e61a1813 feat: compact engine sidebar and hardware-aware Auto presets 2026-09-28 06:56:03 -07:00
debpalash f75118a641 fix(settings): discover Windows NVSMI and strengthen retry coverage 2026-09-27 14:29:51 +05:30
debpalash 25fcde6004 fix(settings): preserve errors from newer save attempts 2026-09-27 14:16:37 +05:30
debpalash becfe26b25 fix(settings): clear CUDA save errors after successful retry 2026-09-27 14:09:18 +05:30
debpalash 6e90618a51 merge: include reviewed LAN and logout fixes; distinguish disabled CUDA 2026-09-27 13:58:33 +05:30
debpalash 4379c3eb12 fix(settings): keep CUDA selection validated and localized 2026-09-27 13:48:51 +05:30
debpalash 64e003a53b feat(settings): select the CUDA adapter on multi-GPU hosts 2026-09-27 06:26:04 +05:30
Shivendra-CoherentandClaude Opus 5 64f74e0dd2 fix: keep the backend alive on pre-Ampere NVIDIA GPUs (#2135)
On a Tesla T4 the backend exited during the first /generate with no
traceback and no HTTP response, leaving the client with
RemoteDisconnected and every later call with ConnectionRefused. Three
separate defects combined, which is why none of the reporter's
workarounds helped.

1. torch.compile(mode="reduce-overhead") captures CUDA graphs. T4
   (sm_75) passed the existing arch gate, so capture was attempted and
   aborted the process from inside the native CUDA library — below the
   interpreter, where neither the #278 eager-fallback wrapper nor any
   except clause can see it. The compile mode is now resolved per GPU:
   Ampere (sm_80) and newer keep the cudagraph mode, older cards drop to
   the non-cudagraph "default" mode and keep their compiled Inductor
   kernels. Fails open on any probe error, so no GPU that works today
   loses the optimization. OMNIVOICE_FORCE_CUDAGRAPH=1 restores it.

2. should_torch_compile() never read TORCH_COMPILE_DISABLE. main.py sets
   it on win32, build_engine_env injected it into subprocesses, and
   docs/install/windows.md tells users to export it — but the in-process
   gate ignored it, so the reporter exported the documented variable and
   still got "torch.compile applied". The gate now honours
   TORCH_COMPILE_DISABLE / TORCHDYNAMO_DISABLE / TORCHINDUCTOR_DISABLE on
   every platform, and an env opt-out on the parent propagates to engine
   subprocesses. The settings DB path is logged alongside the toggle:
   the reporter had three omnivoice.db files and edited one the backend
   never opened.

3. Settings -> Performance -> "Disable torch.compile" was rendered
   disabled outside Windows in both the Tauri and Electron UIs, so the
   one control that would have stopped this was unreachable for the
   affected Linux user. The toggle is now live on every platform, and
   build_engine_env honours it everywhere rather than only on win32.

Also arms faulthandler before torch is imported, so a fatal native
signal writes the faulting thread's Python stack to backend_err.log
instead of the process vanishing silently. This does not prevent a
crash; it makes one diagnosable. OMNIVOICE_DISABLE_FAULTHANDLER=1 skips
it.

Tests fail before / pass after, verified by stashing the source and
running the new tests against unfixed code. The crash test kills a real
child interpreter with a real SIGSEGV and requires a named Python frame
in the output. test_torch_compile_path_gate's fixture now clears the
compile-disable env vars: main.py setdefaults them on win32, so on a
Windows runner they leaked into os.environ and decided those tests.

Not verified on real hardware — no Turing GPU available. The sm_80 floor
is inferred from the crash report and from docs/hardware-notes-tesla-t4.md,
which already flagged cudagraphs on T4 as attempted by default and never
evaluated.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-16 17:20:09 +05:30
Palash Debnath f832d616f7 feat(electron): add full VoiceStudio desktop app 2026-09-14 10:22:23 -07:00