Commit Graph
1040 Commits
Author SHA1 Message Date
debpalash e3cb11f611 fix(train-4): keep healthy engines' licence dependencies when one lookup fails (review) 2026-11-08 13:41:14 +05:30
debpalash dee00823cb fix(train-4): cap clone-profile reference upload size (review) 2026-11-08 13:40:47 +05:30
debpalash dcadc1bbb0 fix(train-4): report licence dependency lookup failure as incomplete (#3863 follow-up) 2026-11-08 13:03:11 +05:30
debpalash 6903de839e Merge remote-tracking branch 'origin/main' into train/4 2026-11-08 12:59:10 +05:30
debpalash 7f4584860e Merge remote-tracking branch 'origin/main' into train/1
# Conflicts:
#	backend/engines/cosyvoice_subprocess/__init__.py
#	backend/engines/moss_tts_nano_subprocess/__init__.py
#	backend/services/tts_backend.py
#	docs/STRUCTURE.md
2026-11-08 10:55:58 +05:30
debpalash 3ec43b3894 Merge #3670: fix(security): make content mutations admin-only (@DeryFerd) 2026-11-08 09:55:13 +05:30
debpalash 0c112c10d6 Merge train/2 into the train
# Conflicts:
#	tests/backend/engines/test_omnivoice_gguf.py
2026-11-08 09:48:50 +05:30
debpalash eaad146977 Merge train/3 into the train 2026-11-08 09:48:22 +05:30
dutch2005 6ff3a5c332 fix(rocm): install matching Linux sidecar Torch and report AMD routing 2026-11-07 22:04:03 +01:00
debpalash 66a186646b Merge #3664: feat(audiobook): per-line [emotion:] direction for Audiobook and Stories (#3422) (@sidmax7) 2026-11-08 02:22:38 +05:30
debpalash a1b1618645 fix(train-3): scope read-only model-folder grants to discovery (#3702 review) 2026-11-08 02:21:47 +05:30
debpalash 0a404bf710 Merge #3702: feat(models): configure and discover local model folders per engine (@EriconYu) 2026-11-08 02:14:11 +05:30
debpalash 4df83b3fcd Merge #3819: fix: community batch, November (21 fixes, one commit each) (@rudycelekli) 2026-11-08 02:02:55 +05:30
debpalash 67f7f62ae2 Merge #3740: feat(dub): offer Kabyle as a translation target (@Aksel103) 2026-11-08 02:02:54 +05:30
debpalash aebfcfa8e4 Merge #3667: fix(gguf): reject explicit non-default quality knobs instead of dropping them (#3654) (@swadhinbiswas) 2026-11-08 02:02:52 +05:30
debpalash dd370cb610 Merge #3863: fix(setup): list every licence an engine needs in the catalogue dialog (#3855) (@InesZenkri) 2026-11-08 02:00:06 +05:30
debpalash 79a45525d2 Merge #3694: feat(clone): export takes as MP3 (@lucassmonn) 2026-11-08 02:00:01 +05:30
debpalash a09399b72b Merge #3678: fix(asr): drop non-finite segment scores in OpenAI transcriptions (@filip-gooddata) 2026-11-08 02:00:00 +05:30
debpalash 693df50811 Merge #3669: fix(api): gate gallery router with require_admin (@DeryFerd) 2026-11-08 01:59:57 +05:30
debpalash 6a77ceeb56 Merge #3657: fix(setup): no driver-update advice when the NVIDIA driver already qualifies (@ColinCee) 2026-11-08 01:59:55 +05:30
Ines Zenkri 7242490f96 fix(setup): only list licences the engine's gate actually requires (#3855) 2026-11-07 21:19:19 +01:00
Ines Zenkri ee19bf69e5 fix(setup): list every licence an engine needs in the catalogue dialog (#3855) 2026-11-07 21:10:02 +01:00
velixio 8c6f352618 fix(dub): ask for the language of an unrecognised caption track
An unknown caption tag now resolves to no language, but importing the
captions cleared the missing-language marker, so translation fell back
to English. Keep the marker when the tag is unknown, and match language
names whole so "myanmar-english" is not read as Burmese.
2026-11-07 16:08:38 +05:30
velixio 3e2f480132 fix(gpu): do not block requests on the self-test, and void a stale pass
Requests on the event loop no longer wait for it, the notice no longer caches an
answer given while it runs, and a pass ends when the visible GPU, the override or
the card changes. WhisperX follows the verdict too.
2026-11-06 23:46:31 +05:30
Rudy Celekli 46713b5081 fix(dub): preserve stereo energy in timeline analysis
Onset and peak analysis down-mixed stereo by averaging the channels. Speech
recorded with one channel phase-inverted cancels to near silence in the
mean, so the timeline showed no onsets for audible speech. Use the
per-sample maximum absolute value across channels, and version the cached
analysis so stale results are recomputed.
2026-11-04 22:12:32 -05:00
Rudy Celekli b622a80ffb fix(glossary): return the usual auto-extract result for blank segments
POST /glossary/{project}/auto-extract returns
{project_id, proposed, inserted, terms}, but when every segment was blank
it returned the bare term list instead, so a caller reading
result["inserted"] failed. Return the same shape with zero counts.
2026-11-04 22:07:50 -05:00
Rudy Celekli c1b6e6d098 fix(dub): reject downloads of an unavailable language track
The audio, MP3 and stems downloads accept ?lang=. When the requested
language had no dubbed track they fell through to another track and
returned it as if it were the requested language. Answer 404 instead;
requests without lang, or for an existing track, are unchanged.
2026-11-04 22:07:49 -05:00
Rudy Celekli 1599082353 fix(dub): pad odd-sized video before H.264 encoding
libx264 with 4:2:0 output needs even frame dimensions. Exporting a dub of an
odd-sized source (a 1365x767 screen recording, say) with burned subtitles or
a Stretch Video retime failed in ffmpeg with "width not divisible by 2".
Pad at most one row and column so every source pixel is kept.
2026-11-04 22:07:49 -05:00
Rudy Celekli 0282fed54e fix(dub): align exported background stems with fitted vocals
The stems export decided whether to retime the background from the
job-level timing strategy, which follows the last generated language. After
dubbing a second language another way, the selected track's vocals were
retimed but its background stem was not, so the two stems no longer lined
up. Resolve the retime against the selected track's own strategy without
changing the stored job.
2026-11-04 22:07:48 -05:00
Rudy Celekli 4ea99c7777 fix(dub): keep a Stretch Video track's retime after dubbing another language
The export read job["timing_strategy"], which only records the most recent
generate. Dub German with Stretch Video, then French with Strict Slot, and
the German export lost its video retime and drifted out of sync. Read the
strategy the track itself was generated with; tracks from before the
per-track record keep the job-level fallback.
2026-11-04 22:07:48 -05:00
Rudy Celekli e6321c52b3 fix(dub): score Verify Dub on Smart Fit and Stretch Video tracks where each line plays
Smart Fit and Stretch Video place each dubbed line at its fitted position,
so the QC recognition is timed on that track. The QC pass matched it
against the source segment times, which paired lines with their
neighbours' speech once a retime shifted the timeline and flagged clean
lines as drifted. Score each line in the fitted window the subtitle
exports already use.
2026-11-04 22:07:48 -05:00
debpalash 83da6c911a fix(api): preserve consumer reads while guarding content writes 2026-11-03 12:42:31 +05:30
eric-studio 28b606843d fix(models): preserve recovery, environment overrides and responsive lifecycle 2026-11-02 18:32:42 +08:00
SelyanKab d80828a4a5 feat(dub): offer Kabyle as a translation target and add a macOS launcher 2026-10-31 18:39:41 +01:00
eric-studio 414f7b4ffd fix(models): bind discovered selection to unchanged directory identity 2026-10-30 13:54:03 +08:00
eric-studio 041dcf13f0 feat(models): configure and discover existing local checkpoints per engine 2026-10-30 13:45:31 +08:00
DeryFerd 91174516a6 fix(api): gate unprotected routers with require_admin
Sixteen API routers declared APIRouter() with no dependencies, so their
mutating routes relied solely on ASGI middleware. In server mode bound to
0.0.0.0 without OMNIVOICE_API_KEY or a share PIN those routes were
reachable unauthenticated from LAN.

Desktop default (bind 127.0.0.1) is unchanged: require_admin permits
loopback, matching the routers that were already gated.

Router-level choices after review: openai_compat stays on require_consumer
because /v1 is the documented consumption surface for PIN and
trusted-network clients; the side-effectful pending-sample materialization
inside GET /profiles/{id}/audio uses a media-action admin gate
(require_admin_media_action) because media elements cannot carry the CSRF
marker header that require_admin_action demands — cross-site GETs stay
rejected and bare-server anonymous callers stay refused.

Handler tests that exercised the changed routers with a default TestClient
host now use an explicit loopback peer, matching the existing pattern for
gated routers. test_admin_route_policy.py asserts require_admin on every
gated router, require_consumer on /v1, and the media-action guard on the
profiles materialization branch.

Excluded: events/tts_stream (websocket-only, covered by
BearerKeyMiddleware), speech_platform (read-only discovery intentionally
reachable from tailnet and reverse proxy clients).
2026-10-30 03:27:02 +07:00
DeryFerd b276ba15f4 fix(api): gate gallery router with require_admin
The voice gallery router declared APIRouter() with no dependencies, so its
mutating routes (delete voice, YouTube search/download, upload,
batch-delete, save-as-profile, to-profile) relied solely on ASGI
middleware. In server mode bound to 0.0.0.0 without OMNIVOICE_API_KEY or
a share PIN those routes were reachable unauthenticated from LAN
(critical: arbitrary file write/delete plus DB mutation).

Desktop default (bind 127.0.0.1) is unchanged: require_admin permits
loopback, matching the routers that were already gated.

Router-level choice after review: reads stay on require_consumer so
PIN/trusted-network consumers keep list and preview access, while each
mutating route carries require_admin per method-aware gating.

Handler tests use an explicit loopback TestClient peer, matching the
existing pattern for gated routers, and a new test asserts the real
authorization response: a non-loopback caller without credentials gets 403
on reads and mutations (with server mode explicitly cleared).

test_admin_route_policy.py asserts require_consumer on the router and
require_admin on every mutating route.
2026-10-30 03:26:48 +07:00
lucao 1be73510db fix(audio): keep local paths out of encoder errors; document encoded audio as binary
- The shared ffmpeg encoder reduces the input path to its file name and
  scrubs home paths/secrets from stderr before raising, so the Ogg/Opus
  and MP3 routes never log or return local paths.
- /audio/<id>.mp3, .ogg and .opus declare binary audio/* 200 responses,
  so generated clients stop treating them as JSON; contract regenerated.
2026-10-29 16:39:31 -03:00
lucao 64cab755b4 feat(clone): export takes as MP3
The Clone save button gains a format menu offering WAV (lossless, the
one-click default) or MP3. The backend serves any render at
GET /audio/<id>.mp3, transcoded with ffmpeg/libmp3lame (VBR -q:a 2, the
same quality as the dub exporter); the Ogg/Opus encoder now shares the
ffmpeg helper.
2026-10-29 14:44:09 -03:00
Filip Kalný 3259e44e8d fix(asr): drop non-finite segment scores in OpenAI transcriptions
MLX Whisper's temperature fallback can report NaN or infinite
avg_logprob/compression_ratio. _num passed them through and the JSON
encoder raised ValueError, turning the whole transcription into a 500.
2026-10-29 13:42:44 +01:00
sidmax7 139d18670a fix(generate): a line emotion accepts an emotion strength without emo_text 2026-10-29 16:42:32 +05:30
sidmax7 f7c6c5257d feat(stories): line previews and stems apply [emotion:] like the full render
Stories previews and stem exports synthesize each chunk through /generate,
which dropped the span's emotion. /generate takes an optional emotion
(max 200) and applies it with apply_span_emotion, now shared with the
Audiobook render in services/expression, so preview, stems and the full
render use one mapping.
2026-10-29 15:43:11 +05:30
Colin Cheung 794a823637 fix(setup): only a CUDA build makes the NVIDIA card ready
A ROCm build's is_available() also answers for a second, AMD card, so an NVIDIA host with a ROCm build was reported as CUDA-ready and skipped the ROCm advice.
2026-10-29 09:54:41 +00:00
swadhinbiswas eac026810b gguf: per-knob ranges and sidecar flag coverage (#3654)
Review round 5, both verified first:
- Supertonic3 clamps num_step to [5, 12] in generate(), so an explicit 32
  silently renders as 12. New optional num_step_range on the base class
  (None = unbounded); the endpoint 400s explicit out-of-range values with
  the supported range named. Set for supertonic3 (5, 12) and VoxCPM2
  in-process + sidecar (1, 64, per generation_kwargs' clamp). Stays at the
  API boundary so dub previews (num_step=8, in range everywhere) and
  default-filled calls behave exactly as before.
- CosyVoiceSubprocessBackend and MossTTSNanoSubprocessBackend replace
  their in-process classes via _effective_backend_class but inherit the
  permissive defaults while their sidecars ignore both knobs; both now
  declare supports_num_step/supports_guidance_scale = False.
Tests: endpoint range reject/pass-through, real-class bound assertions,
sidecar flag assertions; all fail before, pass after.
2026-10-29 14:09:42 +06:00
swadhinbiswas cac2e72eca gguf: per-knob support flags across all engines (#3654)
Review round 4: a single supports_quality_knobs default-True was wrong in
both directions — silent drops persist on engines I hadn't audited
(KittenTTS ignores both knobs), while a blanket default-False would 400
currently-working explicit knobs (supertonic3 honors num_step, audio.cpp
honors guidance_scale).

Audited every reachable TTS backend's generate chain: two flags,
supports_num_step / supports_guidance_scale, default True, set False only
where reading the code proves the knob is dropped (gguf x2, kittentts x2,
cosyvoice x2, cosyvoice-gguf x2, pockettts x2, indextts2 x2, moss-tts-v15
x2, moss-tts-nano x2, gpt-sovits x2, sherpa-onnx x2, confucius4-tts x2,
audiocpp-dots x2, supertonic3 guidance-only, audiocpp num_step-only).
Verified-honoring engines (in-process omnivoice, voxcpm2, dots-tts,
omnivoice-subprocess) and the unverifiable mlx-audio keep defaults, so no
working flow changes. Endpoint rejects per knob; changelog fragment per
new convention.
2026-10-29 13:54:50 +06:00
swadhinbiswas 435ba12bfe Merge current upstream main into fix/3654-gguf-num-step-rejected 2026-10-29 13:33:22 +06:00
swadhinbiswas baafd8a4ff gguf: move knob rejection before eviction, raise mapped 400 (#3654)
Review round 3: a request that will 400 must not first evict the resident
engine (or warm the selected one). The check now runs right after the
routing gate, and raises the same OpenAIError the generate-step mapper
builds for TTSInputError — the new site is outside that try block, where
an unmapped TTSInputError would fall to the generic 500. Ordering pinned
by making eviction explode in the rejection test.
2026-10-29 13:22:52 +06:00
swadhinbiswas 535497715b gguf: reject unsupported quality knobs at the API boundary (#3654)
Review follow-up: the engine-level guard was wrong in two ways. Dubbing
previews always pass num_step=8, which the guard mistook for an explicit
request and broke previews; and the C++ source pins its own default at
num_step=32, so the app-default comparison accepted exactly the values it
should have questioned.

Validation now lives where explicit-vs-filled is still known: the
/v1/audio/speech endpoint raises TTSInputError (mapped to 400 by the
existing _typed_speech_http_error) when num_step/guidance_scale are passed
for an engine with supports_quality_knobs=False (new capability flag,
default True; set on the GGUF backend). The engine stays permissive so
previews and default-filled pipelines behave exactly as before.

Tests: endpoint 400 + pass-through controls (fail before), engine
permissiveness pin incl. the preview's num_step=8.
2026-10-29 13:11:18 +06:00
sidmax7 e523fd7846 Merge remote-tracking branch 'upstream/main' into feat/3422-per-line-emotion 2026-10-29 10:30:53 +05:30