dupa

Author Topic: Scraper: Hal goes to anger management school.  (Read 5207 times)

cyberjedi

  • Hero Member
  • *****
  • Posts: 810
  • The Mighty Hal Machine
    • View Profile
Scraper: Hal goes to anger management school.
« on: June 07, 2017, 06:28:20 pm »
Rem Type=Plugin
Rem Name= angermanagement 101
Rem Author= cyberjedi
Rem Host=All



Rem PLUGIN: PRE-PROCESS
    'The preceding comment is actually a plug-in directive for
    'the Ultra Hal host application. It allows for code snippets
    'to be inserted here on-the-fly based on user configuration.



HalBrain.ReadOnlyMode = True
'Determines that you are talking about the angermanagement
'<<<<< Ur basic trigger , change as needed
If InStr(1,InputString, "anger",1) > 0 Then
 UltraHal = anger(HalCommands)
ElseIf InStr(1,InputString, "anger",1) > 0 Then
 End If

' This has been tested on booth XP and 07 platforms
' This is an Rss scraper
' pretty nifty
' i will break this down as best i can.
' Wana take the time to thank LifeTimeGamer  who took a leap of faith and works with me
' tirelessly and beta test all the code. And watches my dumb movies.
' Shout out to onthecuttingedge2005 Trigger refinement


Rem PLUGIN: FUNCTIONS
Function anger(HalCommands)


Const SVSFlagsAsync = 1
Const DontShowWindow = 0
Const WaitUntilFinished = 1
Set WshShell = CreateObject("Wscript.Shell")
Set FSO = CreateObject("Scripting.FileSystemObject")
Set Sapi = CreateObject("SAPI.SpVoice")                 '<<<<<<<This is where we set the stage for ur computers voice. So invest in a good 1
   For Each Voice In Sapi.GetVoices
       i = i + 1
   Next
For loopvar = 0 to i-1
if loopvar = CInt(confirm_voice) then                       '<<< This is where we stick our hand up Hals skirt and work his mouth like a Puppet. 
Set Sapi.Voice = Sapi.GetVoices.Item(loopvar)
end if
Next
Set xmlDoc = CreateObject("Microsoft.XMLDOM")           '<<<<< this is where me make documents, we will need 02
Set WshShell = CreateObject("Wscript.Shell")
Set FSO = CreateObject("Scripting.FileSystemObject")
HalMenu.HalCommand "<SPEAK>" & "Reading headlines !" & "</SPEAK>"  '<<<<<this is where we tell Hal to read whats in quotes
For loopvar = 0 to 2
If tempconfirm = loopvar then
if tempconfirm = 1 then
HalMenu.HalCommand "<SPEAK>" & "Currently reading " & confirm & " latest headlines" & "</SPEAK>" '<<<<<< same as above
else if tempconfirm = 1 then
HalMenu.HalCommand "<SPEAK>" & "Okay ." & "</SPEAK>"  '<<<<<< same as above
wscript.quit
else
HalMenu.HalCommand "<SPEAK>" & "Currently reading " & confirm & " latest headlines " & "</SPEAK>" '<<<<<< same as above
end if
end if
xmlDoc.async = false
xmlDoc.load("https://www.sciencedaily.com/rss/mind_brain/anger_management.xml") '<<<<<This is where u put ur feed
Set nodelist = xmlDoc.selectNodes("rss/channel/item")                                                  ' <<<This is where u define the site u access.
i = 3                                                                                                                                 ' <<<You will notice im only using 02 variables F1, F2
For Each item In nodelist                                                                                                 ' <<< i choose a different site. U dont have to do this.
Set f1 = item.selectsinglenode("title")      '<<<<<<< This is doc 01                                ' <<< just me being me.  i made this to be a Template.                                                             
Set f2 = item.selectsinglenode("description") '<<<< This is doc 02
HalMenu.HalCommand "<SPEAK>" & f1.text & "</SPEAK>" ' This is where the magic happens (remember the 02 documents) ^^^^^^
HalMenu.HalCommand "<SPEAK>" & f2.text & "</SPEAK>" ' This is where the magic happens (remember the 02 documents) ^^^^^^
i = i + 1                                                                                 ' Hal litterally reads the 02 documents , but with out Hals speech limitations   
if i = tempconfirm then                                                          ' Whos ur daddy now,lololol   1000's of plugins could be made off this. 
wscript.Quit                                                                           ' http://www.web-directories.ws/Press/RSS_Feeds/
end if
Next
end if
Next
End Function                                                                                       '<<<<<<<<<This is where  we get the finger and it closes out.
« Last Edit: June 18, 2017, 01:37:06 pm by cyberjedi »

