Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Skip TTS for voices explicitly set to disabled (fixes #4970)#5367

Merged
Cohee1207 merged 9 commits into
SillyTavern:stagingfrom
tgies:fix/tts-disabled-voice-error
Apr 5, 2026
Merged

Skip TTS for voices explicitly set to disabled (fixes #4970)#5367
Cohee1207 merged 9 commits into
SillyTavern:stagingfrom
tgies:fix/tts-disabled-voice-error

Conversation

@tgies
Copy link
Copy Markdown
Contributor

@tgies tgies commented Mar 28, 2026

Silently return instead of throwing an error or showing a toast when a voice is set to disabled.

Checklist:

@sillytavern-repo-bot sillytavern-repo-bot Bot added πŸ¦‹ Bug Fix [PR] Code includes bug fixes πŸŽ™οΈ TTS / Voice [ISSUE][PR] Related to TTS or Voice features 🟩 ⬀○○○○ [PR][🎯Auto-applied] [XS] <20 lines changed labels Mar 28, 2026
Comment thread public/scripts/extensions/tts/index.js
@Cohee1207
Copy link
Copy Markdown
Member

@tgies alternatively, the toast notification can be displayed once per the character. That should be enough to see that something is wrong with the config, but not nag the user. accountStorage key-value can be used for that (check for its usage thru the project).

@tgies tgies force-pushed the fix/tts-disabled-voice-error branch from a8e4af1 to c5e9fc0 Compare March 31, 2026 21:21
@sillytavern-repo-bot sillytavern-repo-bot Bot added the 🟩 ⬀⬀○○○ [PR][🎯Auto-applied] [Small] 20-100 lines changed label Mar 31, 2026
Copy link
Copy Markdown
Member

@Cohee1207 Cohee1207 left a comment

Choose a reason for hiding this comment

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

It's better to always show the message for manual triggers, however for automated triggers we'll only show it once.

Copy link
Copy Markdown
Contributor

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 TTS extension to treat voices explicitly mapped to the disabled marker as β€œskip TTS” rather than failing the job, aiming to reduce user-facing errors when a character’s voice is intentionally disabled.

Changes:

  • Adds a manual flag to queued TTS jobs so the system can distinguish user-triggered narration from automatic narration.
  • Skips TTS generation when the resolved voice map entry is disabled, including an account-level β€œwarn once” mechanism.
  • Adjusts narration entry points to pass manual: true for some manual actions (single message + /speak).

πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread public/scripts/extensions/tts/index.js
Comment thread public/scripts/extensions/tts/index.js
Comment thread public/scripts/extensions/tts/index.js Outdated
Comment thread public/scripts/extensions/tts/index.js
Comment thread public/scripts/extensions/tts/index.js
@Cohee1207 Cohee1207 merged commit 128888f into SillyTavern:staging Apr 5, 2026
11 checks passed
@Cohee1207 Cohee1207 linked an issue Apr 5, 2026 that may be closed by this pull request
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

πŸŽ™οΈ TTS / Voice [ISSUE][PR] Related to TTS or Voice features 🟩 ⬀○○○○ [PR][🎯Auto-applied] [XS] <20 lines changed 🟩 ⬀⬀○○○ [PR][🎯Auto-applied] [Small] 20-100 lines changed πŸ¦‹ Bug Fix [PR] Code includes bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] TTS throws error when a voice is set as disabled

3 participants