{"service":"text-to-speech","version":"1.0.0","title":"Text to speech","description":"Use when you need text to speech, tts, a voice audio file or spoken narration of a short text. Do not use for voice cloning, a chosen voice, SSML or audio longer than about two minutes. Returns JSON with text to speech (TTS): your text read aloud as WAV voice audio (base64, 44.1 kHz mono) by MeloTTS on Workers AI, in English, Spanish, French, Chinese, Japanese or Korean for 0.023 USDC per call. Typical response time 8000 ms (p95). Category: Media.","paid":{"method":"POST","url":"https://x402-gateway.blackwoodstate8.workers.dev/v1/text-to-speech","scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"23000","amountUsdc":"0.023","payTo":"0xe46a85E0cb068A80Dd2E4553046ddCFe3FAc9650","maxTimeoutSeconds":60},"input":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":1000,"description":"Text to read aloud, e.g. Welcome to our store (up to 1000 characters)"},"lang":{"description":"Speech language: en (default), es, fr, zh, ja or ko","type":"string","enum":["en","es","fr","zh","ja","ko"]}},"required":["text"]},"example":{"text":"Hello from Blackwood State. This audio was generated on demand.","lang":"en"}},"output":{"schema":{"type":"object","properties":{"mimeType":{"type":"string","enum":["audio/wav","audio/mpeg"]},"audioBase64":{"type":"string"},"bytes":{"type":"number"},"lang":{"type":"string"},"chars":{"type":"number"},"model":{"type":"string"},"next":{"type":"object","properties":{"service":{"type":"string","description":"Service id of the suggested next paid call"},"tool":{"type":"string","description":"MCP tool name of the same call"},"method":{"type":"string","enum":["GET","POST"]},"url":{"type":"string","description":"Paid route of the next call"},"useWhen":{"type":"string","description":"When the next call is the right one"},"sample":{"type":"string","description":"Free fixed sample of the whole family"}},"required":["service","tool","method","url","useWhen","sample"],"additionalProperties":false,"description":"Suggested next paid call in the same family (call it in a loop when the task continues)"}},"required":["mimeType","audioBase64","bytes","lang","chars","model"],"additionalProperties":false},"example":{"mimeType":"audio/wav","audioBase64":"UklGRl5RBQBXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YTpRBQAAAAAA...(464692 characters)","bytes":348518,"lang":"en","chars":63,"model":"@cf/myshell-ai/melotts"}},"mcp":{"url":"https://x402-gateway.blackwoodstate8.workers.dev/mcp","tool":"blackwood_speech_synthesize"},"openapi":"https://x402-gateway.blackwoodstate8.workers.dev/openapi.json","status":"https://x402-gateway.blackwoodstate8.workers.dev/status.json"}