# Audio · Quanteex

## Audio

Generate speech, transcribe recordings, and ask questions about audio.

### Voice library

GET /v1/audio/voices returns a voices array with id, name, language and description. Use the id as voice in synthesis requests. Listen to samples in the dashboard before choosing a voice.

```
curl --fail --silent --show-error https://api.quanteex.com/v1/audio/voices \
  -H "Authorization: Bearer $QUANTEEX_API_KEY"
```

Listen to voice samples

### Text to Speech

POST /v1/audio/speech accepts JSON with model qwen3-tts, voice, and input (1–1,000 characters). The response contains audio bytes: WAV by default, or raw little-endian PCM16 when response_format is pcm. Both formats are mono at 24 kHz.

```
curl --fail --silent --show-error https://api.quanteex.com/v1/audio/speech \
  -H "Authorization: Bearer $QUANTEEX_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '{"model":"qwen3-tts","voice":"elena","input":"Hello from Quanteex."}' \
  --output speech.wav
```

Open the speech studio

### Speech to Text

POST /v1/audio/transcriptions accepts multipart form fields model=nemotron-asr and file. It transcribes English. Upload mono PCM16 WAV or raw PCM16 (.pcm or .raw), up to 25 MB and 10 minutes. Supported sample rates: 8000, 16000, 22050, 24000, 44100 and 48000 Hz. For raw PCM16, set sample_rate when it differs from 16000 Hz.

```
curl --fail --silent --show-error https://api.quanteex.com/v1/audio/transcriptions \
  -H "Authorization: Bearer $QUANTEEX_API_KEY" \
  --form 'model=nemotron-asr' \
  --form 'file=@speech.wav;type=audio/wav'
```

### Transcription response

The JSON response contains text, duration_seconds, words, and word_timestamps_available. When word timing is unavailable or falls outside the recording, the API still returns the transcript, with words: [] and word_timestamps_available: false.

### Audio Understanding

Send POST /v1/chat/completions with model audio-perception-1. Include a text instruction and one input_audio part in a user message, with raw base64 data and format wav or mp3 (up to 25 MB). Set max_tokens from 1 to 4096; the default is 1024. Read choices[0].message.content. Set response_format.type to json_object or json_schema for structured output.

```
curl --fail --silent --show-error https://api.quanteex.com/v1/chat/completions \
  -H "Authorization: Bearer $QUANTEEX_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary @- <<EOF
{
  "model": "audio-perception-1",
  "max_tokens": 128,
  "messages": [{"role": "user", "content": [
    {"type": "text", "text": "Summarize this recording."},
    {"type": "input_audio", "input_audio": {"format": "wav", "data": "$(base64 < speech.wav | tr -d '\r\n')"}}
  ]}]
}
EOF
```

### Billing and limits

Use a project API key in the Authorization: Bearer header. Synthesis is billed by generated duration, transcription by uploaded duration, and audio understanding by tokens. GET /v1/models shows the current rates. X-Quanteex-Max-Charge-USD sets a USD ceiling; the request is rejected if its required reservation exceeds the ceiling. These endpoints return completed HTTP responses. Streaming, WebSockets and voice cloning are unavailable.

Models

Balance & budgets

Make your first request with Quanteex.

Retry only when the outcome is safe to repeat.

