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.
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