Question about Chatscript engine.

  • 38 Replies
  • 11770 Views
*

Bragi

  • Trusty Member
  • ********
  • Replicant
  • *
  • 564
    • Neural network design blog
Re: Question about Chatscript engine.
« Reply #30 on: July 16, 2011, 01:18:51 pm »
My bad, I was mixing the interop problems with the speechlib issue. Otherwise I would have asked why not use the .net versions?

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6485
  • Mostly Harmless
Re: Question about Chatscript engine.
« Reply #31 on: July 16, 2011, 05:30:02 pm »
OK well I seem to to be doing something right.  I picked out the server connection part from your script Dave thanks.

I'm getting a response from the bot and that is 'I don't know what to say'...

I think that's it isn't it ?  Are there any bots yet we can load up ?

*

DaveMorton

  • Trusty Member
  • ********
  • Replicant
  • *
  • 636
  • Safe, Reliable Insanity, Since 1961
    • Geek Cave Creations
Re: Question about Chatscript engine.
« Reply #32 on: July 16, 2011, 05:32:42 pm »
You may want to ask Bruce. I have a minimal bot file for Morti, that covers some of the rudimentary stuff, but I haven't delved into it all that much yet. More irons in the fire than I care to admit.

If you like, I'll zip them up, and email them to you.
Comforting the Disturbed, Disturbing the Comfortable
Chat with Morti!
LinkedIn Profile
CAPTCHA4us

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6485
  • Mostly Harmless
Re: Question about Chatscript engine.
« Reply #33 on: July 16, 2011, 05:51:56 pm »
To be honest at the moment I wouldn't know what to do with them.

Is there a difference between the bot harry in the exe and the server one ?

I mean for example, if I ask Harry (exe) 'What is your name ?', he replies my name is Harry.

Yet on the server version it says 'I don't know what to say'.

Presumably I am missing moving files to some place - probably the LIVEDATA folder yes ?

Probably should read the manual  :idiot2:

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6485
  • Mostly Harmless
Re: Question about Chatscript engine.
« Reply #34 on: July 16, 2011, 06:41:22 pm »
This is a bit daft, but how do you import SpeechLib ?

I did it the other day, but for the life of me I cannot figure out how to do it now.  :tickedoff:

*

DaveMorton

  • Trusty Member
  • ********
  • Replicant
  • *
  • 636
  • Safe, Reliable Insanity, Since 1961
    • Geek Cave Creations
Re: Question about Chatscript engine.
« Reply #35 on: July 16, 2011, 06:50:25 pm »
Look in %programFiles% (both _X86 and _X64) for SAPI5.dll, and add the file as a reference. Then place at the beginning of the class declaration for your main form, "Imports SpeechLib". That should take care of it.

At least, That's what I did. :)
Comforting the Disturbed, Disturbing the Comfortable
Chat with Morti!
LinkedIn Profile
CAPTCHA4us

*

DaveMorton

  • Trusty Member
  • ********
  • Replicant
  • *
  • 636
  • Safe, Reliable Insanity, Since 1961
    • Geek Cave Creations
Re: Question about Chatscript engine.
« Reply #36 on: July 16, 2011, 06:54:00 pm »
Oops? I lied. Do an advanced search on your computer for *SpeechLib.dll - and add that file as a reference. SAPI5.dll was an earlier (failed) attempt at making SR and TTS work. Sorry. :)
Comforting the Disturbed, Disturbing the Comfortable
Chat with Morti!
LinkedIn Profile
CAPTCHA4us

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6485
  • Mostly Harmless
Re: Question about Chatscript engine.
« Reply #37 on: July 16, 2011, 07:02:00 pm »
Ahh...well I think it's changed maybe, not sure to be honest, that must be the way i did it before and I found the dll, but I swear it did that automagically before somehow  :-\

I managed to find that sapi.dll exists.  Under references on my system it comes up as Microsoft Speech Object Library, and then when you click okay to add it it appears in the solution explorer as 'Interop.SpeechLib'

So something changed somewhere.  It appears to work okay anyway.

I so wish the add references section had a search function, it's full of stuff and you can easily miss things like I did.  :knuppel2:

*

DaveMorton

  • Trusty Member
  • ********
  • Replicant
  • *
  • 636
  • Safe, Reliable Insanity, Since 1961
    • Geek Cave Creations
Re: Question about Chatscript engine.
« Reply #38 on: July 16, 2011, 07:47:22 pm »
That's been my experience, as well, so don't feel bad. I usually get done what I need to, though. :)
Comforting the Disturbed, Disturbing the Comfortable
Chat with Morti!
LinkedIn Profile
CAPTCHA4us

 


Users Online

39 Guests, 0 Users

Most Online Today: 86. Most Online Ever: 208 (August 27, 2008, 09:36:30 am)

Articles