capabilities.work

Store Lexicon and Synthesize With It

A 3-step recipe with Amazon Polly. We can help you get access.

Recipe · 3 steps

Store Lexicon and Synthesize With It

Store a lexicon, verify it, and synthesize speech that applies it.

  1. Store the PLS lexicon under the supplied name, overwriting any existing lexicon with the same name in the region.
  2. Read the lexicon back to confirm it was stored and is available for synthesis before applying it.
  3. Synthesize the supplied text, applying the stored lexicon so the audio reflects the custom pronunciations.
What you'll need to have ready
  • lexiconName: Case-sensitive alphanumeric lexicon name (1-20 chars).
  • content: The PLS lexicon content as a string.
  • amzDate: The X-Amz-Date timestamp used to sign the requests.
  • authorization: The full SigV4 Authorization header value for the request.
  • contentSha256: The X-Amz-Content-Sha256 hex digest of the request payload.
  • securityToken: Optional X-Amz-Security-Token for temporary credentials.
  • text: The input text (plain text or SSML) to synthesize.
  • outputFormat: The audio output format (mp3, ogg_vorbis, pcm, or json).
  • voiceId: Voice ID to use for the synthesis (e.g. Joanna).
For your developer

Arazzo workflow amazon-polly:put-lexicon-synthesize, 3 operations: PutLexicon → GetLexicon → SynthesizeSpeech. Specs on APIs.io.