Web Program D & Haptek Integration

  • 29 Replies
  • 16931 Views
*

cybertution

  • Roomba
  • *
  • 15
Web Program D & Haptek Integration
« on: October 09, 2008, 09:31:59 am »
Hi I am doing a web application where program D is the AIML engine and Haptek being the graphic interface. Is there a good way to integrate these 2 programs together so that the conversations will be speaked out by the haptek avatar?

I have also been trying to send user input by pressing 'enter' but it seems that the voice reply by the Haptek avatar does not sync and usually tend to delay by 1 answer or even just repeat the same answer? Is there a getaround or good solution for this? thanks.

*

Maviarab

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1231
  • What are you doing Dave?
    • The Celluloid Sage
Re: Web Program D & Haptek Integration
« Reply #1 on: October 09, 2008, 10:41:35 am »
Welcome to the forum Cyber...

Have removed this post from the ALICE section then it can be centralised and we can keep track of just the one topic as its more Haptek related :)

Can't help you myself unfortunatly (not really my field) but sure our resident AIML/Haptek guru's will be along later to answer your question.

Hope you enjoy your time here.

*

GT40

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1056
    • My Bots
Re: Web Program D & Haptek Integration
« Reply #2 on: October 09, 2008, 12:13:38 pm »

Hi cybertution! Linking (locally) an AIML brain to an Haptek character is a dream of mine, too. But because I'm not a guru (hi Mav!), I'm totally unable to do that. So I use Pandorabots (Program Z), lol.               

The plus:

- The brain is located in the computers of A.L.I.C.E. (Oakland, CA) and there is no comparison to our poor PCs (old or not). The answer is immediate with a broadband connection, despite the distance (in my case, Europe > California > Europe). :)

The minus:

- The same reason, lol. Sometimes they fail. Not a real problem, it's just an entertainment, but... sometimes they fail (very bad idea to use Pandorabots in a professional site). :(

That's why I'm interested in an answer to your question, too.

"There is no RL. Only AFK." (Jamie Jervil, resident of Second Life)

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6832
  • Mostly Harmless
Re: Web Program D & Haptek Integration
« Reply #3 on: October 09, 2008, 01:47:15 pm »
I've only worked on Progam E so I don't know either!  I do know a lot of people have used Program D and after Pandorabots it is probably the most popular so I would expect someone to give you an answer at some point.

*

cybertution

  • Roomba
  • *
  • 15
Re: Web Program D & Haptek Integration
« Reply #4 on: October 10, 2008, 04:47:07 am »
Thanks guys for your prompt replies

I have managed to link (locally) an AIML brain to an Haptek character. It is just that I need the whole integration to work properly & smoothly be it the question & answer part or the server side.

Now that I can get the Haptek bot to speak out ALICE response, i need to enable user to submit input by button(which i manage to do it properly) and pressing 'enter' (the better way to type and submit) which I have problem with syncing the response displayed and what the Haptek avatar speak despite using the same logic for both button and 'enter' button.

Any suggestions, solutions or other resources are appreciated, thanks

*

GT40

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1056
    • My Bots
Re: Web Program D & Haptek Integration
« Reply #5 on: October 10, 2008, 11:46:51 am »

Hello cybertution! Not sure it helps you, but I made a little "tutorial" after creating some bots. In fact, just the testimonial from a guy who wasted a lot of time before his Pandorabots work fine. ;D

http://knytetrypper.proboards19.com/index.cgi?action=display&board=pbot&thread=643&page=1

I am a poor programmer, so I only altered the "official" files found on KnyteTrypper's site, until the bot runs fine. All that is totally empirical and maybe bad looking, but it works... at least on Pandorabots. :)

"There is no RL. Only AFK." (Jamie Jervil, resident of Second Life)

*

Maviarab

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1231
  • What are you doing Dave?
    • The Celluloid Sage
Re: Web Program D & Haptek Integration
« Reply #6 on: October 10, 2008, 11:49:48 am »
Knyte knew how to do this if I recall correctly, cant seem to find the thread though at the moment, may not be in here at all but somewhere else..

Anyone else remember that topic...was it here or over at his site?

*

Maviarab

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1231
  • What are you doing Dave?
    • The Celluloid Sage
Re: Web Program D & Haptek Integration
« Reply #7 on: October 10, 2008, 11:50:41 am »
Thanks GT

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6832
  • Mostly Harmless
Re: Web Program D & Haptek Integration
« Reply #8 on: October 10, 2008, 11:57:01 am »
As far as I recall, Knytetryper only did a demo of Pandorabots and Haptek.  Could be wrong though, if I find anything I will post about it.

*

GT40

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1056
    • My Bots
