Monday, November 10, 2014

Knowledge Database Entry



                                                          Making Text-To-Speech                     
 

Text-to-speech converts any word or sentence to audio speech from a robot. This will teach your how to use blocks in AI2 to turn an app’s text on screen into a speech engine. First create a variable with the initialize global variable to block with a text block. Use a call variable speak block to start it. Then add a join block joining a get variable block with 2 label text blocks.
Using the set texttospeech# pitch to block will change the speaker’s pitch when changed. Also using the set texttospeech# language to block will change the speaker’s language it speaks in if it is changed with the corresponding language code. You can find the language codes in the help link from the block.

No comments:

Post a Comment