Web Program D & Haptek Integration

  • 29 Replies
  • 21649 Views
*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6860
  • Mostly Harmless
Re: Web Program D & Haptek Integration
« Reply #15 on: October 14, 2008, 11:12:16 am »
elizaresponse is the reply from the bot, in this case using the reply history made by KnyteTrypper.

the vars HapA and HapB are parts of the haptek command that are used to build the full command.

SendText is a haptek javascript command, used to send text to the player.

nadiaTalk() simply calls that function when the form loads.

So if the bot said "Yes it is a nice day." :

elizaresponse = "Yes it is a nice day."

parent.Sendtext = parent.Sendtext(\\q2[s0=[Yes it is a nice day.]])




*

cybertution

  • Roomba
  • *
  • 15
Re: Web Program D & Haptek Integration
« Reply #16 on: October 16, 2008, 03:09:56 am »
can you explain about this line of code

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

What doe the "template context" refer to in this case? Is it a default definition or used-defined tag?

For the last line of code

Code
parent.Sendtext = parent.Sendtext(\\q2[s0=[Yes it is a nice day.]])

"parent.Sendtext" is used to send text back to the Haptek player? So in this case we are sending reply back to the parent page for it to be speaked out. What about the case we are trying to send from parent to child page?

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6860
  • Mostly Harmless
Re: Web Program D & Haptek Integration
« Reply #17 on: October 16, 2008, 11:08:02 am »
I'm not sure about the template tag, it might be a custom thing for pandoarabots.  I can't be sure how that works, javascript is not my strong point.

Same goes for the parent.SendText, I am not sure, but you should be able to refer to the object by using it's name.  This page might help:

http://www.howtocreate.co.uk/tutorials/javascript/javascriptobject

or this one:

http://www.infimum.dk/HTML/JSwindows.html

Got to go out now, but will take a look again later.  You might want to try searching the web for basic javascript useage.
« Last Edit: October 16, 2008, 11:23:12 am by Freddy »

*

GT40

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1056
    • My Bots
Re: Web Program D & Haptek Integration
« Reply #18 on: October 16, 2008, 05:45:32 pm »

I thought the <template context="tts"> was important but I tried a simple <template> on a bot of mine. Not any change, the lipsync works fine too.  :D

Found this (jesusarmy's post): http://www.vrconsulting.it/vhf/topic.asp?TOPIC_ID=113

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

*

cybertution

  • Roomba
  • *
  • 15
Re: Web Program D & Haptek Integration
« Reply #19 on: February 20, 2009, 07:14:24 am »
I have managed to insert html link in my aiml file but my Haptek avatar will speak out the code. Is there any workaround so that only the text is spoken out while the html code is ignored by the aiml engine?

*

GT40

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1056
    • My Bots
Re: Web Program D & Haptek Integration
« Reply #20 on: February 20, 2009, 05:46:02 pm »

Hi cybertution.

With Pandorabots, HTML lines and also Haptek commands, embedded in the AIML code, are usually not spoken by the bot. But it's not the same thing if you try to add JavaScript in it, <think> or not <think>, lol. Maybe Program D is very different?

<category>
<pattern>SITE</pattern>
<template>
<font color="black">
\\SetSwitch [switch= lookleft state= e]
\\SetSwitch [switch= lookdown state= e]
<#br />
</font>
Please click here: it's <#a href="http://gt40.chez-alice.fr/Haptek/MyBots.htm" target="_blank">GT40<#/a>'s site.
</template>
</category>

PLEASE DELETE THE THREE "#" YOU CAN FIND IN THE CODE ABOVE. I put them to avoid some anomalies in the post.

You can check it with Meghan (if Pandorabots is not down!) at

http://www.pandorabots.com/pandora/talk?botid=a814d6c1ce361ff9

Just type "site". Of course it's an example and she can say some more very interesting things... ;D

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

*

GT40

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1056
    • My Bots
Re: Web Program D & Haptek Integration
« Reply #21 on: February 23, 2009, 12:37:58 pm »

Oh, by the way, Nirosha doesn't like that.  :)

http://aidreams.co.uk/forum/index.php?topic=2566.0

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

*

cybertution

  • Roomba
  • *
  • 15
Re: Web Program D & Haptek Integration
« Reply #22 on: March 02, 2009, 07:18:29 am »
GT40, I have tested your Meghan with the input 'site' and that the avatar just speak the text link without the code, do you how to implement this on program d?

In program d, the way I insert a html link to work is as follows:

Code
<html:a href="http://www.google.com" target="_blank">google</html:a>

I have to put the html tag or else it won't work. As a result, it will speak out some codes and the whole link address. Ideally I just want the html link to execute without any text showing up or avatar speaking anything.

*

GT40

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1056
    • My Bots
Re: Web Program D & Haptek Integration
« Reply #23 on: March 02, 2009, 03:45:40 pm »

Infortunately, cybertution, as you can see, I don't know Program D. With Pandorabots, your code for the template line becomes ("normal" HTML):

Code
<a href="http://www.google.com" target="_blank">Google</a>

If you ask "google" to Meghan:

- She says "Google" (and never shuts up, lol)
- She writes "Google"
- The link is valid but must be clicked

Of course, all this is not what you wish to get. Maybe on AI Nexus?

And oops, thank you for indirectly teaching me how to insert codes in AI Dreams posts. Never tried this before. Senior member but total newbie. :)
"There is no RL. Only AFK." (Jamie Jervil, resident of Second Life)

*

