Quickstart
Make my first Speechify TTS call
Add Speechify text-to-speech to my project. Get me from an API key to a playable audio file: install the official SDK for my language, read `SPEECHIFY_API_KEY` from the environment, call the speech endpoint, and write the result to a file I can play.
Follow [https://docs.speechify.ai/build/guides/get-started/quickstart.md](https://docs.speechify.ai/build/guides/get-started/quickstart.md).Get your API key
- Sign up at platform.speechify.ai
- Go to API Keys
- Copy your default API key (or create a new one)
Set it as an environment variable so the SDKs pick it up automatically:
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 are generated from our Fern SDKs and the API spec, so they switch languages and stay in sync with the live endpoint:
A successful call returns the audio payload:
audio_data field is a base64-encoded string in the Python and TypeScript SDKs, same as in the raw HTTP response. Decode it before saving.Choose a voice
List the built-in voices to find one that fits, then pass its id as the voice_id:
Popular built-in voices: george, henry, carly, sabrina. You can also clone a voice from a short audio sample, with verified consent from the speaker.
simba-3.2 model — set model: "simba-3.2" and pass any English voice_id from GET /v1/voices (for example geffen_32). Your workspace’s cloned voices work there too.Set pauses and pacing
Use SSML to control the timing of the read. Pass it as the input parameter and the API detects it automatically:
simba-3.2 and simba-3.0, SSML applies <break>, <prosody rate> and <sub alias>. See SSML for the full reference and which tags each model applies.