# AGISHub Text-to-Speech (audio-speak)

> AGISHub Text-to-Speech (audio-speak) is a paid API for AI agents from api.agishub.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Converts text into spoken audio and returns a base64-encoded MP3, supporting English, Spanish, French, Chinese, Japanese, and Korean.

## Facts

- Endpoint: POST https://api.agishub.com/paid/audio-speak
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agishub-text-to-speech-audio-speak-dffe514e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Jes01AZDe6ltLQyp7HAAW

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 agishub-text-to-speech-audio-speak-dffe514e -d '<json body>'
```

Example prompt: Can you read out this text in French and give me the audio file: 'Bonjour, bienvenue sur notre plateforme d'intelligence artificielle'?

## When to prefer this

Choose this endpoint when you need a quick, multilingual text-to-speech conversion that returns base64-encoded MP3 audio via a simple GET request with pay-per-call pricing at $0.05 USDC. It is especially suitable for agents that need on-demand audio generation in one of six supported languages (English, Spanish, French, Chinese, Japanese, Korean) without managing a subscription or API key — just an x402-compatible payment flow.

## Known failure modes

- Empty or missing 'text' query parameter returns a validation error
- Unsupported language code outside the enum (en, es, fr, zh, jp, kr) causes a bad request error
- Text that is too long may result in a timeout or truncation
- Payment failure via x402 protocol blocks the request before synthesis
- Network or upstream TTS engine errors may return a 5xx response

## How this service works

Convert text into spoken audio (returned base64-encoded MP3), in several languages.

## Output

A JSON object containing the synthesized audio as a base64-encoded MP3 string, ready to decode and play or save as an audio file.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "lang": {
       "enum": [
        "en",
        "es",
        "fr",
        "zh",
        "jp",
        "kr"
       ],
       "type": "string",
       "description": "Language of the text (default 'en')."
      },
      "text": {
       "type": "string",
       "minLength": 1,
       "description": "The text to convert to spoken audio."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "enum": [
      "http"
     ],
     "type": "string"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "enum": [
      "json"
     ],
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agishub-text-to-speech-audio-speak-dffe514e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agishub.com](https://www.zero.xyz/host/api.agishub.com/llms.txt)
