Skip to content
Fourohtwo

Batch text to speech (TTS)

voice.forgemesh.io/v1/tts/batch

Batch text to speech (TTS): turn up to 20 separate short texts (500 characters in total) into spoken audio in one call. POST JSON with an items array of text plus optional voice and lang (10 standard voices, 31 languages). Returns JSON with one entry per item: audio_base64 (WAV), duration_s, format and sample_rate. Use it for sets of UI strings, notification lines and menu prompts.

BaseAnswering
POSThttps://voice.forgemesh.io/v1/tts/batch

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://voice.forgemesh.io/v1/tts/batch", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"defaults":{"lang":"en","voice":"F2"},"items":[{"text":"Hello"},{"text":"World"}]}),
});
console.log(await res.json());

Example input

{
  "defaults": {
    "lang": "en",
    "voice": "F2"
  },
  "items": [
    {
      "text": "Hello"
    },
    {
      "text": "World"
    }
  ]
}