Build a Text-to-Speech Translator in Scratch (Supports 45+ Languages!) – Ultimate Guide

Build a Text-to-Speech Translator in Scratch (Supports 45+ Languages!) - Ultimate Guide

Introduction for Text-to-Speech Translator in Scratch

Have you ever wanted to build your own multilingual translator that can speak in different languages? With Scratch, you can! In this exciting project, we’ll guide you through building a Text-to-Speech Translator that can convert English to French, German, Spanish, and many other languages—all using Scratch’s extensions!

Whether you’re a beginner or a coding enthusiast, this tutorial will show you how to build an engaging, real-world application that teaches translation, text-to-speech (TTS), and user interaction.

What You’ll Build

An interactive Scratch app featuring a character named Abby who:

  • Translates user input from English into other languages (e.g., French, German)
  • Speaks the translation aloud in a selected voice
  • Displays the translated text visually
  • Supports more than 45 languages

Perfect for

  • Coding beginners
  • Young learners
  • Bilingual education
  • STEM classrooms

Step by Step Code to Build Text-to-Speech Translator in Scratch

Step 1: Setup – Sprite & Backdrop

📌 Setup – Sprite & Backdrop

  1. Delete the default Cat sprite.
  2. Add Abby as your translator sprite.
  3. Resize Abby to 140 for clarity.
  4. Add a backdrop: Select Colorful City or any theme you like.

Step 2: Add Extensions – Translate + Text-to-Speech

📌 Add Extensions – Translate + Text-to-Speech

Click the blue Extensions icon in the bottom-left corner of Scratch and add:

  • Translate Extension – to convert text from one language to another.
  • Text-to-Speech Extension – to make Abby speak the translated text aloud.

These blocks allow Scratch to:

  • Translate English into over 45 languages
  • Speak translations aloud with customizable voices

Step 3: Create a Variable

📌 Create Variable “translate”

  1. Go to Variables
  2. Create a variable named: translate

This variable stores the translated text and displays it on screen.

Step 4: Initializing Abby (Welcome Message)

📌 Initializing Abby (Welcome Message)

Here’s how to create a friendly introduction and prompt:

This sequence introduces Abby, resets the variable, and shows instructions to choose a language.

Step 5: Handle User Input (Press A or B)

📌 Handle User Input – Detecting Keypress

Key A → French Translation

Key B → German Translation

The above blocks:

  • Ask the user to type a sentence in English
  • Translate it using Scratch’s translate block
  • Speak it aloud in the selected language using Text-to-Speech

Don’t forget to enable the translate variable checkbox to see the translated text on screen!

Step 6: Customize the Voice (Optional)

📌 Customize the Voice – Enhancing Voice Output

You can change the voice using this block:

Try different voices for fun or clarity. For younger users, “Kitten” is a hit!

Demo in Action – French and German Translation

📌 Live Demo – French and German Translation

Example Input:

  • User types: Hello Abby
  • Presses A for French → Output: “Bonjour Abby”
  • Presses B for German → Output: “Hallo Abby”

The system speaks the translated sentence out loud.

Enhanced Features (Add-On Ideas)

📌 Enhanced Features – Extra Use Cases

Want to take it to the next level?

✅ Feature Ideas:

  • Add more key options (e.g., C for Spanish, D for Italian)
  • Store multiple translations in a list
  • Let users choose a voice from a drop-down
  • Add a flag icon for each language
  • Show original and translated text together
  • Include error handling if no input is given
  • Add a fun quiz mode for learning new words!

Languages Supported by Scratch’s Translate Extension

More than 45 languages are available including:

  • 🇫🇷 French
  • 🇩🇪 German
  • 🇪🇸 Spanish
  • 🇮🇹 Italian
  • 🇮🇳 Hindi
  • 🇨🇳 Chinese
  • 🇯🇵 Japanese
  • 🇷🇺 Russian
  • 🇰🇷 Korean
  • 🇹🇷 Turkish
    …and many more!

Final Thoughts

You’ve just built a fully functional language translator with voice support in Scratch! 🥳

This project teaches:

  • ✅ Event handling
  • ✅ Variable usage
  • ✅ Extension integration
  • ✅ Conditional logic
  • ✅ User interaction

🔁 Want to remix or expand the project? Try adding:

  • Dropdown menus
  • Custom vocabulary
  • Multiple voice styles
  • Quizzes for language learners

Call to Action

  1. Don’t forget to check out the full video tutorial by Kodex Academy here: Scratch – Text to Speech & Translator in 45+ Languages | Ultimate Guide – By Kodex Academy
  2. Like, comment & share the video
  3. Visit kodexacademy.com
  4. subscribe to the Kodex Academy YouTube channel for deeper Scratch content.

Happy coding with Kodex Academy! 🚀

Learn More with Kodex Academy

