# Download a synthesis job's audio

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

API reference › Text to speech

Downloads the WAV of a job that has succeeded, with the same headers as `POST /v1/tts/synthesize`.

The audio is kept for 24 hours after the job finishes.

**Authentication:** `Authorization: Bearer <API key>`, a key with `tts:read`.

## Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | The job id returned when the job was created. |

## Response (200, `audio/wav`)

WAV audio of the synthesized speech.

### Headers

| Header | Type | Description |
| --- | --- | --- |
| `X-Cost` | number | The price billed, in credits. |
| `X-Balance` | number | Your balance after the charge, in credits. |
| `X-Character-Count` | integer | The characters billed. An emotion tag counts as one. |
| `X-Voice-Custom` | string | `1` when the voice is one of your clones, `0` for a stock voice. |
| `X-Latency-Ms` | number | Time the voice took, in milliseconds. May have a fraction. |
| `X-Request-Id` | string | Identifies this request. A JSON body carries it as `request_id` too; quote it to support. |
| `X-RateLimit-Limit` | integer | The requests a minute the rate limit on this endpoint allows. Sent once the limit has counted the request, so not when the key itself is refused. |
| `X-RateLimit-Remaining` | integer | How many of them are left this minute. |

## Errors

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 API key is missing or not recognized (`invalid_api_key`), revoked (`api_key_revoked`), disabled (`api_key_disabled`) or expired (`api_key_expired`). |
| 403 | The key lacks the permission this endpoint needs (`insufficient_permissions`), or the client IP is not in its allowlist (`ip_not_allowed`). |
| 404 | No such job in your organization: `not_found`. |
| 409 | The job is still `queued` or `running` (`job_not_finished`), or it failed (`job_failed`). |
| 410 | The audio is past its 24-hour retention: `audio_expired`. |
| 429 | A rate or concurrency limit was reached (`rate_limit_exceeded`, `concurrency_limit_exceeded`). Retry after `Retry-After` seconds. |
| 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 speech = await client.tts.jobs.audio("<job-id>");

await speech.save("speech.wav");
```

### Python SDK

```python
from naiuz import NeuronAI

client = NeuronAI()

speech = client.tts.jobs.audio("<job-id>")

speech.save("speech.wav")
```

### PHP SDK

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

$speech = $client->tts->jobs->audio('<job-id>');

$speech->save('speech.wav');
```

---

Source: https://docs.neuronai.uz/api/reference/text-to-speech/download-tts-job-audio
