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

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

Are you fascinated by voice assistants like Alexa or Siri? 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 learn step-by-step how to build a Scratch date and time project that uses text-to-speech, senses the system clock, and speaks just like a chatbot.

What You’ll Learn in This Scratch Voice Assistant Tutorial

  • How to use Text-to-Speech extension in Scratch
  • How to fetch and speak the current date and time
  • How to build an interactive assistant character
  • Voice settings (Alto, Tenor, Kitten, etc.)
  • Programming logic for Scratch AI assistant projects
  • Ways to enhance your Scratch chatbot project

Getting Started with Your Scratch AI Project

Before diving into code, make sure you have:

  • A Scratch account (or just visit scratch.mit.edu)
  • A stable internet connection
  • Curiosity to create something fun and futuristic!

Step 1: Set Up the Stage and Sprite

  1. Delete the default sprite (the cat).
  2. Click on “Choose a Backdrop”, search for “Jurassic”, and add it.
  3. Click on “Choose a Sprite”, search for “Character 2”, and select the Character2-F costume.
  4. Rename your sprite to “Ria” — your virtual assistant!
  5. Adjust her size to fit nicely on the screen.

Step 2: Add the Text-to-Speech Extension

  1. Click on the blue block icon (bottom left corner).
  2. Choose the “Text to Speech” extension.
  3. This will add new blocks like:
    • speak [Hello]
    • set voice to [Alto]

Step 3: Program Ria’s Greeting Using Text-to-Speech

Go to Events and drag when green flag clicked. Then build the following:

👉 Pro Tip: Use wait 0.5 seconds between blocks for smooth speech timing.

Step 4: Make Ria Respond When Clicked

Now, we want Ria to speak the current date and time when clicked.

Get the Current Date

Go to Sensing and use:

  • current [year]
  • current [month]
  • current [date]

Use the “join” operator block to format the date like MM/DD/YYYY.

Sample Script:

This joins the values and reads them out loud.

Step 5: Add Current Time Feature

Do the same for current time:

Use these blocks from Sensing:

  • current [hour]
  • current [minute]
  • current [second]

Format them using colons and “seconds”:

Combine Date & Time Script:

You now have a working virtual assistant in Scratch.

Customize Voice & Style

Explore different voices using:

Voice TypeDescription
AltoFemale assistant (default)
TenorMale voice
KittenMeow voice (funny!)
GiantDeep voice
SqueakCartoonish

You can use them to give personality to your Scratch chatbot project!

See It in Action

🎬 Watch Omaansh Aggarwal’s Scratch Virtual Assistant Project on YouTubeDate and Time Virtual Assistance using Text-to-Speech

This video tutorial demonstrates every step visually.

Enhancement Ideas for Your Scratch Smart Assistant

Want to take it to the next level? Here are some ideas:

1. Add Weather Updates

Use web-to-Scratch integrations like TurboWarp or Scratch Addons to fetch live weather via APIs.

2. Multi-Language Support

Use multiple “speak” blocks with different languages:

3. Ask and Respond (Mini Chatbot)

Use ask [What do you want to know?] and wait, then analyze answers using if/else conditions to respond accordingly.

4. Add Emojis & Visuals

Combine “say” with emojis to display cute messages on the screen.

5. Add Animation or Sound Effects

Use looks and sound blocks to animate your assistant or add intro music.

Why This Project Matters

Creating a Scratch AI assistant project empowers kids and beginners to:

  • Think creatively
  • Understand how voice assistants work
  • Apply programming to real-world scenarios
  • Boost confidence in coding

In fact, this Scratch project mimics real NLP (Natural Language Processing) at a very introductory level.

Final Thoughts

You’ve just built a mini-Alexa in Scratch using:

  • Text-to-speech
  • Live sensing
  • Voice configuration
  • Date-time logic
  • Interactive sprite clicking

If you loved this Scratch project,

  1. Don’t forget to check out the full video tutorial by Kodex Academy here: Scratch Project – Date and Time Virtual Assistance using Text-to-Speech by Omaansh Aggarwal
  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:

Stay updated with new content, free tutorials, and coding challenges!

Further Reading & Links

Recent Posts

How to Make a Math Racing Game in Scratch | Game Concepts and Complete Tutorial

In this tutorial, you’ll learn to build a Math Racing Game in Scratch. Players solve math problems to move their character forward; wrong answers benefit the opponent. It’s a race of speed, accuracy...

