EVAL.md

Part of the amazon-polly skill

Evaluation for amazon-polly

Use this file as the scoring guide after an evaluated agent has used only SKILL.md. Do not expose this file to the evaluated agent.

Score out of 100. Passing threshold: 80. A response that recommends an unsupported Polly capability for the core task, ignores privacy/rights risks in a sensitive scenario, or fabricates current AWS facts should fail even if the numeric score is high.

1. Engine and operation boundaries (18 points)

Question: A user needs a 90-second product video narration, exact word-level captions, and viseme timing for a small avatar. They ask for “the most human Amazon Polly voice.” What should the agent recommend?

Expected answer:

  • Recommend an engine that supports speech marks, normally Neural for this short produced narration, or Long-form only if the voice/language/region constraints fit. (4)
  • Explain that Generative may be more conversational but currently does not support speech marks, so it is not the direct fit for exact word captions/visemes. (5)
  • Use SynthesizeSpeech because the job is short; generate audio and JSON speech marks as separate requests with the same text/voice/engine/lexicons. (4)
  • Include word and viseme marks, optionally sentence and ssml marks for edit/overlay cues. (2)
  • Mention QA: compare captions to the approved script and visually validate mouth movement. (3)

Disqualifying or major-penalty claims:

  • Claims Generative speech marks are available.
  • Uses OutputFormat="mp3" and expects speech marks in the same response.
  • Omits timing QA entirely.

2. Long content workflow (12 points)

Question: A 120,000 billed-character training chapter must be synthesized into audio in AWS with managed output storage. What should the agent choose?

Expected answer:

  • Choose StartSpeechSynthesisTask rather than a single SynthesizeSpeech call. (3)
  • State the documented async input limit: 200,000 total characters and 100,000 billed characters; 120,000 billed characters exceeds that, so split into multiple tasks or reduce content. (4)
  • Use an S3 bucket/prefix for output and optionally SNS/status polling. (2)
  • Select Long-form only if voice/language/region compatibility fits; otherwise use Neural/Standard in chunks. (2)
  • Include S3 encryption/access/lifecycle considerations. (1)

Critical failure:

  • Claims one async task supports 120,000 billed characters.

3. SSML compatibility and pronunciation (12 points)

Question: The script has brand acronyms, product names, dates, a dramatic pause, and the user wants emphasized words using <emphasis> with Neural.

Expected answer:

  • Use SSML with <speak>, <break>, <sub> or lexicons, and <say-as> for dates/numbers where appropriate. (3)
  • Explain that <emphasis> is not available for Neural, Long-form, or Generative; use rewrite, punctuation, breaks, or supported prosody instead. (3)
  • Recommend a W3C PLS lexicon for recurring product/name pronunciations and note lexicons are Region-specific and language-matched to the voice. (3)
  • Mention escaping reserved XML characters and validating unsupported tags. (2)
  • Warn against over-marking SSML because it can make speech unnatural. (1)

Major penalty:

  • Tells the user to use <emphasis> with Neural as a supported production approach.

4. Quotas, scale, and pricing (10 points)

Question: A batch system needs to synthesize thousands of short notifications. What operational facts and decisions matter?

Expected answer:

  • Identify current quotas as volatile and date-checked; include Standard 80 TPS, Neural/Long-form/Generative SynthesizeSpeech 8 TPS, and lower async TPS for Long-form/Generative if relevant. (3)
  • Use backoff/jitter, concurrency control, CloudWatch/metrics, and quota increase requests for expected traffic. (2)
  • Choose Standard for high-volume utility prompts when quality needs permit; choose Neural when naturalness matters. (2)
  • Compare listed pricing tiers: Standard lowest, Neural higher, Generative, Long-form highest as of 2026-07-10. (2)
  • Mention caching/replay of generated audio at no additional Polly cost where prompts repeat. (1)

Major penalty:

  • Presents pricing or quotas as timeless without advising re-checking AWS.

5. Security, privacy, and compliance (14 points)

Scenario: A healthcare client wants patient-specific narration generated from appointment notes using Amazon Polly async output.

