Apply your knowledge to build something amazing!
Time needed: 45-60 minutes
Ready to build something amazing? Today you're going to create your very own Pronunciation Guide app that can speak in different accents!
Watch this video to see the magic in action! :sparkles:
Imagine having a personal language teacher in your pocket! Your Pronunciation Guide app will:
By the end of this project, you'll have:
Fun ways to use your Pronunciation Guide:
Here's your toolkit for today's project:
Sample UI | Components You'll Use |
---|---|
![]() |
Layouts: • Vertical Arrangement • Horizontal Arrangement Visible components: • Labels • Text box • Buttons Non-visible components: • Speech Recognizer • Text-to-speech |
Time to bring your Pronunciation Guide to life! We'll program 3 magical buttons that each do something special.
Let's make your app listen to YOU!
What this button does: When you tap it, your phone starts listening and turns your voice into text.
Make the Mic button clickable:
when Mic.Click
blockCapture the speech:
when SpeechRecognizer.AfterGettingText
blockStuck? Remember: First the button starts listening, then the speech recognizer captures what you said!
Time to make your app speak with an American accent!
What this button does: Reads the text in your textbox with an American voice.
Set up the American voice:
when US_Button.Click
blockAdd smart checking:
if-then-else
block to check if the textbox has textCool fact: American English says "zee" for the letter Z, while British says "zed"!
Let's add a British accent to your app!
What this button does: Same as the US button, but with a fancy British accent!
Set up the British voice:
when UK_Button.Click
blockAdd the same smart checking:
Try this: Type "water" and listen to how differently the US and UK buttons say it!
Level up your app with these cool features:
You've just built an AMAZING pronunciation guide! Here's how to share it:
You did it! You've created an app that:
You're not just a student anymore - you're an app developer who made something that helps people learn languages!
If you're using Bluestacks emulator, follow these steps to enable text-to-speech and speech recognition:
Want to explore more accents and languages?
Ready for your next adventure? In the next project, you'll create even more amazing apps that combine everything you've learned! Keep coding, keep creating, and keep being AWESOME! :rocket: