Skip to content
Fourohtwo

Text to speech for agents

voice.madebydevx.com/v1/tts

Text to speech for agents: send text (up to 2,000 chars) in English, Spanish, French, Chinese, Japanese or Korean and get a WAV voice clip (base64 in JSON, or raw audio/wav with response_format=wav). $0.001 USDC per started 1,000 characters on Base; failures are not charged. Accepts dTelecom-style text/lang_code fields. MeloTTS. By DevX.

AvalancheAnswering
POSThttps://voice.madebydevx.com/v1/tts

Uptime100% of 1 check in 30 days

30 days agoToday

Call it from an agent

import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";

const pay = wrapFetchWithPayment(fetch, privateKeyToAccount(process.env.AGENT_KEY));
const res = await pay("https://voice.madebydevx.com/v1/tts", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"lang":"en","text":"Hello from DevX Voice."}),
});
console.log(await res.json());

Example input

{
  "lang": "en",
  "text": "Hello from DevX Voice."
}

More from DevX VoiceProvider status