Skip to reading
PCA Script Programming

set_voice_speaker()

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 | Action ID: SetVoiceSpeaker

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

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

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

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

set_lip_sync_enabled()#

Enable Lip Sync | Action ID: SetLipSyncEnabled

Enable or disable lip sync for a character at runtime.

Source table from set_voice_speaker(), page 89
Option key / fieldMeaning and accepted 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. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
set_lip_sync_enabled({"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 89 of 357Permalink
Go to page