v0.5.6 asked OmniVoice's bundled Whisper to transcribe references over
20 s; main already ranks them with the selected recognizer (#2301). The
inline retry after a failed prompt precompute still passed the whole clip
without a transcript and reached the same error. It now shares the
sidecar's passage selection.
A reference over 20 s cannot take a transcript, yet the missing-ASR error only asked for one. Say the clip is too long and to trim it to 3-10 s, keeping the old message for clips within 20 s.
Refs #2442
Signed-off-by: drakeo338 <paranoyouz@gmail.com>
* fix(clone): rank long references with the installed speech model (#2281)
A clip over 20 s dropped its transcript and asked OmniVoice's cached Whisper snapshot to score 15 s windows. That snapshot is not the Model Catalogue recognizer, so synthesis failed even when Faster-Whisper was already installed.
* docs(changelog): keep the long-reference note under Unreleased
The rebase had dropped it into the already tagged 0.5.6 section.
* fix(clone): key the long-reference window to the recognizer that picked it
The cached prompt did not record which 15 s passage or which installed speech model produced it, so a later recognizer could reuse the wrong window. The notes now state that only that window is cloned.
* fix(clone): lock the long-reference window cache
Two GPU workers can rank long clips at once. The window list now uses the same lock as the prompt cache, so one request cannot drop the other's passage.
* fix(clone): keep long-reference ranking compatible and cached
Decode clips libsndfile cannot read, key the window by every recognizer that may transcribe it, and remember a miss so the next chunk does not rank the same clip again.
* fix(clone): keep reference diagnostics path-free
* test(clone): isolate selected-window prompt cache identity
---------
Co-authored-by: Palash Debnath <4178343+debpalash@users.noreply.github.com>
* fix(clone): let long references clone and say what each engine uses
OmniVoice rejects a transcript paired with a clip over 20 s, and every
automatic path produced exactly that pair: Voice Clone and /generate
transcribed the whole clip, and saved profiles kept that transcript. A
25 s saved voice was permanently unusable on the default engine even
though the model can pick its best 15 s passage from clips up to 75 s.
- Drop whole-clip transcripts on over-long OmniVoice references at the
engine boundary (prompt cache, inline fallback, sidecar) and skip the
wasted whole-clip ASR; a transcript typed on /generate still gets the
actionable [clone_ref_too_long] error.
- VoxCPM2 ignores a whole-clip transcript once its 30 s cap cuts the clip.
- Engines advertise max_ref_seconds/ref_strategy via list_backends().
- Electron Voice Clone shows an engine-aware note instead of the 15 s
trim toast and leaves the transcript to engines that pick a passage.
Refs #2281
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* test(clone): patch the sidecar backend's own base class
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(clone): review fixes for long references (#2281)
- A transcript sent with a saved voice over the limit gets the same
[clone_ref_too_long] 400 as an upload instead of being dropped.
- omnivoice_ref_text treats blank text as no transcript.
- The VoxCPM2 sidecar advertises its 30 s head limit; a parity test pins
every sidecar's reference metadata to its in-process engine.
- The Voice Clone transcript hook withdraws its own whole-clip transcript
when the engine starts picking the passage itself, keeping user edits.
- Changelog credits use the standard form.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(generate): probe reference length off the event loop
Non-WAV clips decode through ffmpeg to measure length; doing it inline on the
async route stalled every other request.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>