{"uid":"cap_Xu2LJhs34iRyHLuXrYm_Z","slug":"devx-voice-text-to-speech-1638574f","name":"DevX Voice Text-to-Speech","description":"Text to speech for agents: send text (up to 2,000 chars) in English, Spanish, French, Chinese, Japanese or Korean and get a WAV voice clip (base64 in JSON, or raw audio/wav with response_format=wav). $0.001 USDC per started 1,000 characters on Base; failures are not charged. Accepts dTelecom-style text/lang_code fields. MeloTTS. By DevX.","url":"https://voice.madebydevx.com/v1/tts?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"lang":{"enum":["en","es","fr","zh","ja","ko"],"type":"string","description":"Language (default en). Aliases: language, lang_code (dTelecom/Kokoro letters a, b, e, f, j, z)"},"text":{"type":"string","maxLength":2000,"minLength":1,"description":"Text to speak (max 2,000 characters)"},"speed":{"enum":[1],"type":"number"},"voice":{"enum":["default"],"type":"string"},"language":{"type":"string"},"lang_code":{"type":"string"},"requestKey":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$","maxLength":128,"minLength":8,"description":"Optional idempotency key: the same payer + requestKey + input within 7 days returns the stored result without a second charge."},"response_format":{"enum":["json","wav"],"type":"string","description":"json (default): base64 WAV inside JSON; wav: raw audio/wav body"}}},"responseSchema":{"type":"json","example":{"result":{"mime":"audio/wav","model":"melotts","voice":"melotts-default","language":"en","characters":22,"sample_rate":44100,"audio_base64":"UklGRl7xAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQ...","billed_units":1,"duration_seconds":1.6},"status":"paid","payment":{"status":"paid","network":"eip155:8453","tx_hash":"0x0000000000000000000000000000000000000000000000000000000000000000","amount_raw":"1000"},"operation_id":"0d7c1f8a-5e2b-4a9c-8f3d-1b6e2c9a7d40"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_v_yPYgJeqnHFSeYbsAWAZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts text (up to 2,000 characters) into a WAV audio clip using MeloTTS, supporting English, Spanish, French, Chinese, Japanese, and Korean, billed per 1,000 characters on Base via x402.","exampleAgentPrompt":"Can you read this aloud in French: 'Bienvenue dans notre application, nous sommes ravis de vous accueillir.' — give me a WAV audio file I can play.","exampleUseCases":[{"title":"Multilingual voice response for chatbot","prompt":"I need you to synthesize this customer support message in Spanish as a WAV audio clip: 'Su pedido ha sido enviado y llegará en 3 a 5 días hábiles. Gracias por su compra.'"},{"title":"Japanese narration for language learning app","prompt":"Generate spoken audio in Japanese for this phrase: '今日の天気はとても良いです。散歩に行きましょう。' — I need the raw WAV audio back."},{"title":"English podcast intro voice clip","prompt":"Turn this intro text into a spoken WAV clip in English: 'Welcome to the Daily Briefing. Here are today's top stories curated just for you.' Use the default voice."}],"resultDescription":"A JSON object containing a base64-encoded WAV audio clip (or raw audio/wav if response_format=wav), along with metadata including MIME type, model name (melotts), language, character count, sample rate (44100 Hz), duration in seconds, billed units, an operation ID, and payment confirmation details including transaction hash and USDC amount charged on Base.","failureModes":["Text exceeds 2,000 characters — request rejected before charge","Unsupported language code provided — validation error","Empty or missing text field — 400 error","Network or upstream MeloTTS failure — error returned, no charge","Invalid requestKey format — idempotency key rejected","Payment failure on Base network — audio not returned"],"whenToPreferThis":"Choose this endpoint when you need lightweight, pay-per-use multilingual TTS (English, Spanish, French, Chinese, Japanese, Korean) billed in USDC on Base via x402 with no subscription required. It is ideal for AI agents needing spoken audio responses in real time, especially when idempotency (via requestKey) matters to avoid double-billing. Prefer it over subscription TTS APIs for low-volume or sporadic agent usage, and when MeloTTS voice quality is acceptable for the use case.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T06:32:52.637Z","isFirstParty":false,"canonicalSlug":"devx-voice-text-to-speech-1638574f"}