Audio

Speech and sound services are provided by the JSonic library.

Links

API

uow.getAudio(args) → dojo.Deferred

This method initializes the JSonic speech and sound interface for use in your application. You need to call this method only once per application.

The args parameter is the one passed to the JSonic factory documented here. The return value is a dojo.Deferred. You should invoke then on the deferred to register a callback function that will receive a info.mindtrove.JSonic instance for your use.

Examples

Say a greeting

uow.getAudio().then(function(a) {
  a.say({text : "Welcome to the UNC Open Web Server!"});
});

Play a sound

uow.getAudio().then(function(a) {
  a.play({url : "baritone_blues"});  
});