Skip to content

Handle engine override in TTS options#259

Merged
TiTidom-RC merged 1 commit into
betafrom
dev
May 23, 2026
Merged

Handle engine override in TTS options#259
TiTidom-RC merged 1 commit into
betafrom
dev

Conversation

@TiTidom-RC

Copy link
Copy Markdown
Owner

This pull request updates the logging and engine override handling in the generateTTS and playTTS methods of ttscast.class.php. The main focus is to improve how TTS engine overrides are detected from options and to enhance the logging for better traceability.

Key improvements:

Engine override detection and logging:

  • Both generateTTS and playTTS now parse the engine field from the JSON options string to detect if an engine override is requested, and this override is reflected in the log output. [1] [2]

Logging enhancements:

  • The log messages now include both the original and overridden TTS engine (if applicable), as well as relevant file or UUID and a preview of the text, making debugging and monitoring easier. [1] [2]

Code cleanup:

  • Old commented-out logic and redundant debug logs have been removed for clarity and maintainability. [1] [2]

Parse per-call TTS options to detect an "engine" override and capture it in $engineOverride. Update info logs to display the effective engine (original → override) and include truncated text/file context. Remove previous debug noise and obsolete commented ding-disable logic; preserve existing daemon call behavior while improving logging and per-request engine visibility.
@TiTidom-RC TiTidom-RC merged commit cc78087 into beta May 23, 2026
5 checks passed
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.

1 participant