81trust / 100

Proxy Tts

by Text to Speech in AI models & inference

x402 APIPassing, checked 4 h ago

Convert text to natural speech audio (MP3, WAV or OGG) with neural Piper voices: en-female, en-male (US English) and de-male (German); all voices public domain or CC0, so the audio can be used commercially. Params: text (required, max 2000 characters), voice (default en-female, or picked from language), language (en or de), speed (0.5 to 2, default 1), format (mp3 default, wav, ogg). Returns audio_base64 and duration.

POST https://agentsvc.io/api/v1/proxy/tts

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
110 ms typical, 110 ms slowest 5%
Last check
4 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentsvc.io/api/v1/proxy/tts" \
  -H "content-type: application/json" \
  -d '{"text":"Hello from agentsvc. Your report is ready.","voice":"en-female"}'
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%2Fagentsvc.io%2Fapi%2Fv1%2Fproxy%2Ftts
const res = await pay("https://agentsvc.io/api/v1/proxy/tts", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"text":"Hello from agentsvc. Your report is ready.","voice":"en-female"}),
});
console.log(await res.json());

Example input

{
  "text": "Hello from agentsvc. Your report is ready.",
  "voice": "en-female"
}

Example output

{
  "data": {
    "audio_base64": "SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2…",
    "characters": 42,
    "duration_seconds": 2.93,
    "format": "mp3",
    "gender": "female",
    "language": "en-US",
    "mime_type": "audio/mpeg",
    "size_bytes": 23658,
    "voice": "en-female",
    "voice_license": "public domain"
  },
  "success": true
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402110 ms$0.04