https://api.hedra.com/web-app/public and require an X-API-Key header.
Step 1: Pick a voice
List available voices:Step 2: Generate speech
Required fields
| Field | Description |
|---|---|
type | Set to "text_to_speech" |
voice_id | The voice to use (from GET /voices) |
text | The text to convert to speech |
Optional fields
| Field | Description |
|---|---|
stability | 0.0 (most stable) to 1.0 (most variable). Default: 1.0 |
speed | 0.7 (slowest) to 1.2 (fastest). Default: 1.0 |
language | e.g. "English", "Spanish", "French", "Japanese". Default: "auto" |
Step 3: Poll for completion
status is "complete", the response includes an asset_id for the generated audio file.
Clone a voice
You can create a custom voice by uploading an audio sample and cloning it.1. Upload an audio sample
2. Clone the voice
asset_id for the new voice. Use this as the voice_id in text-to-speech requests.