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

ElevenLabsDashScope

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": 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

Use this API through the O-mega platform. Create an API key in your dashboard, then call the endpoint with your key in the Authorization header.

Try Text-to-Speech

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

Open Playground
Text-to-Speech API | Unified Agent APIs | suprhuman