cybertution

  • Roomba
  • *
  • 15
Re: Web Program D & Haptek Integration
« Reply #24 on: March 03, 2009, 06:27:48 am »
Pandorabots is a gd aiml bot hosting site, here i am trying create a simplified version with Haptek as the interface.

Though program D is one of the best aiml interpreters around, there is limited documentation and technical issues to resolve before it can come close to pandorabots.

Seems that I have to search around and wait for other program d experts to reply, anyway thanks for your info (u r one of the experts here too :) )

I have 2 more aiml questions here

  • Can you input special symbols like "-" etc for patterns? seems that only text inputs are allowed in the pattern input
  • is there any way for alice to remember things like last conversation? can one actually program some memory features with alice?

Thanks once again for any info provided.

*

GT40

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1056
    • My Bots
Re: Web Program D & Haptek Integration
« Reply #25 on: March 03, 2009, 04:57:10 pm »

Thanks cybertution. But the 2 or 3 real experts in AIML are on AI Nexus, lol. Your project is very interesting and I hope they'll help you. Maybe you could try this (it's not really a forum):

http://www.nabble.com/Pandorabots-general-f14519.html

About your questions:

1- Just an example: "hard-drive" doesn't exist in knowledge.aiml.

- Humain: What is a hard-drive?
- Meghan: A disk drive is where we store information.

It's the template for "what is a hard drive"...


2- When you say goodbye to a Pandorabot, then he/she forgets all about your conversation. Alzheimer?

Of course the botmaster can read the logs and create customized categories, giving to some "customers" the impression that the bot remembers them. Clients love this... ;D

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

*

cybertution

  • Roomba
  • *
  • 15
Re: Web Program D & Haptek Integration
« Reply #26 on: March 04, 2009, 03:18:30 am »
ya folks @ AI Nexus are helpful too so currently i am posting and sharing stuffs there and here, virtual human forum side also not bad.

About my questions:

1. Do u mean tat symbols like "-" or keyword like "brother's" is accepted? so i can put a pattern like 'cross-section' and it will output to the corresponding template?

2.How can I get access to the conversation logs and to create custom aiml tags myself to give bot some extra customization?


*

GT40

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1056
    • My Bots
Re: Web Program D & Haptek Integration
« Reply #27 on: March 04, 2009, 01:09:41 pm »

1- Yes we can, lol. I mean, I hope so. Then "reductionism" do its job and answers are sometimes amazing. But trying and testing is the best part of the game, isn't it? ;)

2- When you have a bot on Pandorabots, you can do this and more. All is well explained.

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

*

cybertution

  • Roomba
  • *
  • 15
Re: Web Program D & Haptek Integration
« Reply #28 on: August 23, 2010, 09:10:47 am »
Hi I have managed to integrate program D with Haptek, the 3D avatar interface, but have problem with the text to speech feature of Haptek. I have included html in my aiml answers and thus need to include the necessary xml header tags in my aiml document. The Haptek is speaking out the header urls, in particular this line "xmlns="http://alicebot.org/2001/AIML-1.0.1" whenever it encounters a html tag. It is working in most computers and i was thinking if it is related to the haptek plugin, browser (ie 8 in this case) or something to do with HTML parsing.

I am using the same version of internet explorer 8 on 2 different pcs and one of them works and the other does not, I have also tried reinstalling the haptek plugin and still does not work. when I integrate haptek with the aiml interpreter Program D, the haptek text to speech speaks out the html headers as well as tags and urls, is there a way to filter the tts spoken by haptek? Could it be due to some config I need to make to haptek tts or javascript so it will treat html tags as markup and not text to be spoken?

Thank you for attention and help.

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6860
  • Mostly Harmless
Re: Web Program D & Haptek Integration
« Reply #29 on: August 23, 2010, 02:35:25 pm »
To me it seems like you need to separate screen output from TTS output.  Then you can strip the HTML from the TTS part before it gets sent to the TTS engine.

You want to be looking on google for things like this :

http://www.google.com/search?q=javascript+strip+html

 


Requirements for functional equivalence to conscious processing?
by DaltonG (General AI Discussion)
November 19, 2024, 11:56:05 am
Will LLMs ever learn what is ... is?
by HS (Future of AI)
November 10, 2024, 06:28:10 pm
Who's the AI?
by frankinstien (Future of AI)
November 04, 2024, 05:45:05 am
Project Acuitas
by WriterOfMinds (General Project Discussion)
October 27, 2024, 09:17:10 pm
Ai improving AI
by infurl (AI Programming)
October 19, 2024, 03:43:29 am
Atronach's Eye
by WriterOfMinds (Home Made Robots)
October 13, 2024, 09:52:42 pm
Running local AI models
by spydaz (AI Programming)
October 07, 2024, 09:00:53 am
Hi IM BAA---AAACK!!
by MagnusWootton (Home Made Robots)
September 16, 2024, 09:49:10 pm
LLaMA2 Meta's chatbot released
by spydaz (AI News )
August 24, 2024, 02:58:36 pm
ollama and llama3
by spydaz (AI News )
August 24, 2024, 02:55:13 pm
AI controlled F-16, for real!
by frankinstien (AI News )
June 15, 2024, 05:40:28 am
Open AI GPT-4o - audio, vision, text combined reasoning
by MikeB (AI News )
May 14, 2024, 05:46:48 am
OpenAI Speech-to-Speech Reasoning Demo
by MikeB (AI News )
March 31, 2024, 01:00: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

Users Online

325 Guests, 0 Users

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

Articles