# Agent Hub MeloTTS Text-to-Speech

> Agent Hub MeloTTS Text-to-Speech is a paid API for AI agents from agents.torbrooknews.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-13).

Converts up to 2000 characters of text into spoken audio (WAV) using MeloTTS, with support for English, Spanish, French, Chinese, Japanese, and Korean

## Facts

- Endpoint: GET https://agents.torbrooknews.com/v1/audio/speech?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-hub-melotts-text-to-speech-eb5e2252
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_elUoNhdWdaOvIecDmuoiC

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 agent-hub-melotts-text-to-speech-eb5e2252
```

Example prompt: Can you read this aloud in French and give me the audio file: 'Bonjour tout le monde, bienvenue dans notre application. Nous espérons que vous apprécierez votre expérience.'

## When to prefer this

Prefer this endpoint when you need a simple, no-API-key, flat-rate text-to-speech service supporting multiple languages (en, es, fr, zh, jp, kr) with an OpenAI-compatible request shape. It's ideal for short-to-medium texts up to 2000 characters where cost predictability matters and you don't want to manage API credentials. Choose it over OpenAI TTS when you want a self-contained pay-per-call model via x402 micropayments.

## Known failure modes

- Input text exceeds 2000 character limit — request rejected or truncated
- Unsupported language code provided — defaults to English or errors
- Empty input text — may return empty audio or error
- Network timeout if synthesis takes too long
- Payment failure via x402 protocol — 402 response if USDC payment not processed

## How this service works

OpenAI-compatible text to speech (MeloTTS): same request shape as OpenAI /v1/audio/speech (input, voice, model); returns a WAV file. Languages en, es, fr, zh, jp, kr via language. Up to 2000 characters, flat price, no API key. Also callable as GET with the same fields as query parameters.

## Output

A WAV audio file containing the synthesized speech of the provided text. The file is returned directly as binary audio data, ready for playback or further processing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "input": {
       "type": "string"
      },
      "model": {
       "type": "string",
       "description": "Ignored"
      },
      "voice": {
       "type": "string",
       "description": "Ignored"
      },
      "language": {
       "type": "string",
       "description": "en (default) | es | fr | zh | jp | kr"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-hub-melotts-text-to-speech-eb5e2252/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.torbrooknews.com](https://www.zero.xyz/host/agents.torbrooknews.com/llms.txt)
