feat(tts): add segment-level narration audition lab#72
Open
RayJiang4S wants to merge 10 commits into
Open
Conversation
Add a TTS Segment Lab tool for auditioning narration sections before final asset generation. The tool supports dry runs, provider-routed sample generation through tts_selector, reference audio comparison, and selection manifests for downstream reuse.
Support repeated TTS audition review cycles until all segments are approved. Defer final selection output while follow-up generation is still pending, and auto-load local .env files for provider credentials without exposing secret values.
Author
Surface failed candidate errors directly in comparison pages and add a merge_retry operation so successful retry runs can refresh the original results and compare page instead of leaving users on a stale audition page.
Author
|
Update from the v4 production retrospective:
Validation:
|
Keep TTS segment lab spoken text isolated from delivery guidance and block prompt-like retry notes before generation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
tts_segment_lab, a segment-level narration audition tool that runs before final TTS asset generationtts_selector, reference audio comparison, andselection.jsonoutputWhy
OpenMontage already has
tts_selectorand sample-preview guidance, but there was no structured way to compare multiple voice/parameter/provider candidates for sensitive narration lines or keep the approved choice available for downstream asset generation. This tool makes that process explicit and repeatable.Testing
/Users/ray/Repositories/persional/video-ai-lab/tools/OpenMontage/.venv/bin/python -m pytest tests/tools/test_tts_segment_lab.py tests/contracts/test_phase3_contracts.py -q