Get Voices

For API users there is new endpoint where clients can get all voice names for a given language.

Resource

https://api.infobip.com/tts/3/voices/{language}

Property name Type Description
language string Language abbreviation. (e.g. "en"). In the Languages section, you can find the list of supported languages. 

Response for /tts/3/voices/en

{
    "voices": [
        {
            "name": "Benjamin",
            "gender": "male"
        },
        {
            "name": "Ivy",
            "gender": "female"
        },
        {
            "name": "Joanna",
            "gender": "female"
        },
        {
            "name": "Joey",
            "gender": "male"
        },
        {
            "name": "Justin",
            "gender": "male"
        },
        {
            "name": "Kendra",
            "gender": "female"
        },
        {
            "name": "Kimberly",
            "gender": "female"
        },
        {
            "name": "Matthew",
            "gender": "male"
        },
        {
            "name": "Salli",
            "gender": "female"
        },
        {
            "name": "Zira",
            "gender": "female"
        }
    ]
}	
  

Bad request example:

GET {base_url}/tts/3/voices/ba	
  

Response:

{
    "requestError": {
        "serviceException": {
            "messageId": "1562683169314536019",
            "text": "No voices are found for language: ba"
        }
    }
}