# Herkese açık ses önizlemesi

> Bu kılavuz henüz çevrilmedi. Aşağıda İngilizce sürüm gösterilmektedir. [İngilizce özgün metni oku](https://docs.helixvoice.net/en/api/preview/)

Generate a short WAV preview without an account.

The anonymous preview is designed for short product trials. It accepts text and an optional allowed public voice, then returns WAV audio.

## Endpoint

```http
POST https://api.helixvoice.net/v1/audio/preview
Content-Type: application/json
```

| Field   | Type   | Required | Description                                               |
| ------- | ------ | -------- | --------------------------------------------------------- |
| `input` | string | Yes      | Non-empty text; default maximum 80 Unicode characters     |
| `voice` | string | No       | An enabled public voice ID; `demo` is the Linxi reference |

The service fixes the model, WAV format, and non-streaming mode. Do not send account tokens or provider credentials to this endpoint.

## Example

```sh
curl --fail-with-body \
  'https://api.helixvoice.net/v1/audio/preview' \
  -H 'Content-Type: application/json' \
  -d '{"input":"Hello, welcome to Helix Voice.","voice":"demo"}' \
  --output preview.wav
```

Check the command’s exit status and response content type before treating the saved file as audio. `--fail-with-body` can save an error body when a request fails.

## Success

A successful response has `Content-Type: audio/wav` and contains binary WAV data. `X-TTS-Preview-Cache: HIT` or `MISS` indicates whether the service reused cached audio.

## Limits and failures

The public quota is shared across visitors. The default service limits include 30 requests in 60 seconds, 100 generation attempts per day, and one concurrent anonymous generation. These are environment settings, not a per-visitor allocation.

| HTTP status | Meaning                                  |
| ----------- | ---------------------------------------- |
| 400         | Invalid text or voice                    |
| 413         | Request too large                        |
| 429         | Rate limit, daily limit, or busy service |
| 502         | Upstream generation failed               |
| 503         | Preview unavailable                      |
| 504         | Generation timed out                     |

For HTTP 429, honor `Retry-After`. See [error handling](/tr/api/errors/) for retry guidance. For longer scripts and owned voices, use the [account API](/tr/api/speech/).
