What's Part 3 all about?
In Part 3 of the tutorial we'll show you how to set up a
text to speech system so you can hear your bot talk. This uses the
Speaks for Itself plugin. If other people want to hear the bot talk they can download this plugin for themselves from your page - this only has to be done once and it only takes a minute or two,
Step 1: Fill in licensing form
Using the plugin on your site is free for non commercial use, but you first have to fill in their licensing form
here then click the
I accept the terms and Conditions button at the bottom of the page (if you agree with them of course!).
Step 2: Download speech plugin
Click here to go to the SpeaksForItself main page, then click on
Download SpeechPlugin
at the top left of the page.
On the new screen, enter your
name and
email address then click on the
Download SpeechPlugin button and follow the instructions on the next screens until the process is complete.
Step 3: Setting up your new page
Once you have received your licence from SpeaksForItself (ours took about 48 hours to arrive by email) you're ready to set up your talking bot page on your site. We've already set up a basic page for you which:
- includes the SpeaksForItself script and images
- loads the bot world you created in Part 1 and Part 2 of this tutorial
- sends the output from your bot to the SpeaksForItself plugin so you can hear it speak
Download the files for this
here.
Unzip the files and upload all of them to your bot directory. The file
base.js is a different version of the file you uploaded in the first tutorial. Delete the old one before uploading this new version, or simply overwrite it when prompted by your FTP program.
To access your speaking bot visit the page
botframe.htm in your bot's directory on your site e.g.
www.yoursite.com/bot/botframe.htm
You should now be able hear your bot speak any answers he gives as well as display them in the chat window.