I know two options:
-
Use echo:
echo | hello! | #shownotification
<= This does not play a sound, but shows a desktop notification -
Play sound: You can use executeScript to load and play a website sound file.
executeScript | var audio = new Audio('http://www.storiesinflight.com/html5/audio/shimmer.wav');audio.play();
One line macro that plays the sound:
{
"Name": "sound",
"CreationDate": "2019-8-31",
"Commands": [
{
"Command": "executeScript",
"Target": "var audio = new Audio('http://www.storiesinflight.com/html5/audio/shimmer.wav');audio.play();",
"Value": ""
}
]
}