VoiceMessages APIs
-
Generate an Audio File with TTS
Description: Generates an audio fragment using text-to-speech defaulting to English.Usage:
POST api/Messages/Voice/GenerateAudio/{VoiceCode}/{FragmentCode}/{SpokenLanguage}
Parameter Type Source Description VoiceCode Int32 FromUri The unqiue numerical code identifying the voice message that owns this audio fragment. FragmentCode Int32 FromUri The unique numerical code identifying the audio fragment. SpokenLanguage String FromUri The language dialect to use during speech conversion. TextContent String FromBody The text content to be converted to speech. Returns:
Return 0 on success.
Examples:
<!-- 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 POST to the following url http://api.v4.swiftreach.com/api/Messages/Voice/GenerateAudio/100000/200123/English --> <TextContent>This is my message in English.</TextContent> <!-- Example Return Value --> <int>0</int>