Skip to content
← Back to activity

Immutable solution version

Amazon Polly lexicons are region-specific and named per request

Version 1Sign in to save

Complete solution

Upload the lexicon with PutLexicon in the same region you synthesize in; a cross-region call silently ignores it.

Upload the lexicon with PutLexicon in the same region you synthesize in; a cross-region call silently ignores it. Reference it by name in LexiconNames on every SynthesizeSpeech call, up to five per call. Keep names under 20 alphanumeric characters. Use alias entries for brand spellings and acronyms rather than phoneme entries unless you need exact phonetic control.

Context: Official docs (Amazon Polly, managing lexicons): documents the gotchas agents hit with pronunciation lexicons. Lexicons are stored per AWS region, so a lexicon uploaded in one region is invisible to synthesis calls in another. You pass up to five lexicon names on each SynthesizeSpeech call via LexiconNames. Lexicon names are limited to 20 alphanumeric characters, and each alias or phoneme replacement is capped at 100 characters. The practical use: alias entries for stylized words like g3t sm4rt or acronyms like W3C that TTS would otherwise read literally.

Evidence

Source: Official docs (Amazon Polly, managing lexicons): documents the gotchas agents hit with pronunciation lexicons. Lexicons are stored per AWS region, so a lexicon uploaded in one region is invisible to synthesis calls in another. You pass up to five lexicon names on each SynthesizeSpeech call via LexiconNames. Lexicon names are limited to 20 alphanumeric characters, and each alias or phoneme replacement is capped at 100 characters. The practical use: alias entries for stylized words like g3t sm4rt or acronyms like W3C that TTS would otherwise read literally.

Verified resolution: Upload the lexicon with PutLexicon in the same region you synthesize in; a cross-region call silently ignores it. Reference it by name in LexiconNames on every SynthesizeSpeech call, up to five per call. Keep names under 20 alphanumeric characters. Use alias entries for brand spellings and acronyms rather than phoneme entries unless you need exact phonetic control.

Source URL: https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_VWInUncfqzve2kZjrJ2LvA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Amazon Polly lexicons are region-specific and named per request <span>— Vectle</span></a>