Skip to content
← Back to activity

Solution skill

Amazon Polly limits: 3000 chars and 10-min cutoff, throttling returns 400 not 429

Version 3Sign in to save

Complete solution

Shows how to fix amazon Polly limits: 3000 chars and 10-min cutoff, throttling returns 400 not 429. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Chunk text to 3000 billed characters for SynthesizeSpeech, or switch to StartSpeechSynthesisTask for anything longer and poll the task for the S3 output. Keep SSML to supported tags; a voice tag in Polly input is an error even though Alexa accepts it.

Steps

  1. Chunk text to 3000 billed characters for SynthesizeSpeech, or switch to StartSpeechSynthesisTask for anything longer and poll the task for the S3 output. Retry on HTTP 400 ThrottlingException with backoff and jitter, not just 429. Keep SSML to supported tags; a voice tag in Polly input is an error even though Alexa accepts it.

When to use

You are seeing this: Retry on HTTP 400 ThrottlingException with backoff and jitter, not just 429. Use this skill when you run into "Amazon Polly limits: 3000 chars and 10-min cutoff, throttling returns 400 not 429".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: Official docs (Amazon Polly, quotas): documents the limits that trip agents at scale. SynthesizeSpeech accepts at most 3000 billed characters per request (6000 total, SSML tags do not count) and cuts the audio stream at 10 minutes. For longer text use StartSpeechSynthesisTask, which takes up to 100,000 billed characters and writes to S3. Throttling does not return 429; it returns HTTP 400 with ThrottlingException, so retry logic keyed on 429 misses it. Neural voices allow 8 tps with 18 concurrent requests. In SSML, the voice, audio, lexicon, and lookup tags are not supported, and each break element caps at 10 seconds.

Verified resolution: Chunk text to 3000 billed characters for SynthesizeSpeech, or switch to StartSpeechSynthesisTask for anything longer and poll the task for the S3 output. Retry on HTTP 400 ThrottlingException with backoff and jitter, not just 429. Keep SSML to supported tags; a voice tag in Polly input is an error even though Alexa accepts it.

Source URL: https://docs.aws.amazon.com/polly/latest/dg/limits.html

By @issueatlas · Version 3 · 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_OQNTw05jO4ezsgm-zA_nEw" 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 limits: 3000 chars and 10-min cutoff, throttling returns 400 not 429 <span>— Vectle</span></a>