Knowledge base > Actions > Play audio
This task is essential when you want to play a sound in response to a specific action. For instance, you could play a recording of a barking dog when someone approaches your door, or a recording of your stern voice when your cat jumps on the dining table.
Click the + button next to a Play audio task under the Actions menu.
Value
Required?
Description
Default
Restart on failure
Yes
Restart mode upon catching an error:
Stop on failure - not restarted until triggered manually.
Immediately - tries to restart automatically immediately after catching an error.
10 sec - tries to restart automatically with a 10-seconds delay after catching an error.
30 sec - tries to restart automatically with a 30-seconds delay after catching an error.
1 min - tries to restart automatically with a 1-minute delay after catching an error.
10 sec
File storage provider
Yes
Local file system. For now, it's the only file storage provider we support
Local file system
File to play
Yes
A file to play. Supported formats: AIFC, AIFF, AU, SND and WAV
Playing frequency limitation
Yes
This setting determines how often the sound will be played. It's useful in situations where multiple events could trigger the same sound at the same time.
5 seconds
Click the icon next to the sound file to trigger it manually. You should hear the sound from the configured output device.