Repository navigation
Protect stage-2 audio exports from missing selections and file collisions - #245
Merged
Merged
Conversation
…ions Do not export the original recording or an empty result when stage 2 selects no samples. Reserve the WAV and SRT destinations together, including default paths, and keep the UI preview fallback unchanged. Signed-off-by: zhifu gao <zhifu.gzf@alibaba-inc.com>
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.
On current main, selecting text absent from the saved transcript writes the entire input WAV and an empty SRT with exit 0. A source named
result.wavin the state directory can also be overwritten by its own clip.Verification: The old CLI failed six new regressions; the positive control passed. The no-match result contained all 32,000 original PCM samples. On the candidate the full Shanghai offline suite passed (126 passed, one optional live test skipped), including exact selected PCM, SRT text and timing. Synthetic WAV and saved state only; no model or external service. Prepared with Codex assistance.