Overview

POST text and a voice to the TTS endpoint to receive a WAV audio response. Include your API key via the Authorization header.

Endpoint

POST https://api.outspeed.com/v1/tts/

Request Body

{
  "voice": "clark",
  "text": "Hello, world!",
  "stream": false
}
  • voice: the voice identifier.
    • Available voices: “linda”, “aria”, “kate”, “jasmine”, “emily”, “isabella”, “clark”
  • text: the text to synthesize
  • stream: set to true to stream audio chunks; false returns the full WAV

Response

  • Content-Type: audio/wav
  • Body: Raw PCM audio bytes (little-endian int16), 24kHz, mono. No WAV header is included. Wrap with a WAV header or convert with a tool like ffmpeg.
Authenticate with Authorization: Bearer <YOUR_OUTSPEED_API_KEY>.

Examples (non‑streaming)

curl \
  -X POST \
  'https://api.outspeed.com/v1/tts/' \
  -H 'Authorization: Bearer YOUR_OUTSPEED_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"voice":"clark","text":"Hello, world!","stream":false}' \
  --output tts.pcm

Examples (streaming)

curl \
  -X POST \
  'https://api.outspeed.com/v1/tts/' \
  -H 'Authorization: Bearer YOUR_OUTSPEED_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"voice":"clark","text":"Hello, world!","stream":true}' \
  --no-buffer \
  --output tts.pcm