Overview
POST text and a voice to the TTS endpoint to receive a WAV audio response. Include your API key via theAuthorization
header.
Endpoint
POSThttps://api.outspeed.com/v1/tts/
Request Body
- 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/pcm
- Headers:
X-Sample-Rate
: Sample rate (default: 24000)X-Channels
: Number of audio channels (default: 1)X-Bit-Depth
: Bit depth (default: 16)
- 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>
.