# agentsvc.io Text-to-Speech (TTS)

> agentsvc.io Text-to-Speech (TTS) is a paid API for AI agents from agentsvc.io, paid per call via x402, $0.04/call, status unknown (last checked 2026-10-12).

Converts text into audio (MP3/WAV/OGG) using selectable voices and languages, returning base64-encoded audio, paid per call via USDC on Base.

## Facts

- Endpoint: POST https://agentsvc.io/api/v1/proxy/tts?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentsvc-io-text-to-speech-tts-e09f5715
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eW4edPi2zTubw7eAdloR5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentsvc-io-text-to-speech-tts-e09f5715 -d '<json body>'
```

Example prompt: Can you read out this text as an audio file using an English female voice at normal speed and give it back to me as an MP3: 'Welcome to our platform, we're glad you're here.'

## When to prefer this

Choose this endpoint when an AI agent needs to synthesize speech from text on a per-call pay-as-you-go basis with no account or API key setup, especially for English (male/female) or German (male) voices. Ideal for agents that occasionally need TTS without committing to a subscription-based TTS provider. The micropayment model via USDC on Base makes it well-suited for autonomous agents managing their own budgets.

## Known failure modes

- Text input too long or empty — returns validation error
- Unsupported voice/language combination (e.g. 'de-male' with language 'en') — may produce error or unexpected output
- Speed value outside 0.5–2.0 range — rejected with validation error
- Insufficient USDC balance on Base for x402 payment — payment failure, no audio returned
- Network timeout if text is very long and synthesis takes too long

## How this service works

86 APIs for AI agents: web scraping and crawling to Markdown, AI summaries, data extraction and cited answers, screenshots and PDF, PDF, OCR and document conversion, news, paper and developer search and more, paid per call with USDC on Base, Solana, Polygon or Arbitrum via x402. No account, no API key, free sample on every service.

## Output

Returns a JSON object containing the base64-encoded audio data, MIME type, voice used, language, gender, duration in seconds, file size in bytes, character count, and voice license information. The audio can be decoded from base64 and played back or saved as the requested format (MP3, WAV, or OGG).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  },
  "speed": {
   "type": "number",
   "default": 1,
   "maximum": 2,
   "minimum": 0.5
  },
  "voice": {
   "enum": [
    "en-female",
    "en-male",
    "de-male"
   ],
   "type": "string"
  },
  "format": {
   "enum": [
    "mp3",
    "wav",
    "ogg"
   ],
   "type": "string",
   "default": "mp3"
  },
  "language": {
   "enum": [
    "en",
    "de"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentsvc-io-text-to-speech-tts-e09f5715/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentsvc.io](https://www.zero.xyz/host/agentsvc.io/llms.txt)
