Skip to content

Add text-to-speech Lua API to briefing/debrief/tech room UI sections - #7629

Open
MjnMixael wants to merge 1 commit into
scp-fs2open:masterfrom
MjnMixael:lua-tts-api
Open

Add text-to-speech Lua API to briefing/debrief/tech room UI sections#7629
MjnMixael wants to merge 1 commit into
scp-fs2open:masterfrom
MjnMixael:lua-tts-api

Conversation

@MjnMixael

Copy link
Copy Markdown
Contributor

Bind the existing fsspeech_* wrappers into the ui.Briefing, ui.CommandBriefing, ui.Debriefing, and ui.TechRoom scripting sections so SCPUI, which overrides the native screens, can drive TTS.

Bind the existing fsspeech_* wrappers into the ui.Briefing, ui.CommandBriefing,
ui.Debriefing, and ui.TechRoom scripting sections so Lua UIs (e.g. SCPUI, which
overrides the native screens) can drive synthesized speech again.

Each section gets playTextToSpeech, stopTextToSpeech, pauseTextToSpeech,
isTextToSpeechPlaying, and isTextToSpeechEnabled. Briefing/command-brief/debrief
use FSSPEECH_FROM_BRIEFING; the tech room uses FSSPEECH_FROM_TECHROOM. fsspeech_play
already self-gates on the Speech.* options, so these are no-ops when speech is off.
@wookieejedi wookieejedi added enhancement A new feature or upgrade of an existing feature to add additional functionality. scripting A feature or issue related to LUA scripting labels Aug 6, 2026

@wookieejedi wookieejedi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good and nice to have this exposed to scripting

@wookieejedi

Copy link
Copy Markdown
Member

Will merge later today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement A new feature or upgrade of an existing feature to add additional functionality. scripting A feature or issue related to LUA scripting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants