Lesson goal: Make the computer speak with different speeds

Previous: Speaking text with different voices | Home | Next: Speaking numbers properly

So you know how to make the computer talk, right? In our last say function, called say2 you can change the speed at which the computer talks. Speed likes 0.1 are very slow, where a speed of 3 would be very fast. A speed of 1 is normal. Other numbers are possible too.

We have a function called say2 that works like this:

say2("your message here",voice,speed)
Move the mouse over a dotted box for more information.

Now you try. Use the say2 statement and have the computer speak some messages. Try say2("hello",0,.1) if you want.

Type your code here:

See your results here:

Show a friend, family member, or teacher what you've done!

Here is a share link to your code:

Does your code work? Want to run it on your iPhone?

Here's your code:

  1. Use [Control]-[C] (Windows) or [⌘]-[C] (MacOS) to copy your code.

  2. Paste it using [Control]-[V] (Windows) or [⌘]-[V] (MacOS) into this page

  3. Then click the "Use on iPhone" button that you'll see.