Commit Graph
8 Commits
Author SHA1 Message Date
debpalash c167687f3f test(clone): patch the engine's real base class in the requested-text check (#2579) 2026-10-04 15:01:44 +05:30
debpalash fac41c4a59 fix(clone): keep the requested text when the subprocess engine picks a reference passage (#2579) 2026-10-04 06:45:33 +05:30
debpalash 579660e7fd fix(clone): keep the installed passage when generation retries inline (#2579)
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.
2026-10-04 05:54:52 +05:30
drakeo338andClaude Sonnet 5.5 0d4a2995f6 fix(clone): only map the missing ASR snapshot to the length error
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 12:43:11 +00:00
drakeo338 716da57c9e fix(clone): name the length limit when a long reference has no speech-to-text model
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>
2026-09-30 00:20:09 +00:00
Killian CengoandPalash Debnath 4654f78c6b fix(clone): rank long references with installed speech model (#2301)
* 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>
2026-09-24 19:01:30 +05:30
kevinandPalash Debnath 05a4915e33 fix(clone): preserve uploaded reference format on generate (#2311)
Co-authored-by: Palash Debnath <4178343+debpalash@users.noreply.github.com>
2026-09-24 18:15:55 +05:30
debpalashandClaude Opus 5.5 4b72c3af55 fix(clone): long references clone on OmniVoice; engines report the reference length they use (#2286)
* 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>
2026-09-23 11:49:49 +05:30