Text-to-Speech API
Text-to-Speech API
The text-to-speech API turns text into natural-sounding audio from a single request. This page takes you from an API key to saved audio in a few minutes, then points to the streaming, voice, and SSML guides once you have the basics working.
Get your API key
- Sign up at platform.speechify.ai
- Go to API Keys
- Copy your default API key (or create a new one)
API keys are sensitive. Never expose them in client-side code or public repositories. See the Authentication guide for security best practices.
Install the SDK
Python
TypeScript
Generate speech
Send text to POST /v1/audio/speech. These examples come straight from the SDKs and the live spec:
A successful call returns the audio payload:
audio_data field, so decode it before saving.Request essentials
The speech endpoint takes a small, predictable set of fields.
model: "simba-3.2" and pass one of its curated voices (beatrice_32, dominic_32, edmund_32, geffen_32, harper_32, hugh_32, imogen_32, wyatt_32) as the voice_id. See Models.Choose a voice
List the built-in voices and pass an id as the voice_id:
Popular built-in voices: george, henry, carly, sabrina. You can also clone a voice from a short sample.