Page 36 - 2501_KVS_C-4
P. 36
Step 3: “Text to Speech” extension, with three block of
instructions will be added to your project now. (As
shown in Fig. 3.3)
Step 4: Now you can use this extension in this project for
speaking of sprite, whichever you want.
Let’s understand this with an activity now.
Fig. 3.3
Activity 3.3
Add a sprite “Cat” in your project and then it will speak as well as say some
message, when we click on “Flag”..
Ans:
Step 1: Start Scratch, “cat” sprite is already added.
Step 2: Drag “when flag clicked” block from “Events” block in the script area.
Step 3: Add extension “Text to Speech” from “Choose an extension” window.
Step 4: Do the following coding under “when flag clicked” block in the script
area. (Shown in Fig. 3.4).
Step 5: When we click on the “flag”, then cat speaks as well as displays the
message in bubble also. (as shown in Fig. 3.5)
Fig. 3.4 Fig. 3.5
34 KVS DELHI REGION 2025

