Skip to content

v25.12.33#1502

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

v25.12.33#1502
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 21:01
@ROBERT-MCDOWELL ROBERT-MCDOWELL merged commit a9056ae 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 refactors text segmentation and processing logic for TTS (Text-to-Speech) engines. The changes consolidate text cleaning operations and improve sentence segmentation by merging short segments with their predecessors.

  • Refactored sentence segmentation in core.py to merge consecutive segments when the following segment contains fewer than 3 alphanumeric characters
  • Centralized text processing (SML pattern removal and whitespace normalization) from individual TTS engine files to a common utility function
  • Improved VTT subtitle generation by applying consistent text processing in a single location

Reviewed changes

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

Show a summary per file
File Description
lib/core.py Refactored loop to merge short segments (< 3 alphanumeric chars) with previous segments using lookahead logic
lib/classes/tts_engines/yourtts.py Simplified sentence_obj text assignment to use raw sentence instead of processed text
lib/classes/tts_engines/xtts.py Simplified sentence_obj text assignment to use raw sentence instead of processed text
lib/classes/tts_engines/vits.py Simplified sentence_obj text assignment to use raw sentence instead of processed text
lib/classes/tts_engines/tacotron.py Simplified sentence_obj text assignment to use raw sentence instead of processed text
lib/classes/tts_engines/fairseq.py Simplified sentence_obj text assignment to use raw sentence instead of processed text
lib/classes/tts_engines/bark.py Simplified sentence_obj text assignment to use raw sentence instead of processed text
lib/classes/tts_engines/common/utils.py Centralized text processing logic (SML removal and whitespace normalization) in VTT writing function

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

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