


 



<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://docwiki.cisco.com/w/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_Voice_Names&amp;feed=atom&amp;action=history</id>
		<title>Cisco Unity Connection Provisioning Interface (CUPI) API -- Voice Names - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_Voice_Names&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_Voice_Names&amp;action=history"/>
		<updated>2013-05-21T11:56:08Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_Voice_Names&amp;diff=36303&amp;oldid=prev</id>
		<title>Gscorbin: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_Voice_Names&amp;diff=36303&amp;oldid=prev"/>
				<updated>2010-12-14T00:05:07Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 00:05, 14 December 2010&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Gscorbin</name></author>	</entry>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_Voice_Names&amp;diff=36302&amp;oldid=prev</id>
		<title>Juliew at 22:28, 13 December 2010</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_Voice_Names&amp;diff=36302&amp;oldid=prev"/>
				<updated>2010-12-13T22:28:54Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Links to Other API pages:''' [[Cisco_Unity_Connection_APIs]]&lt;br /&gt;
{| align=&amp;quot;right&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|'''CUPI Guide Contents'''&lt;br /&gt;
|-&lt;br /&gt;
|[[Cisco Unity Connection Provisioning Interface (CUPI) API|API Overview ]]&amp;lt;br&amp;gt;[[Cisco Unity Connection Provisioning Interface (CUPI) API -- Index of All CUPI Documentation|Index of All CUPI Documentation]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== About Voice Names ==&lt;br /&gt;
&lt;br /&gt;
Many objects available via the CUPI interface have a voice name field. There are two ways to access the voice name for these objects:&lt;br /&gt;
&lt;br /&gt;
* For Connection versions 7.x and 8.0.x the voice names are accessed by using the VoiceFileURI. Modifying the voice name as a voice file requires a three step process as detailed below.&lt;br /&gt;
&lt;br /&gt;
* For Connection versions 8.5 and later the voice name access has been simplified so that it can be accessed by using a VoiceNameURI. This new URI is a standard sub-resource of the primary resource URI (see example below). Modifying the voice name by using the new URI reduces the three step process to a single step. The old VoiceFileURI still works in the later versions of Connection, but use of the new URI is easier.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://&amp;lt;server&amp;gt;/users/&amp;lt;user object id&amp;gt;/voicename)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Listing and Viewing ==&lt;br /&gt;
&lt;br /&gt;
=== Voice Name GET for Connection 8.5 and Later ===&lt;br /&gt;
&lt;br /&gt;
Use the standard VoiceNameURI directly to get the file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GET http://&amp;lt;connection-server&amp;gt;/vmrest/&amp;lt;resource&amp;gt;/&amp;lt;resource id&amp;gt;/voicename&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The response will return the audio/wav data for the voice name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Voice Name GET for Connection 7.x and 8.0.x ===&lt;br /&gt;
&lt;br /&gt;
First get the primary resource to find out the voice file URI, then use the VoiceFileURI to get the file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GET http://&amp;lt;connection-server&amp;gt;/vmrest/voicefiles/&amp;lt;voice file name&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The response will return the audio/wav data for the voice name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Setting Voice Names ==&lt;br /&gt;
&lt;br /&gt;
=== Setting a Voice Name in Connection 8.5 and Later ===&lt;br /&gt;
&lt;br /&gt;
PUT the audio data directly to the standard resource voice name URI:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PUT /vmrest/&amp;lt;object&amp;gt;/&amp;lt;object id&amp;gt;/voicename&lt;br /&gt;
&lt;br /&gt;
content is audio/wav data&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The response is a 204 indicating that the content has been accepted and copied into the temporary file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting a Voice Name in Connection 7.x and 8.0.x ===&lt;br /&gt;
&lt;br /&gt;
To create a voice name for a resource is a three step process.&lt;br /&gt;
&lt;br /&gt;
Step 1: A place-holder for the WAV file must be created with a POST. This is a temporary file place-holder that can be used for up to 30 minutes. If it is not used within 30 minutes (assigned to a resource), the file is assumed to be abandoned and is automatically cleaned.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
POST /vmrest/voicefiles&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The response code is 201 and the content is the name of the newly created temporary file.&lt;br /&gt;
&lt;br /&gt;
Step 2: Use the temporary file name to PUT the new audio data. The HTTP content type is &amp;quot;audio/wav&amp;quot; and the payload content is the audio data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PUT /vmrest/voicefiles/&amp;lt;temporary file name&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The response is a 204 indicating that the content has been accepted and copied into the temporary file.&lt;br /&gt;
&lt;br /&gt;
Step 3: Set the voicename field of the target resource to the temporary file name. See the example for a user below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PUT /vmrest/users/&amp;lt;user object id&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;User&amp;gt;&lt;br /&gt;
&amp;lt;VoiceName&amp;gt;temporary file name&amp;lt;/VoiceName&amp;gt;&lt;br /&gt;
&amp;lt;/User&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Cisco Unity Connection Provisioning Interface (CUPI) API]]&lt;/div&gt;</summary>
		<author><name>Juliew</name></author>	</entry>

	</feed>