McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 41

↗ View in doc context
page
41
source
unity-connection/rest-api/cuti/cuti.md
chunk_id
unity-connection::rest-api::cuti::cuti::36

PUT https://<connection-server>/vmrest/distributionlists/<distributionlistobjectid>/voicename Request Body: <CallControl> <op>RECORD</op> <resourceType>STREAM</resourceType> <resourceId>67ed783c-203f-454b-a0e6-57b77820c831.wav</resourceId> <lastResult>0</lastResult> <speed>100</speed> <volume>100</volume> <startPosition>0</startPosition> </CallControl> Response Code: 204 JSON Example POST https://<connection-server>/vmrest/distributionlists/<distributionlistobjectid>/voicename Accept : application/json Content-Type : application/json Connection : keep-alive Request Body: { "op":"RECORD", "resourceType":"STREAM", "resourceId":"67ed783c-203f-454b-a0e6-57b77820c831.wav", "lastResult":"0", "speed":"100", "volume":"100", "startPosition":"0" } Response Code: 204 Use the following URL to listen to the voice name associated with the interview handler: Paste the URL in the browser and listen to the voice name. https://<connection-server>/vmrest/distributionlists/<distributionlistobjectid>/voicename Adding Voice Name by Passing Input Stream in the Request The voice name can also be updated using the input stream. An input stream can be created from the .wav file and passed as the request body. The URL for this should be: https://<connection-server>/vmrest/distributionlists/<distributionlistobjectid>/voicename The request body should be like this: put.setRequestBody(new FileInputStream(file3)); where the PUT request is created to upload the file3 .wav file. Make sure the content type for the request should be passed as "audio/wav". Use the following URL from the browser to listen to the voice name associated with the distribution list: https://<connection-server>/vmrest/distributionlists/<distributionlistobjectid>/voicename Cisco Unity Connection Telephony Interface (CUTI) API 37 Cisco Unity Connection Provisioning Interface (CUTI) API -- Voice Name Upload for Distribution Lists Adding Voice Name by Passing Input Stream in the Request