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.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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.
- 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.
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.
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.
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.
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.
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.
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.
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.
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.