Use jQuery.ajax() for HTTP requests

Authored by Sebastian_Berlin-WMSE on Fri, Apr 21, 12:49 PM.

Description

Use jQuery.ajax() for HTTP requests

Modified requestTts() to use jQuery.ajax()
(http://api.jquery.com/jQuery.ajax/). Added some logic for handling
errors. Removed the requested property for utterances; the audio
element is used instead, to check if audio has been loaded.

Change-Id: Ifc76c8326cd276212562697b33672e3a12a3f46d

Details