{"uid":"cap_1aMDWxS1FlenxMMkK27R3","slug":"nojunk-speech-text-to-speech-tts-bfc383e6","name":"NoJunk Speech - Text to Speech (TTS)","description":"Speech speak: Convert text (up to 2,000 characters) into natural MP3 speech, returned as audio/mpeg bytes or base64 JSON (Deepgram Aura-1).","url":"https://nojunk-speech.mick8511.workers.dev/speak?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Text to speak (1 to 400 characters)"},"format":{"type":"string","description":"\"mp3\" (default: raw audio/mpeg body) or \"json\" ({audio_base64, ...})"},"speaker":{"type":"string","description":"Optional voice, default asteria; one of asteria, luna, stella, athena, hera, orion, arcas, perseus, angus, orpheus, helios, zeus (legacy aura-<voice>-en names also accepted)"}}},"responseSchema":{"type":"json","example":{"bytes":38400,"model":"@cf/deepgram/aura-1","speaker":"aura-asteria-en","text_chars":54,"audio_base64":"SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4Ljc2LjEwMAAAAAAAAAAAAAAA//tQxAAD...","content_type":"audio/mpeg","generated_at":"2026-10-15T12:00:00.000Z"}},"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_XJLlZjwmNVSvhy38gJ3Qq","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 text (up to 400 characters) into natural-sounding MP3 audio using selectable English voices, returning raw audio or base64-encoded JSON.","exampleAgentPrompt":"Read this aloud using the aura-zeus-en voice and give me back the audio as a base64 JSON: 'Your order has been confirmed and will arrive by Thursday.'","exampleUseCases":[{"title":"Voice response for a customer support bot","prompt":"Generate spoken audio saying 'Thank you for contacting support, a representative will be with you shortly.' using the aura-hera-en voice and return it as JSON with base64 audio."},{"title":"Podcast-style narration from a script","prompt":"Turn this script excerpt into MP3 audio using the aura-orpheus-en voice: 'Welcome back to the show. Today we explore the science of deep sleep and why it matters for your health.'"},{"title":"Accessibility read-aloud for app notifications","prompt":"Speak this notification text using the default voice and return raw MP3: 'You have 3 new messages waiting in your inbox.'"}],"resultDescription":"Returns either a raw audio/mpeg binary body (MP3) or, when format=json is specified, a JSON object containing audio_base64 (the MP3 as a base64 string), the speaker model used, the original text character count, the content type, and a generated_at timestamp. Charged $0.01 USDC only when a valid result is returned.","failureModes":["Text exceeds 400 characters — request rejected","Empty or missing text field — validation error","Invalid speaker name — falls back to default or returns error","Payment failure via x402 — no charge, no audio returned","Audio generation backend unavailable — 5xx error with no charge"],"whenToPreferThis":"Choose this endpoint when you need pay-per-use TTS with no subscription, charged only on success, with a selection of 12 distinct English voices via the Deepgram Aura model, and you want either raw MP3 streaming or base64 JSON output in a single $0.01 USDC call settled on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T15:39:14.830Z","isFirstParty":false,"canonicalSlug":"nojunk-speech-text-to-speech-tts-bfc383e6"}