Skip to reading
GDScript Programming & Godot

ChangeVoiceLanguage()

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

Set the runtime voice language.

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

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await ChangeVoiceLanguage({"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.

ChangeSubtitleLanguage()#

Change Subtitle Language

Set the runtime subtitle language.

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

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await ChangeSubtitleLanguage({"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 221 of 378Permalink
Go to page