Skip to reading
PCA Script Programming

change_voice_language()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Change Voice Language | Action ID: ChangeVoiceLanguage

Set the runtime voice language.

Source table from change_voice_language(), page 218
Option key / fieldMeaning and accepted inputDefault
Language languageLanguage code used by the project, such as en.Blank

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
change_voice_language({"language": ""})

In use. Choose the voice-language code that has the corresponding audio resources. It is separate from subtitle language, allowing one voice language with another subtitle language.

change_subtitle_language()#

Change Subtitle Language | Action ID: ChangeSubtitleLanguage

Set the runtime subtitle language.

Source table from change_voice_language(), page 218
Option key / fieldMeaning and accepted inputDefault
Language languageLanguage code used by the project, such as en.Blank

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
change_subtitle_language({"language": ""})

In use. Change subtitles while leaving voice in the original language. Test custom GUI text and dynamically created lines too; fixed strings outside the translation system may not change automatically.

Page 218 of 357Permalink
Go to page