Skip to main content
POST
/
tts-synthesize
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"
}

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

Headers

Authorization
string
required
Bearer token with your API key
Content-Type
string
required
application/json

Body

text
string
required
The text to convert to speech (max 5000 characters)
voice_id
string
ID of the voice to use (default: system default voice)
voice
string
Alternative way to specify voice name
enhance
boolean
default:"true"
Enable audio enhancement for better quality
speed
number
default:"1"
Speech speed multiplier (0.5 to 2.0)
stability
number
default:"50"
Voice stability 0-100 (lower = more expressive, higher = more consistent)
similarity
number
default:"75"
Voice similarity 0-100 (how closely the output matches the source voice)
output_format
string
default:"mp3"
Audio output format: mp3, wav, ogg, flac

Response

success
boolean
Indicates if the request was successful
message
string
Status message
audio_base64
string
Base64-encoded audio data
sample_rate
number
Audio sample rate in Hz
duration_seconds
number
Duration of the audio in seconds
encoding
string
Audio encoding format
output_format
string
Audio output format
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"
}