# MeloTTS Text-to-Speech (WAV via onchaincheck.dev)

> MeloTTS Text-to-Speech (WAV via onchaincheck.dev) is a paid API for AI agents from onchaincheck.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-17).

Converts up to 1,000 characters of text into a spoken WAV audio file (22 kHz mono) in one of six languages, returned as base64-encoded JSON.

## Facts

- Endpoint: GET https://onchaincheck.dev/ai/tts?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/melotts-text-to-speech-wav-via-onchaincheck-dev-8f07c5bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ostDMGF-8fLeVOKmzr5a3

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 melotts-text-to-speech-wav-via-onchaincheck-dev-8f07c5bf
```

Example prompt: Can you convert this Spanish text to spoken audio: 'Bienvenidos a nuestra tienda, estamos felices de atenderte hoy'? I need it as a WAV file.

## When to prefer this

Choose this endpoint when you need fast, low-cost ($0.01 USDC) multilingual speech synthesis (English, Spanish, French, Chinese, Japanese, Korean) for short texts up to 1,000 characters, returned as a base64 WAV — especially in agentic or micropayment-native (x402) workflows where you want a simple GET request with no subscription or API key management.

## Known failure modes

- Text exceeds 1,000 character limit — request rejected with validation error
- Unsupported language code provided — only en, es, fr, zh, ja, ko are accepted
- Missing required 'text' query parameter — returns error
- Payment not provided or insufficient USDC — x402 payment required error
- Empty string submitted as text — may return error or silent failure
- Network timeout for longer texts approaching the character limit

## How this service works

Text to speech: up to 1,000 characters spoken as a WAV file (22 kHz mono), returned as base64 in JSON. Languages: English, Spanish, French, Chinese, Japanese, Korean (MeloTTS).

## Output

A JSON object containing the synthesized speech as a base64-encoded WAV audio string (22 kHz, mono). The agent can decode the base64 payload to obtain a playable .wav file of the spoken text in the requested language.

## 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": [
      "text"
     ],
     "properties": {
      "lang": {
       "enum": [
        "en",
        "es"
       ],
       "type": "string",
       "description": "Language (default en)"
      },
      "text": {
       "type": "string",
       "pattern": "^[\\s\\S]{1,600}$",
       "description": "Text to speak: up to 600 characters in English, 300 in Spanish"
      }
     },
     "additionalProperties": false
    }
   },
   "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/melotts-text-to-speech-wav-via-onchaincheck-dev-8f07c5bf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchaincheck.dev](https://www.zero.xyz/host/onchaincheck.dev/llms.txt)
