Dialogue to audio: a script with several speakers as one MP3, plus captions

$0.10 per call · failed calls are never charged · no account needed: a card key or USDC

Turn a script into a multi-voice conversation: write one line per turn as "Name: text", each speaker gets their own natural voice (Deepgram Aura-2, English or Spanish, or pick voices), and the whole dialogue comes back as one MP3 with SRT captions naming the speaker, timed from the real audio. Up to 6 speakers and 2,500 characters. Use for podcast intros, language-lesson dialogues, explainer videos, ads and game or story scenes.

Buy credits by card (from $1) Example result (JSON)

Inputs

NameTypeDescription
script (required)stringOne turn per line as Name: text (up to 6 speakers, 2,500 characters)
langstringLanguage: en or es (default en). One of: en, es.
voicesstringVoice per speaker, as JSON {"Anna":"luna"} or Anna=luna, Ben=orion (default: a different voice each, in order)
captionsstringsrt (default) or vtt

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://api.glyphcall.com/dialogue?script=Anna%3A%20Welcome%20back%20to%20the%20show!%0ABen%3A%20Thanks%2C%20it%20is%20great%20to%20be%20here."

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.

Example result

{
  "contentType": "audio/mpeg",
  "audioBase64": "SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjYwLjMuMTAwAAAA…",
  "audioBytes": 98304,
  "durationSeconds": 4.6,
  "lang": "en",
  "speakers": {
    "Anna": "luna",
    "Ben": "orion"
  },
  "lines": [
    {
      "speaker": "Anna",
      "voice": "luna",
      "start": 0,
      "end": 1.9,
      "text": "Welcome back to the show!"
    },
    {
      "speaker": "Ben",
      "voice": "orion",
      "start": 1.9,
      "end": 4.6,
      "text": "Thanks, it is great to be here."
    }
  ],
  "characters": 56,
  "captionFormat": "srt",
  "captions": "1\n00:00:00,000 --> 00:00:01,900\nAnna: Welcome back to the show!\n\n2\n00:00:01,900 --> 00:00:04,600\nBen: Thanks, it is great to be here.\n",
  "model": "@cf/deepgram/aura-2-en"
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is dialogue, and the first 25 successful calls are free:

https://api.glyphcall.com/mcp

Related tools