VoiceMessages APIs
-
Upload Audio File
Description: Uploads the audio fragment content. The audio file should be sent in the HTTP POST body using a content-type of application x-www-form-urlencoded.Usage:
POST api/Messages/Voice/UploadAudio/{VoiceCode}/{FragmentCode}
Parameter Type Source Description VoiceCode Int32 FromUri The code that uniquely identifies the voice profile that an audio fragment is associated with. FragmentCode Int32 FromUri The code that uniquely identifies the audio fragment to upload. Returns:
Returns 0 on success
Examples:
<!-- Intent: Upload an audio file recording for VoiceCode 100000 with and audio file fragment code of 200123 POST to the following url http://api.v4.swiftreach.com/api/Messages/Voice/Upload/100000/200123 --> <!-- Posted body content is a binary file upload --> <!-- Example Return Value --> <int>0</int>