VoiceMessages APIs
-
VOICE_ALERT_CONTENT to String Helper Function
Description: Retrieves the text content for the given alert content objectUsage:
POST api/Messages/Voice/Helpers/VoiceContentObjectToText
Parameter Type Source Description ContentObject VOICE_ALERT_CONTENT FromBody The VOICE_ALERT_CONTENT object that contains the current content Returns:
Returns a string containing the textual content of the message including auto-fields if used.
Examples:
<!-- Intent: takes the given VOICE_ALERT_CONTENT object and returns the text content for the specified language. POST to the following url http://api.v4.swiftreach.com/api/Messages/Voice/Helpers/VoiceContentObjectToText --> <VOICE_ALERT_CONTENT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <VoiceItemType>alert_human</VoiceItemType> <AudioSource> <AUDIO_SOURCE xsi:type="AUDIO_SOURCE_TTS_TEXT"> <AudioType>audio_source_tts_text</AudioType> <TTSText>This is the message.</TTSText> </AUDIO_SOURCE> </AudioSource> </VOICE_ALERT_CONTENT> <!-- example return value --> <TextContent>This is the message.</TextContent>