Author Topic: Hal talks about music/song/dance/singers script.  (Read 3940 times)

onthecuttingedge2005

  • Guest
Hal talks about music/song/dance/singers script.
« on: September 25, 2003, 09:17:01 pm »
'Hal's music script.
'download music.brn/musictalk.brn
'to hals default folder.
'you can add to the Music.brn detection words
'and also add your own music preferences in
'the MusicTalk.brn.

If HalBrain.TopicSearch(OriginalSentence, WorkingDir & "MUSIC.brn") = "TRUE" Then
AnswerSent = "" & Trim(OriginalSentence)
HalBrain.AppendFile WorkingDir & "MUSICTALK" & ".brn", AnswerSent
End If

If HalBrain.TopicSearch(OriginalSentence, WorkingDir & "MUSIC.brn") = "TRUE" Then
Musical = HalBrain.ChooseSentenceFromFile(WorkingDir & "MUSICTALK.brn")
      GetResponse = Musical & vbCrLf
      DebugInfo = DebugInfo & "The user is talking about music: " & Musical & vbCrLf
      Else
      DebugInfo = DebugInfo & "User is not talking about music: " & Musical & vbCrLf
   End If

'Best of wishes and new discoveries.
'Jerry.




Download Attachment: MUSICTALK.brn
760 Bytes

Download Attachment: MUSIC.brn
1.89 KB
« Last Edit: September 26, 2003, 01:31:12 pm by onthecuttingedge2005 »