Skip to content

Preserve existing WAV files during video recognition - #244

Merged
LauraGPT merged 1 commit into
mainfrom
codex/private-recognition-audio
Dec 2, 2026
Merged

LauraGPT merged 1 commit into
mainfrom
codex/private-recognition-audio

Conversation

@LauraGPT

@LauraGPT LauraGPT commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

A video named interview.mp4 previously extracted to interview.wav next to the input (or in the requested output directory). If that WAV already belonged to the user it was overwritten, then removed on successful decode. A decoder error could instead leave the substituted audio behind.

Use a per-call temporary directory, and release the video reader on failures while preserving the live handle for clipping on success. No changes to models, audio encoding, resampling or published releases.

Validation: all three regressions failed on the parent. The fixed source passed the full offline selection (119 passed, one optional live test skipped, repository-index test run separately). Actual generated H.264/AAC to MoviePy/FFmpeg to librosa produced identical 16,000 PCM samples before and after. Clipping the returned state produced the same 0.50-second video duration, sampled frame and SRT. Recognition was a fixture, not acoustic inference. No submitted/private media, model weights or hosted provider calls.

Signed-off-by: zhifu gao <zhifu.gzf@alibaba-inc.com>
@LauraGPT
LauraGPT merged commit d5a85c9 into main Dec 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant