Skip to reading
GDScript Programming & Godot

PlayVoice()

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

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

Source table from PlayVoice(), page 102
Option key / fieldMeaning and 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
await PlayVoice({"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.

PauseVoice()#

Pause Voice

Pause the current voice and its mouth timing.

No options in the standard catalog schema.

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

Code example
await PauseVoice({})

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 102 of 378Permalink
Go to page