Back to APIs

Unified Agent API

Text-to-Speech

Text-to-Speech

Convert text to natural speech using Deepgram Aura with ElevenLabs fallback.

POST/v1/speech/synthesizeVoice cloning

Overview

Convert text to speech audio

Credits

2 credits per call

Providers

DeepgramElevenLabs

SDK Method

client.tts(...)

Parameters

textRequired

string

Text to convert (max 2000 chars).

voice_model

string

Deepgram voice model ID.

provider

select (default: auto)

TTS provider.

Auto
Deepgram
ElevenLabs

Example Response

{
  "success": true,
  "data": {
    "audio_base64": "//NkxAAc4FJgDHpMAQteDEe...(base64 audio data)",
    "format": "mp3",
    "sample_rate": 24000,
    "bit_rate": 48000,
    "text": "Hello, I am your AI assistant.",
    "voice_model": "aura-2-thalia-en"
  },
  "metadata": {
    "provider_used": "deepgram",
    "providers_tried": [
      "deepgram"
    ],
    "mode_used": null,
    "response_time_ms": 2582,
    "request_id": "req_ba10d96a"
  },
  "credits_used": 2
}

Get Started

Create a Suprsonic API key in your dashboard, then call the endpoint with your key in the Authorization header.

Confirm your email and 25 free credits are added, no card needed. After them, your API calls continue with a free 7-day trial of Pro: a card is needed, and nothing is charged until the trial ends. When you need more, subscribe to a plan: Pro is $29 a month for 2,000 credits, Max $99 for 8,000 and Team $249 for 24,000.

Try Text-to-Speech

Test Text-to-Speech in the interactive playground. No setup required.

Open Playground