How to make Memory Skill Game in Scratch | Card Matching Game in Scratch – Part 2 | Step-by-Step Coding

In this tutorial you'll learn how to make memory skill game in Scratch / card matching game in Scratch. This is a great beginner‑to‑intermediate project for scratch tutorial game, scratch programming...

How to make a Card Matching Game in Scratch | Memory Skill Game in Scratch – Part 1 | Step-by-Step Coding

In this Scratch tutorial, we'll walk you through how to make a card matching game in Scratch, also known as a memory game or skill game. This is a popular beginner project that introduces essential...

Create a Quiz Game in Scratch | Spelling Test in Scratch | Picture Identification in Scratch

Want to make learning spelling fun, visual, and interactive? In this Scratch tutorial, you'll learn how to make a spelling quiz game in Scratch using picture identification, text-to-speech, and...

How to make a Double Jump Game in Scratch | Platformer game in Scratch | Step by Step Coding

How to make a Double Jump Game in Scratch. Scratch is a fantastic platform for beginners to learn programming by making games, animations, and interactive stories. Among the many kinds of games...

How to Use Variables in Scratch | Variable Blocks in Scratch | Complete Tutorial

Introduction: Variable Blocks in Scratch Whether you’re just getting started with Scratch programming or looking to take your projects to the next level, understanding variables and lists is...

How to Make Earth Revolve Around the Sun in Scratch: A Complete Tutorial & Enhancements

Animating Earth revolving around the Sun is a classic beginner/intermediate Scratch animation project. It combines trigonometry (sine & cosine), variables, loops, and visual scripting. Kids can learn...

How to Make a Game in Scratch | Snake Game in Scratch | Step-by-Step Game Coding

In this tutorial, we’ll build a Snake Grid style game in Scratch step by step (very similar to the Kodex Academy example). By doing this, you’ll cover many of the core Scratch building blocks. We will...

How to Use Operator Blocks in Scratch | Full Guide with Live Coding & Examples

One of the most powerful features in Scratch is its Operator Blocks — essential for handling math operations, logic comparisons, and string manipulations...

How to Create a Thirsty Crow Story in Scratch | Animation Story in Scratch for Kids

In this tutorial, you’ll learn how to create the classic “Thirsty Crow” story in Scratch, using simple animation, voice, and sprite actions. This is a perfect project for kids who are new to coding...

How to Create a Dodge Ball Game in Scratch: A Complete Step-by-Step Tutorial for Beginners

This step-by-step tutorial will guide you through how to create a Dodge Ball game in Scratch from scratch! In this game, you’ll control a character trying to dodge falling balls, earn points, and...

How to use Sensing Blocks in Scratch | Scratch programming for beginners | Live Coding with Examples

In today’s session, we’re diving deep into one of the most powerful features of Scratch — Sensing Blocks. These blocks allow your projects to interact with the world, detect touches, respond to...

Build an Egg Shooting Game in Scratch: Step-by-Step Coding | Complete Guide for Beginners

Learn how to create a fun, interactive shooting game in Scratch with this detailed tutorial inspired by classic arcade games. Perfect for kids and beginners looking to dive into Scratch programming!...

How to Make a Maze Game in Scratch | Step by Step Coding | Full Tutorial & Enhancements

Introduction: Why Build a Maze Game in Scratch? If you’re looking for a Scratch beginner project idea that’s fun, interactive, and educational, then building a maze game in Scratch is the...

Scratch Control Block Tutorial: Full Guide with Loops, Conditions, Cloning & Code Examples

“Control blocks” in Scratch are those blocks (from the Control category) that manage the flow of your script: when things happen, how many times they happen, making decisions, repeating actions...

How to Create a Car Racing Game in Scratch – Part 2 – Step-by-Step Coding

Welcome to your ultimate guide on how to make a car racing game in Scratch—a step‑by‑step tutorial. You'll learn Scratch game development techniques, see actual code blocks, and discover enhancements...

How to Make a Hurdle Jumping Game in Scratch – Build a Fun Hurdle Runner with Score & Win Screen

Are you ready to create your very own hurdle jumping game in Scratch—just like the iconic Chrome Dino or Super Mario? 🎮 Whether you're new to Scratch or just looking for your next fun project, this...

How to Create a Car Racing Game in Scratch – Part 1 – Step-by-Step Coding

In this Scratch car racing game tutorial, we’ll walk you through how to create a fully functional, visually exciting, and incredibly fun car racing game using Scratch. In this blog, we’ll cover: How...
Scroll to Top