Web Program D & Haptek Integration

  • 29 Replies
  • 19137 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
  • *
  • 6855
  • 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
  • *
  • 6855
  • 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
  • *
  • 6855
  • 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.

 


OpenAI Speech-to-Speech Reasoning Demo
by ivan.moony (AI News )
March 28, 2024, 01:31:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am
Nvidia Hype
by 8pla.net (AI News )
December 06, 2023, 10:04:52 pm
How will the OpenAI CEO being Fired affect ChatGPT?
by 8pla.net (AI News )
December 06, 2023, 09:54:25 pm
Independent AI sovereignties
by WriterOfMinds (AI News )
November 08, 2023, 04:51:21 am
LLaMA2 Meta's chatbot released
by 8pla.net (AI News )
October 18, 2023, 11:41:21 pm

Users Online

334 Guests, 0 Users

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

Articles