Author Topic: New Here  (Read 24767 times)

0 Members and 2 Guests are viewing this topic.

danderson

  • Jr. Member
  • **
  • Posts: 38
  • Karma: 0
    • View Profile
Re: New Here
« Reply #30 on: September 03, 2014, 12:16:15 AM »
Hi Kalle  I had a question about denise and vox . to speak in chat with the dictation box minimized . I have been able to chat if the dictation box is focused but not min.

here's what I'm working with:



Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: New Here
« Reply #31 on: September 03, 2014, 05:07:46 AM »
Good catch Dan, this is the wrong function to chat with Denise :bonk, but you have also a missing part in the function at the end (&Text= is a part of the API function which is missing in your scrape action).
I have updated the tutorial.  http://voxcommando.com/forum/index.php?topic=1650.msg14800#msg14800


Away from the wrong API key issue above, you need no SendKeys action and also not open the chatbox - please change your command as following:

delete the sendkeys action and change the scrape action with this parameter - http://127.0.0.1:8000/Chat?function=ChatInput&Auth={M:botpass.botpass}&Text={1}

Thats all  ;)
« Last Edit: September 03, 2014, 07:20:12 AM by Kalle »
***********  get excited and make things  **********

danderson

  • Jr. Member
  • **
  • Posts: 38
  • Karma: 0
    • View Profile
Re: New Here
« Reply #32 on: September 03, 2014, 10:18:45 AM »
Thank you Kalle !!! , That works perfect . I had tried that  Text={1} , But had the function wrong . The guile sdk says function=AgentSpeakInChat . but what actually worked was  function= ChatInput . I'm curious how you knew this ?    I love this , now I'll experiment with sending AIML commands to denise this way

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: New Here
« Reply #33 on: September 03, 2014, 11:31:31 AM »
No problem   ;)

I knew this, because both of this functions are in the API described and only the ChatInput works. I do the mistake by copy and paste the wrong function from the API in to the tutorial and you have catch it - so thanks for that  ::bow

Kalle
***********  get excited and make things  **********

danderson

  • Jr. Member
  • **
  • Posts: 38
  • Karma: 0
    • View Profile
Re: New Here
« Reply #34 on: September 03, 2014, 07:09:03 PM »
but the API function in guile's SDK says :function AgentSpeakInChat(Text){
   return call('/Agent?function=AgentSpeakInChat&Auth='+AuthKey+'&Text='+encodeURIComponent(Text));

not chatinput  Where does it say ChatInput so I coud have found it?

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: New Here
« Reply #35 on: September 03, 2014, 07:55:20 PM »
Scroll a bit down in the SDK and you will find it  ;)
***********  get excited and make things  **********

danderson

  • Jr. Member
  • **
  • Posts: 38
  • Karma: 0
    • View Profile
Re: New Here
« Reply #36 on: September 04, 2014, 12:23:17 AM »
I'm so sorry for this but I can't find it ??????? :bonk here is my SDK





Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: New Here
« Reply #37 on: September 04, 2014, 07:56:21 AM »
take a look at code line 61 to 77 in your SDK file ::yikes

To bring up a bit light in the darkness:

The Agent?function=AgentSpeakInChat&Auth='+AuthKey+'&Text='+encodeURIComponent(Text) is not to chat with "Denise", it will only speak the sendet "Text" aloud and print it in the chatbox (described in the SDK). So we can say it is absolute similar to the "AgentSpeak" function and the difference is only that the text is printed in the chatbox.

The Chat?function=ChatInput&Auth='+AuthKey+'&Text='+Text is to Chat with "Denise" like as you type text in the chatbox and press return. So you are able with this chat function to let "Denise" things do like a search in the web. As example when you say: "tell me more about Phil Collins", Denise give you all the important information about Phil Collins back and speak it aloud. You can also say "play music" and Denise play all the music which she found in your music folder.
Tip: If you get back a long text from a websearch or Denise has read all the information which was interesting for you, so you can say "stop talking" to get "Denise" be quiet.  ;)
I've tested "stop talking" also to my wife, but it doesn't work  :biglaugh

Ok, I hope this clarify the difference between this two functions.
« Last Edit: September 04, 2014, 09:05:25 AM by Kalle »
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: New Here
« Reply #38 on: September 04, 2014, 10:53:15 AM »
There is a top-secret feature in most programs.  "Ctrl-F"

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: New Here
« Reply #39 on: September 04, 2014, 01:36:26 PM »
***********  get excited and make things  **********

danderson

  • Jr. Member
  • **
  • Posts: 38
  • Karma: 0
    • View Profile
Re: New Here
« Reply #40 on: September 06, 2014, 04:03:38 PM »
Hey that works pretty good!!! I was one of the 9 out of 10 that did not know that , thanks....

danderson

  • Jr. Member
  • **
  • Posts: 38
  • Karma: 0
    • View Profile
Re: New Here
« Reply #41 on: September 07, 2014, 02:15:16 PM »
Well ,I just thought I would let you know of my progress , I created a group with commands for google talk , I like this because it's free (no Skype credits to buy), this might be a good plug-in for vox

&feature=youtu.be

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: New Here
« Reply #42 on: September 07, 2014, 05:47:54 PM »
Looks good.  I don't think we need a plugin.  It seems to works fine as it is.

danderson

  • Jr. Member
  • **
  • Posts: 38
  • Karma: 0
    • View Profile
Re: New Here
« Reply #43 on: September 07, 2014, 07:59:55 PM »
Well maybe your right , but I was thinking of an easy to open GUI to keep contact names in and numbers, and easy to edit , instead of creating a new command for every new contact . that's what I have so far.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: New Here
« Reply #44 on: September 07, 2014, 08:47:53 PM »
You can keep your names and numbers in a payloadXML file.