Skip to content
Fourohtwo

Batch text to speech (TTS) for long text

voice.forgemesh.io/v1/tts/batch-long

Batch text to speech (TTS) for long text: turn up to 20 separate texts (501 to 2,000 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 multi-section scripts, FAQs and message sets.

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

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-long", {
  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"
    }
  ]
}