Sound notification?


#1

Hi, it it possible to create command (call in JS) to play a sound ?
Like a DING after the test is completed?

runScript | audio.play(ding.mp3);

^^ returns error:

[error] Error: ReferenceError: audio is not defined


#2

This works:

var audio = new Audio('http://www.storiesinflight.com/html5/audio/shimmer.wav');audio.play();

Source: Play sound


#3

Doesnt work for me …
are you using runScript?

runScript | var audio = new Audio('C:/ding.mp3');audio.play();

Command runs positive(green) but there is no sound…


#4

You must use a URL, not a file.