Draft
Route VTT subtitle output to batch folders and temp fallback for UI remounts#1218
Conversation
Closed
2 tasks
Copilot
AI
changed the title
[WIP] Fix bug with .vtt subtitles saving location
Route VTT subtitle output to batch folders and temp fallback for UI remounts
May 23, 2026
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.
.vttsubtitles were being written to a globalgradio_outputs/subtitlespath, separating them from their generated audio batch artifacts and creating avoidable workspace clutter during UI subtitle refreshes. This update aligns subtitle output with per-batch audio output and moves UI-only fallback files to OS temp storage.Subtitle output routing
lrc_to_vtt_file(...)now acceptsoutput_dir.tempfile.gettempdir()/acestep_subtitles(instead of a hardcoded project folder).Auto-LRC path alignment
_run_auto_lrc(...)now acceptsoutput_dirand forwards it tolrc_to_vtt_file(...).generate_with_progress(...)passes the activetemp_dir(batch_[timestamp]) into_run_auto_lrc(...), so auto-generated subtitles are colocated with batch audio.Manual LRC path alignment
generate_lrc_handler(...)now derives the sample’s batch directory fromaudio_pathsand passes that directory tolrc_to_vtt_file(...).Focused coverage updates
output_dirand OS-temp fallback behavior.