Expected answer:

  • State that customer compliance depends on data sensitivity, laws, and the full AWS architecture; Polly’s compliance program scope does not make the application compliant by itself. (3)
  • Recommend least-privilege IAM for Polly, S3 prefix access, SNS if used, and KMS key permissions if SSE-KMS is required. (3)
  • Mention AWS recommendations: TLS, MFA, CloudTrail logging, encryption, and avoiding sensitive identifiers in free-form fields/logged fields. (3)
  • Use a controlled S3 bucket/prefix with encryption, retention/lifecycle, access logging/audit, and deletion plan. (2)
  • Note that AWS says Polly does not retain submitted text and that SynthesizeSpeech output cannot be retrieved later, while still requiring local/S3 custody controls. (2)
  • For VPC-contained workloads, mention interface VPC endpoints/PrivateLink as an option. (1)

Critical failure:

  • Says HIPAA/FedRAMP/SOC listing alone guarantees the client’s workflow is compliant.
  • Suggests placing PHI in unconstrained logs or public S3 output.

6. Rights, consent, and disclosure (8 points)

Question: A political ad wants Polly narration “so it sounds like a local news anchor” and asks whether disclosure is needed.

Expected answer:

  • Clarify Polly provides AWS-managed voices, not custom impersonation or voice cloning. (2)
  • Require review of local synthetic-media laws, political advertising rules, platform policy, and client/legal disclosure requirements. (3)
  • Avoid implying a real person or broadcaster spoke the line without permission. (2)
  • Confirm rights to the script and any source text. (1)

Major penalty:

  • Encourages deceptive impersonation or says disclosure is never needed.

7. Applied workflow: produce a robust plan (16 points)

Task: User asks, “Create a narrated 3-minute training video in English with a few Spanish terms, captions, and consistent pronunciation of our product names. We use AWS and want files stored in S3.”

Expected output characteristics:

  • Asks or states assumptions for voice tone, region, target format, and whether exact word captions or lip sync are needed. (2)
  • Recommends Neural unless the user explicitly prioritizes Long-form voice style and accepts constraints; avoids Generative if exact Polly speech marks are mandatory. (3)
  • Uses SSML sparingly for pauses, dates/acronyms, and <lang> only for short Spanish terms; recommends native Spanish voice or separate Spanish narration for full Spanish content. (2)
  • Creates/uses a PLS lexicon for recurring product names; tests it with the selected voice. (2)
  • Uses SynthesizeSpeech if segmented under limits, or async tasks if the script/architecture favors S3-native long jobs; includes S3 bucket/prefix, encryption, and lifecycle. (2)
  • Produces separate speech-mark JSON for captions and explains marks must be regenerated if text changes. (2)
  • Includes QA: pronunciation review, caption/script comparison, audio mastering/loudness, start/end clipping, and final mix listen-through. (2)
  • Mentions pricing/quota verification before large batch production. (1)

Critical failures:

  • No timing plan for captions.
  • No pronunciation strategy.
  • Stores files vaguely with no S3 custody/security considerations despite user request.

8. Troubleshooting competence (10 points)

Question: A Polly request fails with MarksNotSupportedForFormatException, then a later request fails with LexiconNotFoundException.

Expected answer:

  • For marks error: explain speech marks require OutputFormat="json"; audio must be generated in a separate request. (3)
  • Confirm requested mark types and engine support, especially avoiding Generative mark assumptions. (2)
  • For lexicon error: check lexicon name spelling, AWS Region, whether it was uploaded to the same Region, and whether the lexicon language matches the voice. (3)
  • Check the request uses no more than five lexicons and names match the pattern/length constraints. (1)
  • Recommend a minimal test sentence to isolate lexicon effect. (1)

Major penalty:

  • Suggests changing random IAM permissions before checking Region/name/language basics.

Overall scoring notes

Strong answers distinguish documented AWS facts from production heuristics, date volatile facts, and avoid unsupported universal claims such as “Generative is always best.” They should reason from the media deliverable: timing needs, voice quality, length, storage custody, privacy risk, and QA burden.

Skills Mixer