sound Action
An action to play a sound.
{
"sound": {
"src": "Glass"
}
}
Properties
- src
- STRING
The source of the sound, can be a local or absolute file, or a system sound name.
System sounds can be found in /System/Library/Sounds/, and can be specified without the extension e.g. Ping.
Examples
Play a sound
{
"type": "button",
"text": "Play a sound",
"events": [
{
"triggers": "actioned",
"action": {
"type": "json",
"src": {
"sound": {
"src": "Glass"
}
}
}
}
]
}