Synthesize Speech Advanced
POST/voice-synthesis/synthesize/advanced
Advanced speech synthesis with full control and metadata response. Returns synthesis result with audio data and metadata. Automatically saves to history.
Authentication
Authorization: Bearer vm_sk_… with the media.write permission (or all.write). See Authentication.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
save_to_history | query | boolean | Save to history |
Request body
application/json
| Field | Type | Description |
|---|---|---|
advanced_settings | object | Advanced settings like clarity, warmth, energy |
emotion | string | Emotion type for synthesis |
pitch | number | Pitch adjustment factor |
quality | string | Quality level: standard or hd |
speed | number | Speech speed multiplier |
text* | string | Text to synthesize |
voice_id | string | Voice ID (defaults to auto-selection) |
Response
200 application/json
| Field | Type | Description |
|---|---|---|
audio_data* | string | Base64 encoded audio data |
duration* | number | Duration in seconds |
emotion* | string | Emotion applied |
format* | string | Audio format |
metadata | object | |
sample_rate* | integer | Sample rate in Hz |
success* | boolean | |
voice_id* | string | Voice ID used |
{
"audio_data": "string",
"duration": 0,
"emotion": "string",
"format": "string",
"sample_rate": 0,
"success": false,
"voice_id": "string"
}Errors
401 | Missing, wrong, revoked or expired key. |
403 | The key lacks media.write, the route is not available to keys, or the key's IP allow-list refuses this client. |
402 | Not enough credits, or the key reached its spending cap. |
422 | The request failed validation; `detail` lists the fields. |
429 | Over a rate limit; retry after `Retry-After` seconds. |
All statuses: Errors.
Example
curl -X POST "https://api.voicemint.io/api/v1/voice-synthesis/synthesize/advanced" \
-H "Authorization: Bearer $VOICEMINT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"advanced_settings": {
"clarity": 0.8,
"energy": 0.7,
"warmth": 0.6
},
"emotion": "friendly",
"pitch": 1,
"quality": "hd",
"speed": 1,
"text": "Hello, this is an example of AI voice synthesis.",
"voice_id": "nova"
}'