At Kodex Academy, we’re passionate about helping students learn coding in creative ways. This project teaches more than Scratch—it empowers young minds to build tools that work in the real world.

Explore more:

Recent Posts

Ultimate Scrolling Background & Character Animation | Step-by-Step Scratch Tutorial

we’ll walk you through one of the most exciting concepts in 2D game development: the scrolling background and character animation effect. This type of animation makes your game environment feel alive...

Scratch Virtual Piano Tutorial: Build Your Own Piano in Scratch (Music Extension)

Learn step-by-step how to build a colorful, interactive virtual piano using Scratch and the Music Extension. By the end of this post, you’ll know how to build a virtual piano Scratch project, create...

Build a Text-to-Speech Translator in Scratch (Supports 45+ Languages!) – Ultimate Guide

Have you ever wanted to build your own multilingual translator that can speak in different languages? With Scratch, you can! In this exciting project, we’ll guide you through building a Text-to-Speech...

Date and Time Virtual Assistance using Text-to-Speech: Create an Alexa-Like Smart Assistant Using Scratch

Do you want to build your own digital assistant in Scratch that can respond to voice commands and share the current date and time? In this comprehensive Scratch virtual assistant tutorial, you’ll...

Mastering Scratch Motion Blocks: A Complete Tutorial for Beginners and Game Developers

One of the most powerful and foundational aspects of Scratch programming is motion blocks—used for controlling sprite movements and building dynamic, interactive projects. Motion blocks are...

Build an Interactive Odd & Even Quiz Game in Scratch: A Step-by-Step Tutorial

In this Scratch quiz game tutorial, we'll build an engaging Odd & Even numbers quiz—a classic math quiz game in Scratch that’s perfect for beginners and educators alike. You’ll guide your players...

Create Amazing Sprite Looks with Looks Blocks: A Complete Guide to Visual Sprite Effects

The “Looks” blocks in Scratch are the secret sauce behind smooth costume changes, exciting visual effects, and immersive game environments. Whether you're just starting your Scratch coding projects or...

Build Your Own Scratch Painting App: A Fun Scratch Coding Tutorial for Kids

In this tutorial, we’ll walk you through creating a painting app in Scratch—a project that combines creativity, problem-solving, and interactive design. Using Scratch’s pen extension, you’ll build an...

Build a Fun “Bouncing Ball” Pong‑Style Game in Scratch – Step-by-Step Guide

Build a Fun "Bouncing Ball" Pong‑Style Game in Scratch - Step-by-Step Guide. This bouncing‑ball game combines fundamental elements: Motion & coordinate control, Sensing sprite overlaps, Variables for...

How to Make a Snowman Chase Snowflakes – Step by step Scratch Game Tutorial

Welcome to this interactive Scratch coding tutorial! If you’ve ever wanted to learn Scratch coding, build fun Scratch projects, and develop a Scratch game idea, there’s no better place to start than a...

Mastering Scratch Pen Blocks Tutorial: Draw Shapes in Scratch with Code

In this post, we'll explore how to use pen blocks in Scratch, demonstrate hands-on Scratch geometry project workshops, and empower you to draw shapes in Scratch using clean, loop-based code. Along...

How to Make a Star Trail Animation in Scratch – Easy Scratch Project Tutorial

In this detailed Scratch tutorial, you'll discover how to combine block programming logic, Scratch coding techniques, and creative flair to create animations in Scratch. By the end, you'll have a...

Build a Simple Calculator in Scratch – Step‑by‑Step Guide!

In this Scratch calculator tutorial, we take you from watching a quick demo to building a functional calculator in Scratch—complete with user prompts, number input, and basic arithmetic operations...

Even or Odd Number Finder – Scratch Game by Kodex Academy

The concept is simple but powerful. The game randomly shows numbers on the screen, and the player must decide whether the number is even or odd. They click the correct button (Even or Odd), and the...

Learn to Code with Eat Yummy Taco – A Fun Scratch Game for Kids

Get ready to dive into a deliciously engaging game that will tickle your taste buds and test your reflexes — all while learning how to code! “Eat Yummy Taco” is a beginner-friendly and fun Scratch...

How to Build an Interactive Hide and Seek Game in Scratch 3.0: A Beginner’s Guide by Kodex Academy

Every good game begins with a scene. In Scratch, this means choosing a backdrop and designing the space where the game happens. This section guides you through selecting or creating a background that...

My Blocks in Scratch Explained | A Complete Guide to Custom Blocks for Beginners (Scratch 3.0)

The My Blocks palette in Scratch is essentially your personal toolset. While the other palettes give you predefined blocks (like motion, looks, or sound), My Blocks allows you to create your own...

Understanding Block Programming: A Fun and Interactive Approach to Coding

One of the best ways to introduce kids to programming is through block programming, a method that simplifies coding concepts using visual blocks instead of writing complicated lines of code...
Scroll to Top