Skip to main content
GET
/
voices
/
accents
List available accents
curl --request GET \
  --url https://api.dialnexa.com/v1/voices/accents \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "acc_indian_english",
      "name": "Indian English",
      "language_code": "en-IN"
    }
  ]
}
Returns every accent option available across voices on the platform. Accents refine pronunciation style within a language family, for example, within the English language family you can pick between Indian (en-IN), American (en-US), and British (en-GB) accents. Each entry includes the accent’s id, display name, and BCP-47 code so you can match it to the voice catalogue returned by List Voices.

When to use this

  • Voice picker UIs: render an accent filter alongside language and gender so prompt authors can find voices that match the listener’s region.
  • Localization tooling: pre-select the right accent when an agent is deployed in a specific country or region.
  • Brand consistency checks: confirm an agent is using the accent your brand guidelines call for before publishing changes through Update Agent.
Not every voice supports every accent. After filtering by accent, intersect with the voices returned by List Voices to find usable combinations.

Errors

  • 401 Unauthorized is returned when the API key is missing or revoked.

Request

curl "https://api.dialnexa.com/v1/voices/accents" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "data": [
    { "id": "accent_en_in", "name": "English Indian",   "code": "en-IN" },
    { "id": "accent_en_us", "name": "English American", "code": "en-US" },
    { "id": "accent_en_gb", "name": "English British",  "code": "en-GB" }
  ]
}

Authorizations

Authorization
string
header
required

Pass your API key as a Bearer token in the Authorization header.

Response

200 - application/json

Success.

data
object[]