Text to speech (TTS voice clip)
text_to_speechText to speech / TTS / voice generation (MeloTTS): text in English, Spanish, French, Chinese, Japanese or Korean in, WAV voice clip out (MCP returns an audio content block). Up to 400 characters per MCP call, 2,000 via REST. $0.001 USDC per started 1,000 characters on Base via x402; failures are not charged. Price: $0.001 per started 1,000 characters. First call returns the x402 PaymentRequired (no charge); retry with payment in _meta["x402/payment"].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | en | |
| text | Yes | Text to speak (max 400 chars via MCP) | |
| requestKey | No | Optional idempotency key: same payer + requestKey + input returns the stored result without a second charge (7 days). | |
| x402_payment | No | Optional. Base64 x402 v2 PaymentPayload, for clients that cannot set params._meta["x402/payment"]. Omit on the first call to get the exact price. |