Customization
Welcome, Guest. Please login or register.
November 20, 2008, 02:33:32 PM
Home Help Search Login Register

+  Support Forum
|-+  Alfredo
| |-+  Customization
| | |-+  Customization
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Customization  (Read 3057 times)
skydiver
Newbie
*
Posts: 3



View Profile
Customization
« on: July 25, 2005, 04:46:12 PM »

Hi

i have Alfredo working, as it does on this site. but the customization documents confuse me.

i have downloaded all applications listed in the doc and tried to use them in the hope things would become clear.

Any chance i could get some assistance.

i would like to change the questions listed on the Alfredo page that is displayed.

i would like to change the sounds played for questions

i would like to change the intro statement made by alfredo

i would like to change Alfredo's name


Thanks for any assistance offered.
Logged
botmaster
Administrator
Newbie
*****
Posts: 28



View Profile Email
Re: Customization
« Reply #1 on: July 26, 2005, 03:55:11 PM »

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:
Code:
<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):

Code:
<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:

Code:
<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
« Last Edit: July 26, 2005, 04:33:43 PM by botmaster » Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length
Support Forum | Powered by SMF 1.1 Beta 3 Public.
© 2001-2005, Lewis Media. All Rights Reserved.