Extension—Text to Speech

With the Text to Speech extension, you can enable your sprite to read texts out loud.

Add the Text to Speech extension

1. Click the Sprites tab and click + extension at the bottom of the Blocks area.

1596678324368-09d85f7e-60ff-4c06-b35c-189b1765b5bc.png

2. On the Extension center page that appears, click + Add at the bottom of Text to Speech.

image.png

After being added, the extension and its blocks are displayed in the Blocks area.

1596707762965-d89914af-092c-41f7-8a57-3c57b3f71af3.png

Enable Panda to Read a Poem

1. Drag the blocks set voice to ( ) and set language to ( ) to the Scripts area, and set the voice to alto and language to English.

1596707591417-c8ce4982-0639-4e9a-b77c-8a2a73c3ebc1.png

2. Drag the block speak ( ) to the Scripts area and enter the content to be read.

1596707592472-2e5336e2-4330-4a88-b13c-e13e3ae4d04a.png

3. Drag the Control block wait ( ) seconds to the Scripts area to add pauses for the reading.

1596707591138-0e01f552-7b29-42a8-9c47-71cfc2a475de.png

4. After completing the script, turn on the speaker, press the space key, and see what happens.

Was this article helpful?
2 out of 2 found this helpful

Comments

0 comments

Please sign in to leave a comment.