Re: Web Program D & Haptek Integration
« Reply #9 on: October 10, 2008, 12:02:50 pm »

What I called "the official files":  ;)

http://knytetrypper.proboards19.com/index.cgi?board=pbot&action=display&thread=621

and elsewhere (very good site, too):

http://aidreams.co.uk/forum/index.php?topic=97.0  ;D

and also (Mark Chavez site changed from .com to .net):

http://clone3d.net/how_to.htm

« Last Edit: October 10, 2008, 05:57:10 pm by GT40 »
"There is no RL. Only AFK." (Jamie Jervil, resident of Second Life)

*

Maviarab

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1231
  • What are you doing Dave?
    • The Celluloid Sage
Re: Web Program D & Haptek Integration
« Reply #10 on: October 10, 2008, 01:27:57 pm »
Now how in the nine hells did I miss that post grrrr.....going back to bed lol :)

*

cybertution

  • Roomba
  • *
  • 15
Re: Web Program D & Haptek Integration
« Reply #11 on: October 13, 2008, 05:12:06 am »
hi GT40, after looking at ur links u provide for ur Meghan bot & tutorial from clone3D, I see a successful integration of Haptek & Pandorabots. In this case, the Haptek is the main page and the Pandorabot chat is embedded as iframe.

For my case of Haptek & web Program D, my web Program D which is a .jsp page is the main page while the Haptek page is embedded in a iframe. Thus I have to pass the ALICE reply after submitting input from Program D page to the Haptek page through a buffer value which may b the cause of voice sync problem.

How do I go about to modify my program so that it will work properly? How can I adapt the Haptek & Pandorabot example to my Haptek & web program D in this case?

*

GT40

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1056
    • My Bots
Re: Web Program D & Haptek Integration
« Reply #12 on: October 13, 2008, 03:43:37 pm »

Hi cybertution! As I wrote above, I'm not a programmer. Just playing a little with JavaScript and when it finally works, I stop changing anything (well known rule, lol). ;D

That's why I'm sorry to be unable to help you. I guess all the Pandorabots are made like that, but your method is totally different (and maybe better). About the lipsync, the <template context="tts"> tag seems to be very important.

I found this interesting thread (Freddy, you wrote "I don't know php", you must update your post ;)):

http://knytetrypper.proboards1.com/index.cgi?board=worikings&action=display&thread=1588

Maybe it'll help you.  :)

"There is no RL. Only AFK." (Jamie Jervil, resident of Second Life)

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6832
  • Mostly Harmless
Re: Web Program D & Haptek Integration
« Reply #13 on: October 13, 2008, 06:28:34 pm »
Quote
I found this interesting thread (Freddy, you wrote "I don't know php", you must update your post ):

Hehe, yes, that seems like a long time ago now.

*

cybertution

  • Roomba
  • *
  • 15
Re: Web Program D & Haptek Integration
« Reply #14 on: October 14, 2008, 04:33:37 am »
Saw this code snippet in the program e & Haptek example.

Code
<script language="javascript">
var elizaresponse= "<template context="tts"><response index="1"/></template>";

var hapA= "\\q2[s0=[";
var hapB= "]]";
function nadiaTalk(){
parent.SendText(hapA+elizaresponse+hapB);
}
nadiaTalk();
</script>

I believe this is the part which gets Haptek to speak out ALICE response so can anyone please guide me through this from how ALICE reply is retrieved to the part where it is sent to Haptek to be speaked out, thanks.

 


I want one!
by frankinstien (General Chat)
Today at 07:11:47 pm
Project Acuitas
by WriterOfMinds (General Project Discussion)
November 29, 2021, 05:31:57 am
java/kotlin to python
by yotamarker (AI Programming)
November 28, 2021, 07:23:54 pm
Dendrite Processing
by MagnusWootton (General Chat)
November 28, 2021, 03:01:28 pm
Nature's Halo deck?
by frankinstien (General Chat)
November 28, 2021, 01:09:53 am
Artificial God?
by MagnusWootton (General AI Discussion)
November 27, 2021, 10:07:54 pm
Concept Modeling
by infurl (General Project Discussion)
November 27, 2021, 12:25:28 am
Pattern based NLP
by MikeB (General Project Discussion)
November 26, 2021, 06:17:06 am
Real Self Replicating robots.
by frankinstien (AI News )
Today at 03:00:38 pm
ai websight that explains computer code
by frankinstien (AI News )
November 09, 2021, 01:05:20 am
$50,000.00!!!!!
by Don Patrick (AI News )
October 28, 2021, 04:29:41 pm

Users Online

80 Guests, 1 User
Users active in past 15 minutes:
ivan.moony
[Trusty Member]

Most Online Today: 99. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles