Documentation Index
Fetch the complete documentation index at: https://docs.60db.ai/llms.txt
Use this file to discover all available pages before exploring further.
Request
Bearer token with your API key
Body
The text to convert to speech (max 5000 characters)
ID of the voice to use (default: system default voice)
Alternative way to specify voice name
Enable audio enhancement for better quality
Speech speed multiplier (0.5 to 2.0)
Voice stability 0-100 (lower = more expressive, higher = more consistent)
Voice similarity 0-100 (how closely the output matches the source voice)
Audio output format: mp3, wav, ogg, flac
Response
Indicates if the request was successful
Base64-encoded audio data
Duration of the audio in seconds
curl -X POST https://api.60db.ai/tts-synthesize \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"text": "Hello, world! This is a test of the text to speech API.",
"voice_id": "default-voice",
"enhance": true,
"speed": 1,
"stability": 50,
"similarity": 75
}'
{
"success": true,
"message": "Audio generated successfully",
"audio_base64": "SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4Ljc2LjEwMAAAAAAAAAAAAAAA...",
"sample_rate": 24000,
"duration_seconds": 3.5,
"encoding": "mp3",
"output_format": "mp3"
}