Skip to content
onelayer.
All tools

Tool detail

x-text-to-speech

Converts text to speech, returning MP3 audio, in a choice of five named voices.

Categories: Speech audio

Use when

  • convert a block of text into spoken audio as MP3
  • generate speech in a specific voice such as Eve, Ara, Leo, Rex or Sal

Not for

  • not for voices other than Eve, Ara, Leo, Rex or Sal

Inputs

POST JSON body: { text: string (required), voice_id: string (optional, one of Eve/Ara/Leo/Rex/Sal), output_format: string (optional, codec/sample_rate/bit_rate) }.

Admitted input schema

{
  "type": "object",
  "properties": {
    "output_format": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Optional: codec, sample_rate, bit_rate"
    },
    "text": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Text to convert to speech"
    },
    "voice_id": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Voice: Eve, Ara, Leo, Rex, or Sal"
    }
  },
  "required": [
    "text"
  ],
  "additionalProperties": false
}

Endpoint

Method
POST
URL
https://api.xona-agent.com/base-main/audio/x-text-to-speech

Payment

Protocol
x402
Listed price
0.01 USDC per call on Base
Payment method
exact
Network
eip155:8453
Asset
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
POST https://api.xona-agent.com/base-main/audio/x-text-to-speech
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z