82trust / 100
Tts Batch
by voice.forgemesh.io in AI models & inference
x402 APIPassing, checked 2 min ago
Batch text-to-speech: synthesize up to 20 separate text items in a single call, standard voices only, up to 500 total characters, returns JSON with base64 WAV audio plus duration and sample rate per item. Use it to: voice a list of short UI strings at once, generate audio for multiple notification templates, batch-produce voice lines for a menu or form, synthesize several short replies in one request. USDC on Base via x402.
POST https://voice.forgemesh.io/v1/tts/batch
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 144 ms typical, 144 ms slowest 5%
- Last check
- 2 min ago
- Next check
- in 26 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://voice.forgemesh.io/v1/tts/batch" \
-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
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"
}
]
}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 min ago | Passed | 402 | 410 ms | $0.002 |
| 5 h ago | Passed | 402 | 144 ms | $0.002 |