{"uid":"cap_ostDMGF-8fLeVOKmzr5a3","slug":"melotts-text-to-speech-wav-via-onchaincheck-dev-8f07c5bf","name":"MeloTTS Text-to-Speech (WAV via onchaincheck.dev)","description":"Text to speech: up to 1,000 characters spoken as a WAV file (22 kHz mono), returned as base64 in JSON. Languages: English, Spanish, French, Chinese, Japanese, Korean (MeloTTS).","url":"https://onchaincheck.dev/ai/tts?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"lang":{"enum":["en","es"],"type":"string","description":"Language (default en)"},"text":{"type":"string","pattern":"^[\\s\\S]{1,600}$","description":"Text to speak: up to 600 characters in English, 300 in Spanish"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SL53h4n7DpmUMc5tAws31","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts up to 1,000 characters of text into a spoken WAV audio file (22 kHz mono) in one of six languages, returned as base64-encoded JSON.","exampleAgentPrompt":"Can you convert this Spanish text to spoken audio: 'Bienvenidos a nuestra tienda, estamos felices de atenderte hoy'? I need it as a WAV file.","exampleUseCases":[{"title":"Multilingual voice notification for chatbot","prompt":"Take this French message — 'Votre commande a été expédiée et arrivera demain' — and turn it into spoken audio I can play back to users in my support bot."},{"title":"Podcast intro narration generation","prompt":"Read this English script out loud for me: 'Welcome to the Daily Briefing, your five-minute rundown of everything that matters today.' I need the WAV audio to use as a podcast intro."},{"title":"Japanese language learning audio card","prompt":"Generate spoken Japanese audio for this phrase: '今日はいい天気ですね' so I can add it to my language-learning flashcard app."}],"resultDescription":"A JSON object containing the synthesized speech as a base64-encoded WAV audio string (22 kHz, mono). The agent can decode the base64 payload to obtain a playable .wav file of the spoken text in the requested language.","failureModes":["Text exceeds 1,000 character limit — request rejected with validation error","Unsupported language code provided — only en, es, fr, zh, ja, ko are accepted","Missing required 'text' query parameter — returns error","Payment not provided or insufficient USDC — x402 payment required error","Empty string submitted as text — may return error or silent failure","Network timeout for longer texts approaching the character limit"],"whenToPreferThis":"Choose this endpoint when you need fast, low-cost ($0.01 USDC) multilingual speech synthesis (English, Spanish, French, Chinese, Japanese, Korean) for short texts up to 1,000 characters, returned as a base64 WAV — especially in agentic or micropayment-native (x402) workflows where you want a simple GET request with no subscription or API key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T12:33:11.063Z","isFirstParty":false,"canonicalSlug":"melotts-text-to-speech-wav-via-onchaincheck-dev-8f07c5bf"}