Retrieve a list of all available voices for your account. This includes standard voices and any custom cloned voices.

Endpoint

GET https://sonna.web.id/api/v1/audio/voices

Request

This endpoint does not require any parameters, but must be authenticated.
bash
curl https://sonna.web.id/api/v1/audio/voices \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

Returns an array of voice objects.
json
[
  {
    "id": "amanda",
    "name": "Amanda",
    "language": "Indonesian",
    "gender": "Female",
    "description": "Professional and soft voice."
  },
  {
    "id": "pale-perkasa",
    "name": "Pale Perkasa",
    "language": "Indonesian",
    "gender": "Male",
    "description": "Strong and authoritative voice."
  }
]
Tip: Use these IDs in the voice parameter of the Text-to-Speech endpoint.