I know this involves a 3rd party piece of software but I believe the error, solution lies within Edge and not the Javascript
I am using the tutorial (http://outof.me/edge-animate-adding-sound-effects/) for integrating sound into my Edge Animate project.
As far as I can tell I have followed the instructions to the letter. The Javascript used is from this website: http://buzz.jaysalvat.com/
When I try to preview the animation in my browser, the animation plays but the sound doesnt. Animate shows the following error:
unsupported path(s): /sounds/voice.ogg, voice.mp3, voice.wav
Voice is the file name and below is the Javascript code I have been using in the action button:
var voice = new buzz.sound( "/sounds/voice.ogg", {
formats: [ "ogg", "mp3", "acc", "wav"]});
voice.bind('loadeddata', function(e) {
// Playing the stage
var stage = Edge.getcompsition(compId).getStage();
stage.play();
// Playing the sound
voice.play();
});
});
//Edge binding end
The audio file is in both mp3 and ogg format which are both supported by Chrome.
It is a transcript of speech lasting approximately 1 minute and is 700kb in size.
I have not found the cause of the error (hence this question) and would appreciate any help.