Skip to main content

Action & Script Options

Configure action timeouts and the default scripts that run before and after playback or audio generation.

Timeout

The duration (in seconds) to wait before cancelling the chime_tts.say or chime_tts.say_url action calls.

Default Value:60
Required:Yes
tip

Increase the timeout duration if you intend to generate audio longer than 60 seconds.


TTS Audio Generation Timeout

The duration (in seconds) to wait before canceling a TTS audio generation attempt.

Default Value:30
Required:No

Default Action Scripts

Beta

Default pre_script and post_script settings are currently in beta and may change between releases.

Use a pre-playback script to prepare a player or environment before playback, and a post-playback script for cleanup. For chime_tts.say_url, the scripts instead run before and after audio generation.

For each script, choose whether its chime_tts.say default is also used by chime_tts.say_url. When it is not shared, configure a separate default for chime_tts.say_url.

Values take precedence in this order: an action's value, then a Notification Profile value, then the applicable configured default. Omitting a value allows the next value in that order to apply.

pre_script

Runs before chime_tts.say playback, or before chime_tts.say_url audio generation, unless a higher-precedence value is supplied.

Default Value:None
Required:No

post_script

Runs after chime_tts.say playback, or after chime_tts.say_url audio generation, unless a higher-precedence value is supplied.

Default Value:None
Required:No

Simple script entity:

pre_script: script.front_door_prepare
post_script: script.front_door_restore

Script with data:

pre_script:
script: script.front_door_prepare
data:
volume: 0.5