Hey hey Guys:
Was just thinking out loud here.
look at this code here, who says it has to store phone numbers on command.Lets look at what it does, It creates a table and stores
text. Same with the name ,Bob's email is bla bla bla. This is plane text being saved in the sqlite table.
Who says it has to be just a name?
Can we store an entire text file in the table?
Then have UltraHal read it back to you, thus making Hal a SAPI5 text reader. Hal all ready has that i know. But outside UltraHal
But doing it Inside of Hal is NOT doable.
Rather then (whats bobs phone number?)
(Read the book Dante's inferno)
Sure as shootin hal will read what ever is on that table.
'PROCESS: LEARN PHONE NUMBER
If HalBrain.LearnPhone(OriginalSentence, EntryName, EntryNumber) = True Then
'Make sure EmailBook table exists, if not, create it '<<<<<< convert to table of choice for text file
If HalBrain.CheckTableExistence("PhoneBook") = False Then
HalBrain.CreateTable "PhoneBook", "PatternMatch", "Assistant"
End If
HalBrain.AddToTable "PhoneBook", "PatternMatch", "what* " & EntryName & "* phone*", OriginalSentence
HalBrain.AddToTable "PhoneBook", "PatternMatch", "tell* " & EntryName & "* phone*", OriginalSentence
HalBrain.AddToTable "PhoneBook", "PatternMatch", "what* " & EntryName & "* number*", OriginalSentence
HalBrain.AddToTable "PhoneBook", "PatternMatch", "tell* " & EntryName & "* number*", OriginalSentence
HalBrain.AddToTable "PhoneBook", "PatternMatch", "recall* " & EntryName & "* phone*", OriginalSentence
HalBrain.AddToTable "PhoneBook", "PatternMatch", "recall* " & EntryName & "* number*", OriginalSentence
HalBrain.AddToTable "PhoneBook", "PatternMatch", "*call *" & EntryName & "*", OriginalSentence & ". I am dialing. <dial>" & EntryNumber & "</dial>"
HalBrain.AddToTable "PhoneBook", "PatternMatch", "*dial *" & EntryName & "*", OriginalSentence & ". I am dialing. <dial>" & EntryNumber & "</dial>"
HalBrain.AddToTable "PhoneBook", "PatternMatch", "*connect *" & EntryName & "*", OriginalSentence & ". I am dialing. <dial>" & EntryNumber & "</dial>"
GetResponse = "I have learned " & EntryName & "'s phone number. I can recall this number at any time and if you ask me to call this person, I will dial the phone for you. "
HalBrain.ReadOnlyMode = True 'Block further learning
End If
this is just a great piece of code here
Just a thought here plugin guys
cyber jedi