Skip to content

Revert "sapi5: skip over invalid voices rather than causing the entire driver to fail" - #20464

Merged
michaelDCurran merged 1 commit into
betafrom
revert-20430-i20128
Jul 8, 2026
Merged

Revert "sapi5: skip over invalid voices rather than causing the entire driver to fail"#20464
michaelDCurran merged 1 commit into
betafrom
revert-20430-i20128

Conversation

@michaelDCurran

@michaelDCurran michaelDCurran commented Jul 8, 2026

Copy link
Copy Markdown
Member

Reverts PR

Reverts #20430

Issues fixed

N/A

Issues reopened

Reopens #20128

Reason for revert

Can this PR be reimplemented? If so, what is required for the next attempt

Copilot AI review requested due to automatic review settings July 8, 2026 12:33
@michaelDCurran
michaelDCurran requested a review from a team as a code owner July 8, 2026 12:33
@michaelDCurran
michaelDCurran requested a review from seanbudd July 8, 2026 12:33
@michaelDCurran
michaelDCurran merged commit 5775109 into beta Jul 8, 2026
6 checks passed
@michaelDCurran
michaelDCurran deleted the revert-20430-i20128 branch July 8, 2026 12:34
@github-actions github-actions Bot added this to the 2026.3 milestone Jul 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 reverts the earlier SAPI5 change that enumerated voice tokens via the registry to tolerate malformed/invalid voices, restoring the previous behavior that relies on SAPI’s built-in voice enumeration.

Changes:

  • Removes the changelog entry describing the “skip invalid SAPI5 voices” behavior.
  • Deletes the registry-based voice-token enumeration/token creation logic.
  • Restores tts.GetVoices() usage and updates voice selection to match by enumerated token Id.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
user_docs/en/changes.md Removes the release note for the reverted SAPI5 robustness change.
source/synthDrivers/sapi5.py Reverts SAPI5 voice-token handling back to GetVoices() and removes registry/token creation helpers.

Comment on lines 633 to 635
except COMError:
log.warning("Could not get the voice info. Skipping...")
continue
voices[ID] = VoiceInfo(ID, name, language)
@seanbudd seanbudd modified the milestones: 2026.3, 2026.2 Jul 10, 2026
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.

3 participants