Skip to content

v25.12.33#1501

Merged
ROBERT-MCDOWELL merged 1 commit intoDrewThomasson:v25from
ROBERT-MCDOWELL:v25
Jan 4, 2026
Merged

v25.12.33#1501
ROBERT-MCDOWELL merged 1 commit intoDrewThomasson:v25from
ROBERT-MCDOWELL:v25

Conversation

@ROBERT-MCDOWELL
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings January 4, 2026 20:39
@ROBERT-MCDOWELL ROBERT-MCDOWELL merged commit ad9b191 into DrewThomasson:v25 Jan 4, 2026
2 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the version to v25.12.33 and implements consistent text processing for VTT subtitle generation across all TTS engines. The change ensures that SML (Speech Markup Language) patterns are removed and whitespace is normalized in the subtitle text output.

Key changes:

  • Adds SML pattern removal and whitespace normalization when creating VTT subtitle entries
  • Applies the same text processing logic across all six TTS engine implementations

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
lib/classes/tts_engines/yourtts.py Updates VTT text field to remove SML patterns and normalize whitespace
lib/classes/tts_engines/xtts.py Updates VTT text field to remove SML patterns and normalize whitespace
lib/classes/tts_engines/vits.py Updates VTT text field to remove SML patterns and normalize whitespace
lib/classes/tts_engines/tacotron.py Updates VTT text field to remove SML patterns and normalize whitespace
lib/classes/tts_engines/fairseq.py Updates VTT text field to remove SML patterns and normalize whitespace
lib/classes/tts_engines/bark.py Updates VTT text field to remove SML patterns and normalize whitespace

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/classes/tts_engines/yourtts.py
"start": start_time,
"end": end_time,
"text": sentence,
"text": re.sub(r'\s+', ' ', default_sml_pattern.sub('', sentence)).strip(),
Copy link

Copilot AI Jan 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The text processing logic re.sub(r'\s+', ' ', default_sml_pattern.sub('', sentence)).strip() is duplicated across all six TTS engine files (yourtts.py, xtts.py, vits.py, tacotron.py, fairseq.py, and bark.py). This duplication makes the code harder to maintain - if this logic needs to be updated or fixed, it would need to be changed in six places. Consider extracting this text processing logic into a shared method in the TTSUtils base class, or alternatively, move this processing into the _append_sentence2vtt method since it already performs text normalization on line 313 of utils.py.

Copilot uses AI. Check for mistakes.
Comment thread lib/classes/tts_engines/vits.py
Comment thread lib/classes/tts_engines/tacotron.py
Comment thread lib/classes/tts_engines/fairseq.py
Comment thread lib/classes/tts_engines/bark.py
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.

2 participants