Commit Graph
37 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
Palash Debnath 039e8fa11d feat(api): ElevenLabs-compatible API under /elevenlabs (#4467)
* feat(api): ElevenLabs-compatible API under /elevenlabs

Apps and SDKs built for ElevenLabs work with VoiceStudio by changing the
base URL. Text to speech (whole and streamed, mp3/opus/wav/pcm/ulaw/alaw at
the requested rate), speech to text with ElevenLabs word items, voices,
default voice settings and models, mapped onto the OpenAI-compatible
handlers so routing, licence gates, pronunciation and the watermark are
shared. xi-api-key is accepted as the API key on /elevenlabs routes only.

* docs(changelog): ElevenLabs-compatible API (#4467)

* feat(api): ElevenLabs voice changer and sound effects routes

* feat(api): ElevenLabs speaker labels and voice isolation

* style: drop unused imports

* feat(integrations): ElevenLabs Python SDK snippet on the VoiceStudio API page

* docs(structure): 47 routers

* fix(api): review findings on the ElevenLabs-compatible API (#4467)

- mp3/opus/wav deliver the rate and bitrate output_format names; other
  combinations are a 422
- audio routes declare audio, not JSON, in the API contract
- isolation never starts a Demucs weight download: it needs the model
  cached by an in-app separation first
- transcription uploads (OpenAI and ElevenLabs routes) stream to disk in
  chunks under a 2 GB cap instead of a whole-file read; the temp file no
  longer leaks when reading fails
- upload writes leave the event loop; isolation cleans up if its work dir
  cannot be created
- the ElevenLabs snippet sends no placeholder key
- no traceback in the model-list warning

* fix(api): ElevenLabs API review findings and CI (#4467)

- Route both WAV writes through the audited _safe_soundfile_write helper.
- Accept only MP3 bitrates libmp3lame encodes exactly for the rate (MPEG-1
  at 32 kHz and above, MPEG-2/2.5 below); list the six PCM rates in the docs.
- Remove the staged upload when cancellation interrupts a transcription
  upload, and keep the cancellation.
- Close the diarization copy through an ExitStack; explain best-effort
  unlink excepts.
- The local OpenAI snippet reads OMNIVOICE_API_KEY like the ElevenLabs one,
  so a Docker backend on 127.0.0.1 accepts it.
- The nested-ASR owner test's fake upload reads in chunks like the route.

* fix(elevenlabs): close review findings on the compat API

- pcm_32000, the SDK's /v1/voice-changer path and /stream forms are served
- voice isolation accepts Demucs 4.1's Hugging Face cache and runs Demucs
  offline, so the request never downloads a model
- the voice changer refuses video, whose swap path can fetch a model
- oversized uploads are refused while they arrive, before multipart spooling
- staged uploads close off the event loop after a cancelled write, and an
  abandoned diarization worker keeps its audio until it lets go
- Opus is encoded at a constant bitrate; MP3 tests read frame headers

* test(api): record the ElevenLabs voice-changer routes in the route inventory

* chore(licensing): record the Hugging Face htdemucs weights voice isolation checks for
2026-11-25 22:24:16 +05:30
e521809ad6 feat(audiocpp): wire up Fish Audio Drama 3 (GGUF) engine (#3129) (#4361)
* feat(audiocpp): wire up Fish Audio Drama 3 (GGUF) engine (#3129)

* fix(audiocpp): record Drama 3's licence terms and owner approval; docs and test hygiene (#4361)

- model_licenses.json: Drama 3 is review_status noncommercial with the
  governing Fish Audio Community License v1.0 pinned as evidence and its
  terms in the notes (non-commercial; commercial only under USD 500k revenue;
  no hosted service; consent, impersonation, watermark and training limits;
  'Built with Fish Audio'). Owner-approved 2026-11-23 for the free app
  behind first-use acceptance, not cleared for Pro. Re-serialized with
  ensure_ascii so unrelated entries keep their escapes.
- docs: audio-cpp guide section and licence terms, feature catalog,
  features.yaml engine inventory, engine-acceptance approval date; licence
  data regenerated.
- The backend test resolves app modules at test time.
- Changelog fragment.

* fix(audiocpp): pin Drama 3 centrally so every catalogue repo has a reviewed revision (#4361)

* test(licences): account for the Drama 3 central pin (#4361)

---------

Co-authored-by: edu-a-p-martins <edu-a-p-martins@users.noreply.github.com>
Co-authored-by: debpalash <4178343+debpalash@users.noreply.github.com>
2026-11-23 10:07:38 +05:30
Palash Debnath eb0fda32e6 fix(asr,licence): ROCm 4 GB dictation pick by VRAM fit; licence notes edits keep acceptance (#4335, #4334) (#4336)
* fix(asr): pick the ROCm dictation checkpoint by VRAM fit (#4335)

* docs(changelog): ROCm dictation VRAM-fit pick (#4336)

* docs(changelog): reference the PR number (#4336)

* fix(asr): probe ROCm capture VRAM only behind the host gates (#4335)

* fix(licence): a notes-only registry edit keeps an existing acceptance (#4334)

* fix(asr): keep a ROCm capture checkpoint only while its weights are on the GPU (#4335)
2026-11-22 15:42:41 +05:30
Palash Debnath 866eefc9fb fix(omnivoice): gate the fallback Higgs tokenizer only when it would load (#4333)
* fix(omnivoice): gate the fallback Higgs tokenizer only when it would load (#4329)

* fix(omnivoice): guard the tokenizer fallback at the loader; break gate import cycle

* docs: count the omnivoice_checkpoint service module

* fix(omnivoice): fail closed on the tokenizer fallback; leaf checkpoint resolver

* fix(omnivoice): let the subprocess sidecar use the accepted tokenizer fallback

* fix(omnivoice): drop an inherited tokenizer-acceptance signal from the sidecar env
2026-11-22 07:30:38 +05:30
Dery Ferdika ed80856e84 fix(api): gate reviewed-install prepare and commit routes (#4152)
Require consumer authorization for reviewed model-install preparation and commit, matching the existing installer. Include remote-client rejection coverage, policy updates and documentation.
2026-11-15 04:59:36 +05:30
Palash Debnath 39a6c551dc fix(models): make the installed-model licence action clickable (#4147)
Open the existing licence terms and acknowledgement dialog from installed gated model actions, including dependency licences and native keyboard activation. Preserve licence enforcement and separate runtime readiness. Includes regression tests, licensing docs and verified Discord reporter credit; closes #4143.
2026-11-15 00:32:57 +05:30
debpalash bbe65ed218 Merge origin/main into k-3976 2026-11-10 15:45:15 +05:30
Kai Kugler e53c9fe20d feat(tts): add incremental OpenAI speech and Qwen Base adapters 2026-11-10 10:45:07 +01:00
debpalash e5e03cccb8 Merge origin/main into feat/ming-tts 2026-11-10 14:39:16 +05:30
debpalash 46ad140dd2 feat: sound-effect generation with the opt-in MOSS-SoundEffect v2.0 engine (#3577) 2026-11-10 08:26:32 +05:30
debpalash 7a4ac48c5a fix(ming-tts): pin Ming weights revision, raise input error for missing reference clip, redact logged paths 2026-11-10 07:17:16 +05:30
debpalash de26e57e83 feat(engines): add Ming-3.0-tts as an opt-in sidecar engine (#3793) 2026-11-10 05:59:17 +05:30
velixio 63958e878f fix: clear resolved licence warnings in synthesis and model selection 2026-11-09 01:32:26 +05:30
Palash Debnath faa5294359 fix(mobile): restore OmniVoice speech and expand phone voice models (#3715)
Restore saved-voice OmniVoice speech, add native phone voice models and connect the public Gallery. Harden mobile first-use flows and consent, and skip runtime builds for documentation/test-only changes while retaining lightweight Docker Hub documentation publishing. Include the CLA-signed storage and contact test fixes from #3706 and #3707. Fixes #3671.
2026-10-31 15:29:16 +05:30
debpalash f089cc3fcc Address review on catalogue packages and audio.cpp dots.tts
- dots.tts reports 48 kHz before its first render (was Breeze's 24 kHz).
- The licence projection marks package entries catalogued by their own id.
- Catalogue and cache helpers move to services/model_catalogue, so
  engine disk usage no longer imports a router (cyclic import).
- Best-effort except clauses say why they continue.
2026-10-27 19:12:05 +05:30
debpalash 86ecf65018 Run dots.tts on the audio.cpp runtime, incl. Windows
Model Catalogue keyed every entry by its Hugging Face repo, so a second
package from audio.cpp's shared GGUF repo could not be listed, installed
or removed on its own. Entries can now declare their own catalogue id
(<repo_id>:<package>); installs, install state, licence records, disk
usage and uninstall use it, while Hub calls and the cache keep the repo.
Uninstalling one package removes only its own files. Whole-repo entries
keep their repo id, so existing installs and acceptances are unchanged.

On top, the audiocpp-dots engine serves dots.tts SOAR through the pinned
audio.cpp v0.7.4 runtime (family dots_tts) with its own package, port and
server directory. TTS engine rows can install the shared runtime.
2026-10-27 15:41:49 +05:30
kevin9327 fb5fcfb771 fix(tts): build the OuteTTS speaker from a local Whisper instead of downloading in the worker (#2700) 2026-10-27 00:33:33 +05:30
debpalash e0355c1407 fix(sherpa-onnx): load Piper voices and lexicon VITS models; keep phone models out of the desktop licence gate
Piper releases name the model <voice>.onnx and need espeak-ng-data; accept a
single .onnx when model.onnx is absent and pass espeak-ng-data/lexicon.txt to
the VITS config. Phone-only licence rows now carry mobile: engine ids so the
desktop sherpa-onnx engine stops asking for the phone models' licences.

Based on #3373 by @MehmetinLove; drops the unused dict_dir and the unrelated
Turkish exam example.
2026-10-26 16:51:34 +05:30
Palash Debnath bc5025cc0e feat(tts): opt-in native CosyVoice 3 GGUF engine (Vulkan/CPU) (#3449)
feat(tts): opt-in native CosyVoice 3 GGUF engine (Vulkan/CPU)
2026-10-26 03:28:40 +05:30
dutch2005 5ee41e305b feat(asr): add local whisper.cpp transcription with optional Vulkan acceleration
Run local transcription and translation while preserving CPU choices, cached checkpoint names, actual model provenance and consistent source-language choices for translation, pack setup and glossary extraction.
2026-10-26 02:55:31 +05:30
debpalash 29f3b43fa3 fix(mobile): keep stereo channels and portable licence notices 2026-10-23 20:24:54 +05:30
debpalash 9972932778 Merge main into feat/mobile-on-device
# Conflicts:
#	CHANGELOG.md
#	docs/licensing/model-license-data.json
#	tests/test_model_license_workflow.py
2026-10-22 17:49:12 +05:30
velixio 63e403fcc0 feat(catalogue): list VoxCPM2 8-bit with its licence record 2026-10-22 16:49:33 +05:30
debpalash 383f8933e4 feat(mobile): phone model catalogue generated from the licence registry
Seven pinned, checksummed models for on-device use (Kitten and Kokoro TTS,
Whisper tiny/base, streaming Zipformer, OmniVoice Q4_K_M, Qwen3-1.7B Q4_K_M).
scripts/export_mobile_models.py joins mobile/contract/models.source.json
with the desktop licence registry; the contract test fails on drift, a
missing registry entry or an unhashed file. Four new registry rows are
added unreviewed (existing rows untouched so desktop acceptances stay
valid).
2026-10-18 03:37:45 +05:30
Bicheng (Kenneth) 55ad9b1787 Merge branch 'main' into fix/moss-pinned-loading 2026-10-14 00:01:56 -07:00
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
BichengWang f7aab8bc8d fix(moss): load model and codec from independently pinned snapshots 2026-10-10 12:21:11 -07:00
velixio 4458c6ec01 feat(licensing): readable licence dialog and recorded acceptances
Licence dialog, in the catalogue and when another page needs a model:
a plain summary (category, licence, review and acceptance state), what
the licence allows, the source, then collapsible variants, notes,
technical details and the verified-install preview, on a solid surface
with an always-visible acceptance footer. Several blocked models each get
their full licence and their own confirmation checkbox.

Acceptance and withdrawal are recorded per model with a UTC timestamp,
the exact terms fingerprint, the app version and the terms snapshot; the
last 20 actions are kept as history. The fingerprint now covers every
visible term field and licence document hash, so any change to a model's
terms asks again and the dialog names what changed. Earlier plain-string
records still read. New GET /models/licenses/details/{repo_id}.
2026-10-10 17:44:54 +05:30
velixio b0c58f98fb fix(licensing): close review findings on the licence acceptance gate
- fail closed when the licence registry or the acceptance store is unreadable
- keep the Supertonic-3 per-engine flag and the new acceptance in sync
- require admin to accept or revoke licences on a shared server
- let local model folders through as non-registry models, like ASR does
- open the acceptance dialog from dictation, TTS stream, task/SSE streams,
  streaming generate and batch, not only plain HTTP errors
- point error text at Model Catalogue
- map moonshine/tiny in the licence-coverage checker (CI)
- behavioural tests for every TTS, dub, batch, audiobook, dictation and
  NLLB gate, each verified to fail when its gate is removed
- docs and licence-data scope no longer call first-use unenforced
2026-10-10 15:37:44 +05:30
velixio 4a73d4e9cd feat(licensing): require licence acceptance before a non-commercial-category model is used
VoiceStudio is not the licensor and cannot grant model rights. Every model
whose declared licence category is not commercial must have its licence
accepted before it can be loaded or used, including models that are already
downloaded. Acceptance is stored per model, bound to a fingerprint of the
recorded terms, can be withdrawn, and an earlier Supertonic-3 acceptance
carries over. Unmapped or unreadable state fails closed.

Backend: model_acceptance service, accept/revoke/status routes, a 403
model_licence_required error, and gates at the TTS, ASR, dictation,
diarisation and translation load points. The failure payload reaches job,
SSE, WebSocket, OpenAI-compat and worker paths.

UI: Licence: icon trigger, acceptance form in the licence dialog, an
app-level dialog for any feature that hits an unaccepted model, and an
'Accept licence to use' state in place of 'Installed'. Strings in all
21 locales; docs and changelog updated.
2026-10-10 15:20:35 +05:30
velixio 72ecf82ee1 feat(licensing): categorise declared model licences with coloured icons
Derive a display-only licence category (commercial, conditions,
noncommercial, unknown) from the declared licence ids. The most
restrictive part of a record wins, restricted variants restrict their
repo, and unmapped ids fall back to unknown. CI fails when a registry
licence id is not mapped.

Model cards show a two-tone coloured SVG icon per category with the
licence, category and review state in the tooltip and accessible name.
Non-commercial review statuses no longer render as 'Not verified'.
2026-10-10 13:20:28 +05:30
Palash Debnath d1ae6687fe feat(licensing): add model disclosures and reviewed-file preview 2026-10-09 13:15:19 +00:00
debpalash ddce4bec67 fix(licensing): cover runtime model defaults and clarify paid scope 2026-10-03 06:55:29 +05:30
debpalash 3151fa99e8 fix(licensing): cover additional model defaults and aliases 2026-10-03 06:40:58 +05:30
debpalash b1d8c5728a chore(licensing): gate model inventory completeness in CI 2026-10-03 06:31:59 +05:30
debpalash 07d609998f docs(licensing): audit locked PyAV binary dependencies 2026-10-03 06:19:56 +05:30