# Get a voice

`GET https://my.neuronai.uz/api/v1/tts/voices/{id}`

Справочник API › Синтез речи

One voice by `id`. Stock voices are public. A voice clone needs a key with `voices:read` from its own organization; any other caller gets 404 `not_found`.

**Authentication:** `Authorization: Bearer <API key>`, a key with `voices:read` (optional: without a key the answer is public).

## Параметры пути

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | The voice id. |

## Ответ (200, `application/json`)

Success.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object | Yes |  |
| `data.id` | string | Yes |  |
| `data.name` | string | Yes |  |
| `data.language` | string | Yes |  |
| `data.tags` | string[] | Yes |  |
| `data.type` | string | Yes | One of `custom`, `stock`. |
| `data.category` | string \| null | No |  |
| `data.ref_text` | string \| null | No |  |
| `data.created_at` | string \| null | No |  |
| `request_id` | string | Yes |  |

```json
{
  "data": {
    "id": "7c4a8d09-ca37-4f3c-9e2b-1b0f3c2a9d41",
    "name": "Aziza",
    "language": "uz",
    "tags": [
      "calm"
    ],
    "type": "custom",
    "category": "narration",
    "ref_text": "Mening ismim Aziza, men sizga yordam berishga tayyorman.",
    "created_at": "2026-11-17T09:30:00Z"
  },
  "request_id": "7c4a8d09-ca37-4f3c-9e2b-1b0f3c2a9d41"
}
```

### Заголовки

| Header | Type | Description |
| --- | --- | --- |
| `X-Request-Id` | string | Identifies this request. A JSON body carries it as `request_id` too; quote it to support. |

## Ошибки

Every error has the same JSON shape:

```json
{
  "error": {
    "type": "invalid_request_error",
    "code": "invalid_request",
    "message": "The request is malformed or failed validation.",
    "param": null
  },
  "request_id": "7c4a8d09-ca37-4f3c-9e2b-1b0f3c2a9d41"
}
```

| Status | Meaning |
| --- | --- |
| 401 | The key sent is invalid, revoked, disabled or expired. A request without a key is answered as anonymous. |
| 403 | A key was sent, and the client IP is not in its allowlist: `ip_not_allowed`. |
| 404 | No such voice for this key: `not_found`. |
| 502 | The voice service could not list its voices: `upstream_error`. |
| default | Any other error, in the same shape, such as `server_error` (500) or `service_unavailable` (503). |

## Examples

### TypeScript SDK

```typescript
import {NeuronAI} from "@naiuz/sdk";

const client = new NeuronAI();

const voice = await client.voices.retrieve("kamron");

console.log(voice.name);
```

### Python SDK

```python
from naiuz import NeuronAI

client = NeuronAI()

voice = client.voices.retrieve("kamron")

print(voice.name)
```

### PHP SDK

```php
$client = new \Naiuz\NeuronAI();

$voice = $client->voices->retrieve('kamron');

echo $voice->name, PHP_EOL;
```

---

Source: https://docs.neuronai.uz/ru/api/reference/text-to-speech/retrieve-voice