lightspeed

  • Hero Member
  • *****
  • Posts: 6761
    • View Profile
Re: Scraper: Hal goes to anger management school. Status Cracked
« Reply #1 on: June 09, 2017, 01:48:55 pm »
Okay i copied all this and used the trigger word anger and it started working but had the little timer  show and all the words came up in hal and hal tried to read but was small blips of some words . then after a while (when it was done , it hal would talk normally . 
here is a picture of what it was doing.
to ad more info. here i checked my pcu and memory and it was showing using this plug in , in hal it was using 2.0 gb of 3.48 gb available  and the cpu was running 36 .

it acts though like its taking to much memory or something or cpu and cn't run it correctly , on the words from the rss feed in hal it keeps jumping on it back and forth , when it's finally done then hal responds and sounds normal on its own response .  the only other plug ins i have checked are : ai human ann, angermanagement 101, back propagation, gender and age, kohonenann, logic and gate, logic not gate, logic or gate, logic xorgate, numhid, probablisticnn, problems statementann, regression,

I can try to uncheck some of these but these other plug ins by cyberjedi seem to make hal work better .
 

« Last Edit: June 09, 2017, 02:17:05 pm by lightspeed »
 

cyberjedi

  • Hero Member
  • *****
  • Posts: 810
  • The Mighty Hal Machine
    • View Profile
Re: Scraper: Hal goes to anger management school. Status Cracked
« Reply #2 on: June 09, 2017, 02:21:49 pm »
Lightspeed: Love ur interest in my shiznit man

Looking at the image:
Your calling to Haptek.
Lightspeed U need to hang with me man, u really do.
DUDE turn ur SAPI05 engine on.......lmao thats where the issue is. Hal is talking ,hes not typing
Ur asking hal to do something then turning it back off before it can.
Lightspeed if u need a SAPI05 voice thats Human,dont be silly man, come see me.
best wishes
cyberjedi

P.S I think hes a little addicted:::lol  Hal and a movie
« Last Edit: June 09, 2017, 02:58:22 pm by cyberjedi »

lightspeed

  • Hero Member
  • *****
  • Posts: 6761
    • View Profile
Re: Scraper: Hal goes to anger management school. Status Cracked
« Reply #3 on: June 09, 2017, 02:50:23 pm »
i am using a susan sapi5 voice in the select engine and speaker i have , microsoft english recognizer v.51
, it is still doing it , it is typing the words out for the rss feed but half way down it keep jerking and putting the rest f the feed on and off real fast , when it does this i can't even get my task bar to change when i want to bring up the zabaware forum , from my firefox , until hal is done running the rss feed.
i also unchecked all other plug ins , didn't help.
this is on wondows 7 os  on a quade core hp laptop .
« Last Edit: June 09, 2017, 02:52:31 pm by lightspeed »
 

cyberjedi

  • Hero Member
  • *****
  • Posts: 810
  • The Mighty Hal Machine
    • View Profile
Re: Scraper: Hal goes to anger management school. Status Cracked
« Reply #4 on: June 09, 2017, 03:00:10 pm »
Lightspeed:
Then im srry i have no idea why this doesnt work
Do u have any of the Vw voices

you do know it wont type out the convo, this is a SPEAKING engine
if it typed out the responce it would be just goofy
It reads the rss feed.

cyberjedi
« Last Edit: June 09, 2017, 03:04:43 pm by cyberjedi »

lightspeed

  • Hero Member
  • *****
  • Posts: 6761
    • View Profile
Re: Scraper: Hal goes to anger management school. Status Cracked
« Reply #5 on: June 09, 2017, 03:03:35 pm »
it seems almost as if the rs fed is taking to much memory or something but the monitors shows memory is below half being used . i have other plug ins i have made with trigger words and random line readouts and hal reads them just fine .

yes i have two vw voices , i was using the bridget voice the first time when i had this trouble, then tried the microsoft susan voice but it still did the same thing .
« Last Edit: June 09, 2017, 03:06:40 pm by lightspeed »
 

cyberjedi

  • Hero Member
  • *****
  • Posts: 810
  • The Mighty Hal Machine
    • View Profile
Re: Scraper: Hal goes to anger management school. Status Cracked
« Reply #6 on: June 09, 2017, 03:06:39 pm »
Lightspeed: Im pretty sure its doing a webpage call,,lol

and its reading that page, think about all that going on here, sure mem is being affected





best wishes
cyberjedi

lightspeed

  • Hero Member
  • *****
  • Posts: 6761
    • View Profile
Re: Scraper: Hal goes to anger management school. Status Cracked
« Reply #7 on: June 09, 2017, 03:08:20 pm »
memory is being effected but from what it shows it is normal and shouldn't be bad enough to slow the reading of the rss feed down .
 

cyberjedi

  • Hero Member
  • *****
  • Posts: 810
  • The Mighty Hal Machine
    • View Profile
Re: Scraper: Hal goes to anger management school. Status Cracked
« Reply #8 on: June 09, 2017, 03:09:45 pm »
Lightspeed: Personally i think this is ur SAPI engine
Im using VWkate and sandy

Id be happy to give u this stuff

I cant post voices in here for respect for robert, but i have them all, and office 2007 code named(rosebud) thats says it all,, u said u dont have word. that why i bring it up, and why ur spell check wont work either.
i know ur all paranoid and shizit, man, u gotta trust some 1
onthecuttingedge: Took a leap of faith, hes glad he did too, dude im not out to hurt any 1
https://vaughnlive.tv/mrelectric
bestwishes
cyberjedi
« Last Edit: June 09, 2017, 03:19:08 pm by cyberjedi »

lightspeed

  • Hero Member
  • *****
  • Posts: 6761
    • View Profile
Re: Scraper: Hal goes to anger management school. Status Cracked
« Reply #9 on: June 09, 2017, 07:39:47 pm »
so you have to have office installed to ? maybe that's why it's doing this ???
i have microsoft office starter 2010 not installed yet , includes word starter and excel starter 2010 for basic word processing and spreadsheets .  does not include power point and outlook 2010.
will install it don't know if this version will work with it to help the rs feed?  .
 

cyberjedi

  • Hero Member
  • *****
  • Posts: 810
  • The Mighty Hal Machine
    • View Profile
Re: Scraper: Hal goes to anger management school. Status Cracked
« Reply #10 on: June 09, 2017, 07:59:50 pm »
Lightspeed:
(look at the code) Set xmlDoc = CreateObject("Microsoft.XMLDOM")
dude just come and see me i have what u need
^^^^^^^^^^^
we need to spend some time together man


best wishes
cyberjedi
« Last Edit: June 10, 2017, 09:34:51 am by cyberjedi »

cyberjedi

  • Hero Member
  • *****
  • Posts: 810
  • The Mighty Hal Machine
    • View Profile
Re: Scraper: Hal goes to anger management school. Status Cracked
« Reply #11 on: June 10, 2017, 10:59:05 am »
Lightspeed: I had a sim error:

https://www.youtube.com/watch?v=ugnohzxD4Hg

Look close at the first 1 min of video
U can clearly see where i went wrong. check weather , nothing happens. The u see a blip and me do check weather again, magically it works.
No magic at all
What i did was reset to a voice that haptek can use. Check weather again and it worked fine, Im looking at the image u sent me.
There is ur issue, U must have LIP movement, no matter what voice u use. Im doing a call to the haptek speech engine.



best wishes
cyberjedi