Retrieving a name pronunciation file
Added by IBM contributorIBM | Edited by Claudia R Elbourn on June 15, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

To retrieve the name pronunciation file available from a person's profile, use the audio file link returned in the entry document.
You can retrieve name pronunciation file for any person in your organization. You will still have to authenticate when you make the request if the server is set up to force all traffic to use SSL

To retrieve a name pronunciation file from a profile, complete the following steps:
1. Get the service document for the person's profile. See Retrieving the Profiles service document.
2. From the service document, get the URI for the profiles feed which is specified in the href attribute of the collection element and use it to get the profiles feed for the user.
3. In the returned feed, find the value of the href attribute for the link element where the rel attribute has the value "" .../>. Alternatively, use the URI specified in the "Request Details" table below.




rel="" type="audio" /> 

4. Use this link to send a GET request to retrieve a name pronunciation file from a profile.

You will need a REST client that supports a binary stream of the media file you are trying to retrieve. Also, there is no ATOM xml payload needed for this operation.

The output of this operation will be a binary audio file

Method URI Description
GET /profiles/ Value of the href attribute of the <link rel="" .../> element in the user's profiles feed.
Name Type Optional Description
string No An ID generated by Profiles to identify a certain profile.
date Yes The date it was last modified in numerical value.
Name Type Optional Description
string No Indicates format of the response to a GET request. Use "audio/wav" or "audio/x-wav"
number No Indicates the length of the response to a GET request.
Code Description
OK. Indicates that the request was received successfully.