Skip to reading
PCA Script Programming

play_voice()

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

Play Voice | Action ID: PlayVoice

Play voice audio selected by asset or localization key, optionally waiting for it to finish.

Source table from play_voice(), page 90
Option key / fieldMeaning and accepted inputDefault
Voice Audio voiceAssetIdChoose an imported audio asset. May be blank.Blank
Voice Key (optional) voiceKeyOptional localization/voice lookup key.Blank
Text textText.Blank
Wait for Voice waitWhether this action should wait for its own effect to finish.false

Timing. Waits when Wait for Voice is on.

Code example
play_voice({"voiceAssetId": "", "voiceKey": "", "text": "The mechanism is ready."})

In use. Play a radio line while the scene remains visible. If the next instruction must follow the recording, enable Wait for Voice. Text helps the built-in text/voice mouth workflow; it does not automatically turn this into a full dialogue conversation.

pause_voice()#

Pause Voice | Action ID: PauseVoice

Pause the current voice and its mouth timing.

No options in the standard shared schema.

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

Code example
pause_voice({})

In use. Pause a recording while a message is being inspected. A conversation awaiting that recording remains in progress; use Stop Voice if the recording is meant to be cancelled instead.

Page 90 of 357Permalink
Go to page