Hi,
you can change the menu questions in menuQuestionArray, the last parameter in alfredo.ini. You can include up to 5 questions there (currently 3 are set; if you want to add 2 more you also have to set fourthMenuItemWidth, fourthMenuItemHeight, fifthMenuItemWidth and fifthMenuItemHeight in the ini-file).
To change the sounds you first have to put your own mp3 files in the soundfiles directory. Be sure name your mp3 files using the fileNameTool (in the tools directory).Then change the AIML (alfredo.aiml in the aiml directory) and load the new AIML (point your browser to
http://www.yoursite.com/alfredo/src/admin/botloader.php). I'll give an example.
Say, you want your bot to say "I can't complain." when prompted "How are you?"
First, you're going to record an mp3 file which says "I can't complain."
Second, you're going to open the fileNameTool and put "I can't complain." in the botOutput field. Press Enter. In the fileNames field there appears: "i_can-t_complain-.mp3". That is the name you should give your mp3 file.
Third, you're going to include the following code in alfredo.aiml:
<category>
<pattern>HOW ARE YOU</pattern>
<template>
I can't complain.
</template>
</category>
IMPORTANT REMARK: the full stop "." at the end of "I can't complain." is important. If you don't include it in the AIML, Alfredo will look for an mp3 file called "i_can-t_complain.mp3". If you do include the final full stop in the AIML, Alfredo is going to look for "i_can-t_complain-.mp3" (Notice the "-" at the end).
Fourth, you're going to load the new AIML by pointing your browser to
http://www.yoursite.com/alfredo/src/admin/botloader.php (change "yoursite.com")
Last, you're going to generate an amplitude file called "i_can-t_complain.txt" with either WAveSurfer + the amplitudeConvertor (in the tools directory) or FlashAmp. Both methods are described in the docs. The amplitude file contains the parameters used for lip sync.
The current intro statement is generated by the following AIML code (in alfredo.aiml):
<category>
<pattern>HI</pattern>
<template>
Hullo, I'm Alfredo and my botmaster put me up for sale here.
</template>
</category>
and through setting the connectText parameter (at the beginning of alfredo.ini) to "hi" (=the AIML pattern above):
&connectText=hi&
So you either change the above AIML template to something else (and make an mp3 and amplitude file to go with it) or you make a whole new AIML category like:
<category>
<pattern>INTRO</pattern>
<template>
Welcome to The Bot Factory! I'm Jessica.
</template>
</category>
and set connectText in alfredo.ini to "intro".
You can change the bot's name with botDisplayName, the first parameter in alfredo.ini
With some browsers you have to delete your cookies and temporary internet files in order to see the changes take effect immediately. What works for me is opening and closing IE every time I want to see a change I made.
Hope this helps,
Ned