Dialogue to audio: a script with several speakers as one MP3, plus captions
No account. Pay by card from $1 and your key appears right after payment. Get a key by card
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.
Inputs
| Name | Type | Description |
|---|---|---|
script (required) | string | One turn per line as Name: text (up to 6 speakers, 2,500 characters) |
lang | string | Language: en or es (default en). One of: en, es. |
voices | string | Voice per speaker, as JSON {"Anna":"luna"} or Anna=luna, Ben=orion (default: a different voice each, in order) |
captions | string | srt (default) or vtt |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://glyphtools.com/dialogue?script=Anna%3A%20Welcome%20back%20to%20the%20show!%0ABen%3A%20Thanks%2C%20it%20is%20great%20to%20be%20here."
Node.js
const r = await fetch("https://glyphtools.com/dialogue?script=Anna%3A%20Welcome%20back%20to%20the%20show!%0ABen%3A%20Thanks%2C%20it%20is%20great%20to%20be%20here.", {
headers: { Authorization: "Bearer adt_…" },
});
const data = await r.json(); // 402 until the key is in the header
Python
import requests
r = requests.get("https://glyphtools.com/dialogue?script=Anna%3A%20Welcome%20back%20to%20the%20show!%0ABen%3A%20Thanks%2C%20it%20is%20great%20to%20be%20here.", headers={"Authorization": "Bearer adt_…"}, timeout=60)
data = r.json()
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, paid from the first call:
https://glyphtools.com/mcp