Repository navigation
fix(clone): say a long reference is too long when no speech-to-text model is installed - #2444
Conversation
…-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 debpalash#2442 Signed-off-by: drakeo338 <[email protected]>
…transcript Remove the second, unreachable copy of the over-limit message. The over-75 s and no-speech errors no longer suggest a transcript for clips over 20 s, which are refused anyway. Reword the missing-ASR hint and update the offline test. Refs debpalash#2442 Signed-off-by: drakeo338 <[email protected]>
|
[Medium risk] Voice clone reference validation changes error messages. The PR appears safe to merge; no outstanding finding remains. SummaryThe PR gives references over 20 seconds a length-specific error when the cached speech-to-text model is missing.
Reviews (2) · Last reviewed commit: "fix(clone): only map the missing ASR sna..." |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: debpalash/VoiceStudio/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughReference audio error messages now account for the 20-second transcript limit. Long clips receive trimming guidance when a transcript or cached ASR model is unavailable. Shorter clips retain transcript guidance where applicable. ChangesReference transcription errors
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to Long references without an available speech-to-text model receive trim guidance, while the interface distinguishes the transcript and no-transcript limits. No material merge risk is established. 🚥 Pre-merge checks | ✅ 7 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (7 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 53.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 15 functions across 4 files. (1 skipped: 1 unsupported.) Full details: I18n Completeness (21 Locales)Explanation The PR adds and changes user-facing clone errors as hardcoded Python strings in
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Narrowed the catch to the missing-snapshot error so other ASR load failures surface as before, and added the changelog credit, in 0d4a299. |
Summary
Fixes #2442.
With no speech-to-text model, a reference over 20 s got a request for a transcript that would be refused anyway. It now says the clip is too long and to trim it to 3-10 s.
Changes
omnivoice.py), plus tests and CHANGELOGType
Testing
Ran
tests/test_clone_long_reference.py,tests/test_omnivoice_reference_bound.pyandtests/test_reference_asr_offline.pyon the committed HEAD: 85 passed (4 failed on the base). smoke-matrix not run locally, so unticked.Checklist
package.json,pyproject.toml,backend/core/version.py, and lockfilestests/fixtures/omnivoice_data/still loads green on thesmoke-matrixCI job (macOS + Windows + Linux)Release cadence
VoiceStudio ships continuous-to-main — no release candidates, no soak windows.
Every merged PR is immediately part of rolling source (
main) and Docker:latest. Electron artifact rehearsals validate desktop packages without publishing.Version bumps require owner approval; validated releases are tagged from
mainand published explicitly under the release checklist.
Users who want stability install an Electron release or pin Docker
:stable.OmniVoice now reports the 20-second reference limit for long clips that cannot use transcript-based processing, while shorter clips retain the missing-ASR or transcript guidance. This gives users the relevant error and trim guidance; tests and the changelog reflect the change. The author reports 85 tests passed and 4 failures also present on the base; the smoke matrix was not run locally.