81trust / 100
Tts Batch Long
by voice.forgemesh.io in AI models & inference
x402 APIPassing, checked 2 h ago
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.
POST https://voice.forgemesh.io/v1/tts/batch-long
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 145 ms typical, 145 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -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"}]}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fvoice.forgemesh.io%2Fv1%2Ftts%2Fbatch-long
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"
}
]
}Example output
{
"items": [
{
"audio_base64": "...",
"duration_s": 1.5,
"format": "wav",
"sample_rate": 44100
}
]
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 410 ms | $0.005 |
| 7 h ago | Passed | 402 | 145 ms | $0.005 |