GenerateTextToSpeech.wr

04-24-2017

This method starts a job that generates an audio file from static text. The returned requestid parameter can be used to monitor the progress of the job with CheckConversionStatus.

Parameters

  • String : idofcall - Arbitrary tracking ID.
  • Boolean : library - Set to true to save the audio in the Audio Library. Otherwise a temporary audio file will be created.
  • String : text - The full text of what the voice will say.
  • String : voice - Julie, Paul, Kate, Bridget, or Violeta

Useage

Example Request

POST /generateTextToSpeech.wr HTTP/1.1
Host: api.voicebroadcasting.com
Content-Type: application/x-www-form-urlencoded

sidtoken=000000000000000000000000000&voice=julie&text=Hello!%20My%20name%20is%20Julie!&library=false&idofcall=abc123

Example Response

{"apirid":"","idofcall":"abc123","response":"confirmed","requestid":"WEB8      WEB2     1728","url_peaks":"/reports/_ttsTemp_55209249.txt","filepath":"/reports/_ttsTemp_55209249.mp3"}