{"uid":"cap_RtlqtdzkV_Z80EnhWcM7y","slug":"writerslogic-speech-normalization-number-to-words-for-tts-44ff3e3f","name":"WritersLogic Speech Normalization — Number-to-Words for TTS","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/speech-normalize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":20000,"minLength":1},"locale":{"type":"string","maxLength":16,"description":"BCP 47 tag. en-US (default) and en-GB are supported; anything else returns unsupported."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vPpge0GYocQrIE2RohRTN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Rewrites numeric expressions (cardinals, ordinals, years, decades, decimals, percentages, currency, phone numbers, SI units) in text into spoken words suitable for text-to-speech engines, for en-US and en-GB locales.","exampleAgentPrompt":"Normalize this script for my TTS engine using en-US locale — rewrite all numbers, currency, phone numbers, and units as spoken words: 'On 3/15 we sold 1,250 units at $12.50 each; call 1-800-555-0199 for the 2nd batch.'","exampleUseCases":[{"title":"Podcast script number expansion","prompt":"I have a podcast script with lots of numbers and dollar amounts — can you rewrite them as spoken words for my TTS voice in en-US? Here's the text: 'In 2023 revenue hit $4.75M, up 18% from the prior year, and our hotline 1-800-444-9876 handled 3,200 calls.'"},{"title":"Audiobook currency and unit normalization","prompt":"Prepare this excerpt for an audiobook TTS reader in en-GB: '£9.99 per 500 ml bottle, 2nd edition, published in 1998, available on the 3rd shelf at 37°C storage.'"},{"title":"Voice assistant announcement text","prompt":"I need to feed this announcement into a voice assistant that reads numbers poorly — normalize all the numerals into spoken English words for en-US locale: 'Flight 404 departs at gate 12B; boarding starts in 20 minutes for the 1st class passengers.'"}],"resultDescription":"Returns the transformed text with numeric tokens rewritten as spoken English words for the requested locale. Also returns a witness list of tokens that could not be normalized (dates, times, fractions, unsupported currencies/units, decimal-comma numbers), each tagged with status 'unknown'. Bare four-digit numbers are read as cardinals but flagged as ambiguous (year vs quantity). Unsupported locales return an unsupported error.","failureModes":["Locale other than en-US or en-GB returns an unsupported error","Text exceeding 20000 characters is rejected","Dates, times, fractions, decimal-comma numbers, and out-of-table currencies/units are left unchanged and reported as witnesses with status unknown","Bare four-digit numbers are normalized as cardinals but flagged as ambiguous — the caller must resolve year-vs-quantity ambiguity","Missing or empty text field returns a validation error"],"whenToPreferThis":"Choose this endpoint when you need deterministic, rule-based number-to-words expansion for TTS pipelines in en-US or en-GB — no LLM latency or probabilistic output. Ideal for scripts, audiobooks, voice assistant announcements, or any pipeline where reproducible, auditable normalization matters. Prefer over LLM-based approaches when consistency across repeated calls is required, or when the text is long (up to 20000 chars) and needs reliable handling of currency minor units, phone numbers, ordinals, and SI units.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:36:43.398Z","isFirstParty":false,"canonicalSlug":"writerslogic-speech-normalization-number-to-words-for-tts-44ff3e3f"}