# List voices API

URL: https://neattrim.com/docs/tools/list_voices

Lists voices for text to speech and dubbing by language, gender and tier.

Lists voices for text to speech and dubbing by language, gender and tier.

Endpoint: `GET /v1/voices`

MCP name: `list_voices` (Available in MCP sets: generate, full, local_cloud)

## What it draws

- Does not draw from the allowance.

## Input

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `language` | string | no | BCP 47 language code, for example en, es or pt-BR. |
| `tier` | string | no | Voice tier. (one of "standard", "premium") |

## Output

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `voices` | array of object | yes |  |

Endpoint: `GET /v1/voices`

Who can call it: Anyone: no key or sign-in.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `language` | query | string | no |  |
| `tier` | query | any | no |  |

## Examples

Set NEATTRIM_API_KEY to your key, then copy an example. A tool that draws from your allowance reads an uploaded file: upload a sample file as in the quickstart and set VIDEO_FILE_ID (or AUDIO_FILE_ID, IMAGE_FILE_ID, SUBTITLES_FILE_ID) to its file_id. Any other id in an example, such as JOB_ID, is read from a variable of the same name.

### curl

```bash
curl -X GET "https://api.neattrim.com/v1/voices"
```

### TypeScript

```ts
// @neattrim/sdk is not on npm yet: it arrives with the first client release. Use the curl example today.
import { api, Neattrim, unwrap } from "@neattrim/sdk";

const client = new Neattrim({ apiKey: process.env.NEATTRIM_API_KEY });
const result = unwrap(
  await api.listVoices({
    client: client.client,
  }),
);
console.log(result);
```

### Python

```python
# neattrim is not on PyPI yet: it arrives with the first client release. Use the curl example today.
import os

from neattrim import Neattrim
from neattrim_generated.api.discovery import list_voices

with Neattrim(api_key=os.environ["NEATTRIM_API_KEY"], base_url="https://api.neattrim.com") as client:
    result = list_voices.sync(client=client.client)
    print(result)
```

## Response 200

Voices

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `voices` | array of object | yes |  |

## Errors

- `429`: RATE_LIMITED

## Limits

- Largest upload: Free: 200 MB, Plus: 2 GB, Pro: 4 GB
- Jobs running at once: Free: 2, Plus: 3, Pro: 6
- Requests a minute: Free: 60, Plus: 60, Pro: 60
