F

Forgemesh · TTS Batch Long

by Forgemesh

POSTBase

$0.005

per call · USD Coin on Base

Batch text-to-speech: synthesize up to 20 text items in a single call, standard voices only, for 501-2000 total characters, returns JSON with base64 WAV audio plus duration and sample rate per item. Use it to: batch-voice a longer set of messages, produce audio for a multi-section script or FAQ, generate several paragraph-length voice clips in one request without repeated calls. USDC on Base via x402.

Endpoint

POST https://voice.forgemesh.io/v1/tts/batch-long

5

Calls / 30d

2

Unique payers / 30d

Sep 7

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("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"
      }
    ]
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://voice.forgemesh.io/v1/tts/batch-long" \
  -H "Content-Type: application/json" \
  -d '{"defaults":{"lang":"en","voice":"F2"},"items":[{"text":"Hello"},{"text":"World"}]}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "items": [
    {
      "audio_base64": "...",
      "duration_s": 1.5,
      "format": "wav",
      "sample_rate": 44100
    }
  ]
}

Payment details

Pay to0x962794fb8ad92941faf1ab446b9e30637b86f331
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Media & Generation and the homepage with a featured placement.

Get featured →

More from Forgemesh & similar services