//-- Intent: Generate an audio file recording using text-to-speech --//
//-- for VoiceCode 100000 with an audio file fragment code of 200123 --//
//-- using a language of English --//


var jsonString = "This is my message in English.";

$.ajax({
  type: "POST",
  contentType: "application/json; charset=utf-8",
  headers: {"SwiftAPI-Key": "12345"},
  url: "http://api.v4.swiftreach.com/api/Messages/Voice/GenerateAudio/100000/200123/English",
  data: jsonString,
  dataType: "json"
  success: function(result) {
        // Do something with the result
    }

});

//-- Example Return Value --//

0