# 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-13).

Converts a text string into spoken audio, returning a base64-encoded MP3 in one of several supported languages.

## Facts

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

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-67c310e6
```

Example prompt: Can you convert this text to spoken audio in French: 'Bonjour, bienvenue sur notre plateforme.' and give me the MP3?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call text-to-speech conversion with multilingual support (English, Spanish, French, Chinese, Japanese, Korean) and the output needs to be a base64-encoded MP3 that can be embedded or stored. It is well-suited for agents operating in x402 micropayment environments that need TTS without managing a subscription or API key.

## Known failure modes

- Missing required 'text' query parameter returns an error
- Unsupported language code (not in en/es/fr/zh/jp/kr) may return an error or default to English
- Empty or whitespace-only text (minLength:1 violated) returns a validation error
- Very long text inputs may time out or be truncated
- Network or upstream TTS provider 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 a 'result' field with the base64-encoded MP3 audio of the spoken text. The agent must decode the base64 string to obtain the raw MP3 file for playback or storage.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "enum": [
      "http"
     ],
     "type": "string"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "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
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "enum": [
      "json"
     ],
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "Convert text into spoken audio (returned base64-encoded MP3), in several languages."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agishub-text-to-speech-audio-speak-67c310e6/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)
