Skip to reading
GDScript Programming & Godot

SetVoiceSpeaker()

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

Set Voice Speaker

Choose the default character whose mouth follows separately played voice audio or message voice.

Source table from SetVoiceSpeaker(), page 101
Option key / fieldMeaning and inputDefault
Character characterIdChoose a Character Designer ID; player is a runtime alias where supported. May be blank.Blank

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

Code example
await SetVoiceSpeaker({"characterId": "player"})

In use. Select Elias before Play Voice. Clear the selection when that default is no longer wanted. Say and Character Say already name their own speaker; configure the character's mouth and portrait mapping in the Character Designer first.

SetLipSyncEnabled()#

Enable Lip Sync

Enable or disable lip sync for a character at runtime.

Source table from SetVoiceSpeaker(), page 101
Option key / fieldMeaning and inputDefault
Character characterIdChoose a Character Designer ID; player is a runtime alias where supported.Blank
Enabled enabledExplicit on/off state for the feature or response.true

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

Code example
await SetLipSyncEnabled({"characterId": "player", "enabled": true})

In use. Disable lip sync for a silent disguise sequence, then enable it afterward. This is a runtime switch, not a replacement for defining visemes, portrait mouth frames or blend shapes. Turning it off restores the resting face.

Page 101 of 378Permalink
Go to page