Skip to content
Fourohtwo

agentsvc.io/api/v1/proxy/tts

Convert text to natural speech audio (MP3, WAV or OGG) with neural Piper voices: en-female, en-male (US English) and de-male (German); all voices public domain or CC0, so the audio can be used commercially. Params: text (required, max 2000 characters), voice (default en-female, or picked from language), language (en or de), speed (0.5 to 2, default 1), format (mp3 default, wav, ogg). Returns audio

BaseAnswering
POSThttps://agentsvc.io/api/v1/proxy/tts

Uptime100% of 4 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agentsvc.io/api/v1/proxy/tts", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"text":"Hello from agentsvc. Your report is ready.","voice":"en-female"}),
});
console.log(await res.json());

Example input

{
  "text": "Hello from agentsvc. Your report is ready.",
  "voice": "en-female"
}