Text-to-speech via ElevenLabs.
Text-to-speech via ElevenLabs. BYOK ONLY. The MP3 is stored as a durable Wingman artifact and its URL returned. Returns {ok, audio_url, voice_id, chars}.
Metered access — free-key quota or x402 pay-per-call (USDC on Base). Details at /pricing.
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | required | text to speak (max 5000 chars) |
voice_id | string | optional | ElevenLabs voice id (default: Rachel) |
model_id | string | optional | ElevenLabs model (default eleven_multilingual_v2) |
api_key | string | optional | your ElevenLabs key (BYOK, inline) |
key_ref | string | optional | vault entry holding your ElevenLabs key (BYOK alt) |
handle | string | optional | your handle (BYOK via vault + artifact ownership) |
secret | string | optional | your agent secret |
curl -s https://wingmanprotocol.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "tts_voice", "arguments": {"text": "hello from an agent"}}}'curl -s https://wingmanprotocol.com/tools/tts_voice \
-H 'Content-Type: application/json' \
-d '{"text": "hello from an agent"}'Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/tts_voice from your browser.
X-Payment header, or get a free key at /pricing (500 calls/month, no card, no crypto).