AWS Logo
Menu
Build Pronuncation Games using Amazon Q CLI

Build Pronuncation Games using Amazon Q CLI

Leverage the capabilities of Amazon Q CLI to generate code for gaming

Published May 31, 2025

The Idea

Pronunciation Master, an AI-powered pronunciation practice game built with Python and Amazon Bedrock.

Building Blocks

  • Python & PyGame : For the game engine and graphics
  • Amazon Bedrock : AI that generates practice sentences
  • Speech Recognition : To check your pronunciation
  • Text-to-Speech : So you can hear how to say things correctly

Development Journey

Starting Out

  1. First, we sketched out how the game would work
  2. Built a basic UI with PyGame - buttons, text boxes, nothing fancy
  3. Got the speech recognition working so the game could "hear" you

Making It Smart

  1. Connected to Amazon Bedrock to generate sentences
  2. Created different difficulty levels with specific sounds to practice
  3. Added a scoring system to track progress
  4. Built a save/load feature so you don't lose your progress

Challenges We Faced

  • JSON Headaches: The AI sometimes returned weird formats we had to fix
  • Speech Recognition Quirks: Background noise made things tricky
  • UI Freezes: Had to use threading so the game wouldn't lag during audio

Making It Better

  1. Added rounded corners and better visuals
  2. Fixed text that was going outside the boxes
  3. Made error messages more helpful
  4. Added a cool logo image

Cool Features We Added

  • Dynamic Sentences: Every game session has new content
  • Pronunciation Tips: Specific help for tricky words
  • Auto Mode: The game listens and advances automatically
  • Progress Tracking: See how you're improving over time

What's Next?

  • More languages beyond English
  • Custom practice for specific accent challenges
  • Maybe a mobile version someday

Try It Yourself!

Just follow the setup instructions, grab a microphone, and start practicing. Your pronunciation will thank you!

Comments