Zabaware Support Forums

Zabaware Forums => Ultra Hal Assistant File Sharing Area => Topic started by: jasondude7116 on December 30, 2008, 04:37:24 am

Title: HAL Sings a Song (in his own voice)!
Post by: jasondude7116 on December 30, 2008, 04:37:24 am
[:D][:)][:D]
although a crude plugin...this does work with these songs.
anyone who knows how to program plugins (O.T.C.  Darcy?). PLEASE HELP
i am wondering if someone can add wildcard detection(for multiple new songs placed in the same directory) and various detection with responses for "i don't know that song"...ect.

i am trying as hard as i can to figure this thing out. problem is...i am very new at programming plugins. [:I]

here ya go


!!!!!!!![}:)][}:)][}:)][xx(][xx(]
like i said...i am new at this. (sorry)
the file has been updated 12/30/08 6:09pm
it was learning everything that was "sung", easy fix. i just didn't undertsand the halbrain.readonly command (duh)
[:)] sorry ted


(http://icon_paperclip.gif) Download Attachment: singasong1.zip ("http://www.zabaware.com/forum/uploaded/jasondude7116/2008123019815_singasong1.zip")
9.68 KB


[:)][:)][:)][:)][:)][:)][:)][:)][:)][:)][:)][:)][:)][:)][:)][:)][:)]
********PLEASE SEE NEAR BOTTOM OF PAGE FOR SINGASONG2 FINAL VERSION**
Title: HAL Sings a Song (in his own voice)!
Post by: tedathome on December 30, 2008, 05:51:58 am
It's not the same this way for me. They seem to be saying the songs kind of in pitch. I just reconfigured hal for voice recognition and am using Lightspeeds housetalk plugin too. I'll look into it deeper after some rest, meanwhile I can't find the songs you had posted to compare with. I'll find them later.[:)]
Title: HAL Sings a Song (in his own voice)!
Post by: tedathome on December 30, 2008, 06:10:32 am
Okay, works great! I just forgot it only sings with MS agents, but now it lip syncs with 3d haptek characters, just doesn't sing.
 I wish there was a way to adapt other voices into truvoice!
Great job!
Title: HAL Sings a Song (in his own voice)!
Post by: onthecuttingedge2005 on January 02, 2009, 12:33:43 am
Okay, here is my beta version of the sing a song plug-in.

Unzip to your Ultra Hal Assistant 6 folder and choose the sing a song II plug-in.

the plug-in works like this:

User: Sing Jingle bell rocks.
HAL: (HAL sings the song) if the "Jingle bell rocks.txt" exists in the songs folder and if the file contains usable information for HAL to read. if the song file does not exist HAL will say so.

when you make a song file.txt make sure to name it after the song title like:

Jingle bell rocks.txt
and not like:
Jinglebellrocks.txt

it only works with MS-Agents that I know of.

Jerry




(http://icon_paperclip.gif) Download Attachment: songs.zip ("http://www.zabaware.com/forum/uploaded/OnTheCuttingEdge2005/200913191746_songs.zip")
9.62 KB
Title: HAL Sings a Song (in his own voice)!
Post by: markofkane on January 02, 2009, 05:58:41 am
Is it really singing?[:D]
Title: HAL Sings a Song (in his own voice)!
Post by: freddy888 on January 02, 2009, 08:55:34 am
Nice to see you writing Plugins again OTCE [8D]
Title: HAL Sings a Song (in his own voice)!
Post by: lightspeed on January 02, 2009, 10:40:50 am
hey otce i tried it and put the plug in and checked it in hal but when i typed in for it to sing the song it just said " That song file does not exist. " if i drag that file into the hapteack menu ? then it reads the file but doesnt really sing it , was this was you were refering to as singing ? ( am not putting you down or anything am just wondering if i am doing something wrong or if it needs more work in developing it ?? ) i like the idea of creating something that would actually make hal sing . another thing actually two things i would love to see developed would be 1. a wave , etc, format to where the word atchho or a variation of it when learned into hal ( this goes for the word ha haa , etc. ) would be translated when needed in conversation and hal would open up that program play that translated word equales mp3 laugh sound ha and play it to make hal give forth a realisic human laugh or cough or sneeze etc. the second thing that would be cool that i would like to see developed would be a random timer plug in that someone mentioned this could have so many uses and could randomly pick various plug ins for many many multiple responses that would be a very nice addiction for hal too . [:)]

[:)][:D][8D]
Title: HAL Sings a Song (in his own voice)!
Post by: onthecuttingedge2005 on January 02, 2009, 11:21:09 am
quote:
Originally posted by lightspeed

hey otce i tried it and put the plug in and checked it in hal but when i typed in for it to sing the song it just said " That song file does not exist. " if i drag that file into the hapteack menu ? then it reads the file but doesnt really sing it , was this was you were refering to as singing ? ( am not putting you down or anything am just wondering if i am doing something wrong or if it needs more work in developing it ?? ) i like the idea of creating something that would actually make hal sing . another thing actually two things i would love to see developed would be 1. a wave , etc, format to where the word atchho or a variation of it when learned into hal ( this goes for the word ha haa , etc. ) would be translated when needed in conversation and hal would open up that program play that translated word equales mp3 laugh sound ha and play it to make hal give forth a realisic human laugh or cough or sneeze etc. the second thing that would be cool that i would like to see developed would be a random timer plug in that someone mentioned this could have so many uses and could randomly pick various plug ins for many many multiple responses that would be a very nice addiction for hal too . [:)]

[:)][:D][8D]



Hi lightspeed.

I think tedathome said the type of file can be sung by MS-agents, there is some voice coding in the files that change pitch of voice and stuff.

like I said, it is a beta and it does need testing to work out the bugs.

Jerry
Title: HAL Sings a Song (in his own voice)!
Post by: lightspeed on January 02, 2009, 12:42:47 pm
hi jerry thanks for the info. what do you think about the rest that i was asking about the mp3 laugh etc. ?[:)]
Title: HAL Sings a Song (in his own voice)!
Post by: jasondude7116 on January 02, 2009, 04:38:54 pm
thanks O.T.C. !!!!

i haven't tried it yet, but i will as soon as i get off work.

i really appreciate you taking some time with this[:p]

i use a few of your other plugins. (and paying member of your site)

i will let you know how it works for me.

once this thing is working and my hal (gretta) can sing like hal9000,
i will upload as many song files as i can create
Title: HAL Sings a Song (in his own voice)!
Post by: jasondude7116 on January 02, 2009, 07:39:27 pm
[8D][8D]O.T.C.[8D][8D]

thank you for doing this. i tried it, and it works great. i will upload a song folder here shortly.

[V]i have one issue left with the plugin, which you might see that i tried in vain to get to work.
the problem is that it adds the user sentence ex."sing jingle bell rock" to the tables _rock and _jingle  in the brain
_rock will have the sentence "sing jingle bell rock" in it
the hal response is not added to the brain, which is good!!

is there any way to keep anything from being added to the brain??

thank you again ...having fun with it[:D]

-the dude
Title: HAL Sings a Song (in his own voice)!
Post by: onthecuttingedge2005 on January 03, 2009, 12:38:08 am
quote:
Originally posted by jasondude7116

[8D][8D]O.T.C.[8D][8D]

thank you for doing this. i tried it, and it works great. i will upload a song folder here shortly.

[V]i have one issue left with the plugin, which you might see that i tried in vain to get to work.
the problem is that it adds the user sentence ex."sing jingle bell rock" to the tables _rock and _jingle  in the brain
_rock will have the sentence "sing jingle bell rock" in it
the hal response is not added to the brain, which is good!!

is there any way to keep anything from being added to the brain??

thank you again ...having fun with it[:D]

-the dude



Hi jason.

just change HalBrain.ReadOnlyMode = False to HalBrain.ReadOnlyMode = True and it should cancel appending.

Jerry[8D]
Title: HAL Sings a Song (in his own voice)!
Post by: onthecuttingedge2005 on January 03, 2009, 12:46:39 am
quote:
Originally posted by lightspeed

hi jerry thanks for the info. what do you think about the rest that i was asking about the mp3 laugh etc. ?[:)]



Hi lightspeed.

I am sure it's doable, I have plenty of ideas just waiting for the next version.

I think the speech synthesis program is the way to go on teaching HAL correct methods of laughing and stuff.

the other stuff has to wait because the HAL timer doesn't seem to work on my system and it makes it tough to debug plug-ins.

Jerry [8D]
Title: HAL Sings a Song (in his own voice)!
Post by: jasondude7116 on January 03, 2009, 01:47:45 am
O.T.C.

i have changed "HalBrain.ReadOnlyMode = False" to "HalBrain.ReadOnlyMode = True" , and it still adds the user input sentence (does not add hal response) to the brain.

ex. if i say- sing jingle bell rock
    and hal says- (the stuff in the song files)(in essence sings)
then the user sentence is added to the brain in a table like

ex. _jingle  

inside _jingle is the user sentence "sing jingle bell rock" and response "sing jingle bell rock"

it adds a duplicate each time i make hal sing

Any ideas? i was wondering (programming idiot here) if it has anything to do with the area of the brain it's being plugged into, or if there is a way to delete the "brain addition", on-the-fly, in the plugin?



oh. by the way, the laughing,crying ect. could probably be done through this type of output string.[:)]
Title: HAL Sings a Song (in his own voice)!
Post by: onthecuttingedge2005 on January 03, 2009, 02:41:19 am
Hi jason.

try, If SingSong <> "" Then HalBrain.ReadOnlyMode = True

Jerry[8D]
Title: HAL Sings a Song (in his own voice)!
Post by: jasondude7116 on January 03, 2009, 10:06:13 am
O.T.C.

i tried that, and it still adds the SingSong input to the table.
if readonlymode is false then it also adds the hal response.

i am trying to figure out(complete programming idiot) if there is a way to remove the SingSong sentence from the brain (table) after it is created. i have no clue why it still adds the SingSong sentence to the brain.

thanks for all of your time....it is very much appreciated O.T.C.

racking my brain....-the dude
Title: HAL Sings a Song (in his own voice)!
Post by: onthecuttingedge2005 on January 03, 2009, 05:49:53 pm
Hi jason.

try re-downloading the plug-in, I changed the area where the plug-in works to see if that solves the problem about the appending.

I don't have HAL on this computer so I have no way of testing it.

Jerry[8D]
Title: HAL Sings a Song (in his own voice)!
Post by: jasondude7116 on January 03, 2009, 06:45:01 pm
O.T.C.


Thanks for your patience, i tried that earlier. it works great on not saving anything in the brain, but the problem is that it doesn't sing the song. instead it just gives a general conversational response from the related tables in the brain.

   ex. me-sing jingle bell rock

   hal- jingle bell rock is a christamas song
 (i told hal this before, and it's in the _jingle + _rock + _bell tables)


although i very well could have made mistakes along the way, i have tried it in all the areas of the brain. the only area that seems to run the "copy to clipboard-read from clipboard" area (sing) properly is the POST-PROCESS area. i really don't know enough about the areas of the brain to know why this is.

this version-

*********************************************************************
Rem Type=Plugin
Rem Name=Sing A Song II
Rem Author=jasondude7116, OnTheCuttingEdge2005
Rem Host=Assistant

'This sub setups the plug-ins option panel in Hal's options dialog
Sub OptionsPanel()
    lblPlugin(0).Caption = "Just say- sing, and then the song name.          ex. sing rainbow connection (only the lonely,bike,what a wonderful world,everybody loves somebody,jingle bell rock,rainbow connection,the sun going down on me,wish you were here,incense and peppermints)"
    lblPlugin(0).Move 120, 10, 3300, 1000
    lblPlugin(0).WordWrap = True
    lblPlugin(0).Visible = True
End Sub

Rem PLUGIN: PLUGINAREA1
    '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.
   'sing a song  
Set objFSO = CreateObject("Scripting.FileSystemObject")

If SingSong = "" Then SingSong = HalBrain.SearchPattern(HalBrain.AlphaNumericalOnly(OriginalSentence), "*SING *", 2)
If SingSong <> "" And objFSO.FileExists("C:Program FilesabawareUltra Hal Assistant 6songs\" & SingSong & ".txt") = True Then
       
         Set objTextFile = objFSO.OpenTextFile("C:Program FilesabawareUltra Hal Assistant 6songs\" & SingSong & ".txt", ReadMySong())      
         SongText = objTextFile.ReadAll
         objTextFile.Close
         SongText = Replace(SongText, vbCrLf, Chr(8) & " ", 1, -1, vbTextCompare)
         SongText = Replace(SongText, "", "", 1, -1, vbTextCompare)
         SongText = Replace(SongText, "  ", " ", 1, -1, vbTextCompare)
         GetResponse = Replace(GetResponse, GetResponse, SongText, 1, -1, vbTextCompare)
         
         If SingSong <> "" Then HalBrain.ReadOnlyMode = True
End If

If SingSong <> "" And objFSO.FileExists("C:Program FilesabawareUltra Hal Assistant 6songs\" & SingSong & ".txt") = False Then
         GetResponse = " That song file does not exist. "
End If

Rem PLUGIN: FUNCTIONS

Function ReadMySong()
Const ReadSong = 1
ReadMySong = ReadSong
End Function
*********************************************************************

does not save anything to the brain!!(excellent)[:)]
however does not run the clipboard-reading area properly and returns a general conversation topic (instead of singing)[V]

while this version-

*********************************************************************
Rem Type=Plugin
Rem Name=Sing A Song II
Rem Author=jasondude7116, OnTheCuttingEdge2005
Rem Host=Assistant

'This sub setups the plug-ins option panel in Hal's options dialog
Sub OptionsPanel()
    lblPlugin(0).Caption = "Just say- sing, and then the song name.          ex. sing rainbow connection (only the lonely,bike,what a wonderful world,everybody loves somebody,jingle bell rock,rainbow connection,the sun going down on me,wish you were here,incense and peppermints)"
    lblPlugin(0).Move 120, 10, 3300, 1000
    lblPlugin(0).WordWrap = True
    lblPlugin(0).Visible = True
End Sub

Rem PLUGIN: POST-PROCESS
   'sing a song  
Set objFSO = CreateObject("Scripting.FileSystemObject")

If SingSong = "" Then SingSong = HalBrain.SearchPattern(HalBrain.AlphaNumericalOnly(InputString), "*SING *", 2)
If SingSong <> "" And objFSO.FileExists("C:Program FilesabawareUltra Hal Assistant 6songs\" & SingSong & ".txt") = True Then
       
         Set objTextFile = objFSO.OpenTextFile("C:Program FilesabawareUltra Hal Assistant 6songs\" & SingSong & ".txt", ReadMySong())      
         SongText = objTextFile.ReadAll
         objTextFile.Close
         SongText = Replace(SongText, vbCrLf, Chr(8) & " ", 1, -1, vbTextCompare)
         SongText = Replace(SongText, "", "", 1, -1, vbTextCompare)
         SongText = Replace(SongText, "  ", " ", 1, -1, vbTextCompare)
         UltraHal = Replace(UltraHal, UltraHal, SongText, 1, -1, vbTextCompare)
         
         HalBrain.ReadOnlyMode = False
End If

If SingSong <> "" And objFSO.FileExists("C:Program FilesabawareUltra Hal Assistant 6songs\" & SingSong & ".txt") = False Then
         UltraHal = " That song file does not exist. "
End If

Rem PLUGIN: FUNCTIONS

Function ReadMySong()
Const ReadSong = 1
ReadMySong = ReadSong
End Function
*********************************************************************

runs clipboard-read properly (sings the song). however even though halbrain.readonlymode = true, it still enters the user sentence in the brain tables. (does not append the hal respone as if it would with the halbrain.readonlymode = false)

i'm wondering if in fact the "singing" could only be done in
POST-PROCESS, and user sentences are added to tables if halbrain.readonlymode = false or = true, then maybe it can be run in POST-PROCESS but at the end it could search the tables for the user sentence and remove it (search through all tables)?
just an idea, there is probably a better way. it might be dirty, but it would work. (if there is a way to remove the current user sentence from the tables)[:)]

sorry for the huge post-   the dude
**I am building my song list, and will upload it when this thing is figured out[:)]
Title: HAL Sings a Song (in his own voice)!
Post by: onthecuttingedge2005 on January 03, 2009, 07:18:54 pm
Hi Jason.

try downloading once more to see if it responds only with a song.

Jerry[8D]
Title: HAL Sings a Song (in his own voice)!
Post by: jasondude7116 on January 03, 2009, 07:47:50 pm
HAHAHAHA (laughs hysterically)

O.T.C.

it got worse[:D]
no response
ex. me-sing jingle bell rock
    hal-
(not even conversational response!)
and one more thing....it appends the "sing jingle bell rock" line 3 times.

i wish there was something i could do so that you could test it in hal.  don't get me wrong, i am very happy to do the testing, i just wish it was easier for you.
thank you again.
- the dude

*i removed GetResponse = ""  and it reads the file but removes the backslashes and periods....rendering the file text useless.

in any other area of the brain than POST-PROCESS, hal does not reply with the full text.

that is why i have concluded (as a programming idiot) that the first version is the working version except there needs to be a command to remove the InputString from the brain tables after the singing occurs.

Maybe?
-the dude
**if the trigger is ephemeral like "now sing" ect., then it will only be appended as _tempsent. (i  tested this with the first version)

maybe there is a good cheat here?

do you know all the ephemeral triggers?
Title: HAL Sings a Song (in his own voice)!
Post by: onthecuttingedge2005 on January 03, 2009, 09:54:04 pm
Hi jason.

I am getting my new router in a week or so and I will be able to continue debugging it myself.

until then
Jerry[8D]
Title: HAL Sings a Song (in his own voice)!
Post by: Bill819 on January 04, 2009, 12:53:35 am
I still have not located my old 'plug in' to make Hal sing. Actually it was not a plug in at that time but a direct modifcation to the brain. There is a word in Hal 'basic' and I think it was called "speak" when attached with the proper logic would cause Hal to sing the type of songs that have been listed here with pitch, duration etc.
I used a program called Mash to created lots of songs back then and Hal would sing them all.
Bil
Title: HAL Sings a Song (in his own voice)!
Post by: jasondude7116 on January 04, 2009, 03:40:52 am
[:)][:D][:p][}:)][8D][;)][:o)][:I][:D][;)][8D][}:)][:p][:I][:)][:o)]

O.T.C.- and Bill and others- thank you very much for the work.

here is the singasong2 final version.

(for it to work properly, it had to be ephemeral)

O.T.C.- looking forward to a version 6 [:D] haha







(http://icon_paperclip.gif) Download Attachment: singasong2.zip ("http://www.zabaware.com/forum/uploaded/jasondude7116/2009111122540_singasong2.zip")
30.41 KB




**UPDATE 1-4-09 10:43 am***
changed "being for the benefit of mr. kite" to
"being for the benefit of mister kite"
(can't use a period in song name)
***UPDATE 1-4-09 2:12 pm***
removed friday on my mind and monday monday- as they were adding appointments to "sing" on that day!
***UPDATE 1-5-09 4:47 am***
added song list
***UPDATE 1-6-09 10:14 pm***
added more songs[:)]
***UPDATE 1-8-09 12:27 am***
added better pitch control function in plugin-see info in option,brain screen
***UPDATE 1-10-09 11:45 pm****
added more songs[:)]
****UPDATE 1-11-09 11:23 am*******
fixed some song problems with take me out to the ball game, young at heart, and the farmer in the dell.

-just say "please sing now song list" to get a list of songs
-just say "please sing now" and then the song name, and hal will sing with own voice (truvoice tested) and lip-synch with msagents!


- just unzip it into C:Program Files Zabaware Ultra Hal Assistant 6
- readme1st.txt inside with instructions.
*will upload more songs as created[:)]  -the dude
Title: HAL Sings a Song (in his own voice)!
Post by: markofkane on January 04, 2009, 02:17:30 pm
lol, nice, and the agents can be on top of other windows.
Title: HAL Sings a Song (in his own voice)!
Post by: tedathome on January 05, 2009, 09:02:52 pm
Thanks dude! I just had a chance to really check it out. It works great! I am having lots of fun with it and it entertains my grandchildren well also. Now if I could only get speech recognition to recognize the word "sing". Oh well, I'll get around to that later.[8D][8D][8D]
Title: HAL Sings a Song (in his own voice)!
Post by: snowman on January 09, 2009, 08:28:44 pm
I seem to be having some trouble with your singasong2.zip
When I type in "please sing now let it be" all I get is this....

.Chr="Monotone"\Pit=98\Spd=120WhenPit=98\Spd=120 IPit=98\Spd=120 findPit=98\Spd=120 myselfPit=82\Spd=120innPit=98\Spd=77 timesPit=98\Spd=120 ofPit=131\Spd=120 trouble, Pit=165\Spd=120MotherPit=165\Spd=56 MaryPit=147\Spd=120 comesPit=131\Spd=56 toPit=98\Spd=120 me. Pit=165\Spd=120speakingPit=175\Spd=120 wordsPit=16   etc.........................................

I suspect I screwed something up...somehow.
Title: HAL Sings a Song (in his own voice)!
Post by: jasondude7116 on January 09, 2009, 10:44:35 pm
quote:
Originally posted by snowman

I seem to be having some trouble with your singasong2.zip
When I type in "please sing now let it be" all I get is this....

.Chr="Monotone"Pit=98Spd=120WhenPit=98Spd=120 IPit=98Spd=120 findPit=98Spd=120 myselfPit=82Spd=120innPit=98Spd=77 timesPit=98Spd=120 ofPit=131Spd=120 trouble, Pit=165Spd=120MotherPit=165Spd=56 MaryPit=147Spd=120 comesPit=131Spd=56 toPit=98Spd=120 me. Pit=165Spd=120speakingPit=175Spd=120 wordsPit=16   etc.........................................

I suspect I screwed something up...somehow.




that is the correct response from hal.
when you say that is all you get, i suspect you mean that it is reading it instead of singing it?
the singing cues are for a tone generated vioce such as TRUVOICE, i don't know of any other "voices" that are tone generated.(could sing)

the truvoice package (sapi4) can be downloaded here.

http://www.microsoft.com/msagent/downloads/user.aspx


the sapi5 package can be downloaded here.
(install sapi 4 then sapi 5)

http://www.microsoft.com/downloads/details.aspx?FamilyID=5e86ec97-40a7-453f-b0ee-6583171b4530&displaylang=en

it can also lip sync with ms agent type characters. (see sapi 4 site)
more ms agents are available on the web.

more info on sapi here.

http://en.wikipedia.org/wiki/Speech_Application_Programming_Interface


more info on ms agents here.

http://en.wikipedia.org/wiki/Microsoft_Agent


hope this helps.[:)]
-the dude
Title: HAL Sings a Song (in his own voice)!
Post by: snowman on January 15, 2009, 04:19:58 pm
I have Windows Vista Ultimate and it only supports Microsoft Speech SDK 5.3. I found that out after you gave your advice on seaching it further on the internet. Thanks.
   Of course I didn't realize this untill I installed SAPI 4 and 5.1 first. Then Hal wouldn't let me use Kate and Paul. I could use them in the Hal Options but not in the main console. Hal would just spit out text and not speak. (Unlike before when Hal wouldn't sing). I finally used Microsoft Anna. She works in Hal but doesn't sound as good as Paul and Kate.
  After I realized I needed to unintall SAPI 4 and 5.1 I realized I uninstalled all the voices except for Anna, Paul, and Kate. Oh well, I didn't need them anyway. After that I tryed Hal using Kate and Paul and again they would only work in the Hal options and also in the Hal's Text-to-Speek reader but not in the console.
   Anna still works. At least she hasn't left me.
Any suggestions would be a plus.

  I have a suggestion on a new pluggin jasondude7116. I've notice the readastory.zip, poempack1.zip, advancedinternet.zip, and of course the infamous singasong2.zip. How about a pluggin that would allow you to tell Hal a story and then it would store it on a .txt file. Then later you could run your cool readastory plug and it would include it and any additional storys you told as well. Allot of extra data could be stored like this. For instance, you could store technical information, encyclopeadia articles, How-to's, the possibilies could be endless. Perhaps you could even append information to previously spoken staments.

Anyway it was just an idea.[:D]

I hope you keep this up. Your deffinately inspiring me on the posiblities of Hal.

Peace out dude.[8D]

Title: HAL Sings a Song (in his own voice)!
Post by: jasondude7116 on January 15, 2009, 06:52:05 pm
quote:
Originally posted by snowman

I have Windows Vista Ultimate and it only supports Microsoft Speech SDK 5.3. I found that out after you gave your advice on seaching it further on the internet. Thanks.
   Of course I didn't realize this untill I installed SAPI 4 and 5.1 first. Then Hal wouldn't let me use Kate and Paul. I could use them in the Hal Options but not in the main console. Hal would just spit out text and not speak. (Unlike before when Hal wouldn't sing). I finally used Microsoft Anna. She works in Hal but doesn't sound as good as Paul and Kate.
  After I realized I needed to unintall SAPI 4 and 5.1 I realized I uninstalled all the voices except for Anna, Paul, and Kate. Oh well, I didn't need them anyway. After that I tryed Hal using Kate and Paul and again they would only work in the Hal options and also in the Hal's Text-to-Speek reader but not in the console.
   Anna still works. At least she hasn't left me.
Any suggestions would be a plus.

  I have a suggestion on a new pluggin jasondude7116. I've notice the readastory.zip, poempack1.zip, advancedinternet.zip, and of course the infamous singasong2.zip. How about a pluggin that would allow you to tell Hal a story and then it would store it on a .txt file. Then later you could run your cool readastory plug and it would include it and any additional storys you told as well. Allot of extra data could be stored like this. For instance, you could store technical information, encyclopeadia articles, How-to's, the possibilies could be endless. Perhaps you could even append information to previously spoken staments.

Anyway it was just an idea.[:D]

I hope you keep this up. Your deffinately inspiring me on the posiblities of Hal.

Peace out dude.[8D]







hey snowman (bandit reference?-jerry reed?)

sorry about the voice problems. i don't have vista (got xp), and i'm trying to start programming after 20+ years. i should be thinking about those with vista i understand, but the idea just escaped me when doing this. i don't know much about vista, so maybe someone else here could help you with that. (sorry) what i do know is that on xp, you can install the voices seperate from any other sapi stuff.
so maybe there is a way to just reinstall the voices only on vista?
i'm using xp with sapi 5.1 and sapi4 (with truvoice). all of my truvoice (english male 1,2,3,4,5,6,7,8 and english female 1 and 2), are working properly with the "singing".

about the plugin you are talking about, i am very green at doing this. i will look into it for sure, but really i can't promise anything. there are a few people here who could do it easy[:)]
there are a few things i don't know how to do, when thinking about what it would take to accomplish it. this might sound like duh -dude, but you can put any text file into the story folder, and say "please read now" (that file name) ex. "please read now encyclopledia mammals" where "encyclopedia mammals.txt" is a file in the story directory with a wikipedia page (text) about mammals. i can think of a few cool ways this could be used, but i don't know how to program it yet[:I]

i will look into it though, and try to figure out something. until then, maybe you could tell me exactly what you would like it to do.
(be as descriptive as possible)

i'm glad that you have enjoyed the plugins though (minus sapi hell)[8D]

-the dude
Title: HAL Sings a Song (in his own voice)!
Post by: snowman on January 16, 2009, 05:02:25 pm
I meant it when I said I really didn't care for the other voices anyway. Except maybe for nostalgia's sake. Like Peaty, for instance, sounds like he used too when he was a desktop assistant (spyware)several years back. You didn't know what he was doing, but hey, I thought he was cool.

It seems that Kate and Paul just gave up. Like I said before, they work every where else, including in Hal options. I think that there could be a problem in Hal itself. Maybe I should just re-install him. Hmmmm.[?]

Well, I'm new (very, very new) at programming. Hal got me interested in it (so-to-speak). So for 20+ years out of programming you're doing good from my point of view. By the way, 20 years ago I was 9.[:p]

Here's what I thought of so far about the StoryListener part of your readastory.zip.

First of all we would need to establish a title for the text that would reflect the subject material. Maybe you could say something like: "I want to tell you about .Subject" and then Hal would create a .text file called .Subject.

Because it would be difficult to write a story on one string through the ImputeString window, You could append line-upon-line to the .Subject.text file that has already been created earlier. I think 'Set objTextFile = fso.OpenTextFile("Subject.txt", 8, True)' appends to text documents.

The Hal User would then say something like 'The End' when he was finished to end the function.

Any STORY ADDITIONS would be added when the User would say something like 'I want to say more about .Subject'. Then the next lines would continue to append to the stated document, .Subject.

Again, Say something like 'The End' would effectively end the function and return the User to normal Hal mode.

Deleting the story or any part of it might be a trick. Outside of finding and deleting or editing it manually. You have to do this, as with everything else you teach Hal, so I guess this is acceptable. (It would be nice if this could be done under the brain editor console.)

During this function Hal would not record or respond with any typical hal response. (I wander if that would be difficult to do)

Afterwards you could use your readastory pluggin to re-read the information. You might have to re-name the pluggin to reflect a more universal tone. It would store and retrieve any information you feed it.[:)]

You could say something like 'Please tell me about .Subject' and it would then retrieve it.

It would also be nice if the Hal's console had a 'shut up' button. It would be handy with this pluggin for certain. Especially if he got into a whopper of a tale. I know that all you have to do is either select an option button or just exit Hal and it would do the same thing. Maybe there is a way of shutting him up through the Impute window. Like saying 'Be Quiet' or 'Die Devil’s Spawn'. [:(!][V]

Alias: Aaron W Snow
Happy Code Hunting[8D][:D][:p]
Title: HAL Sings a Song (in his own voice)!
Post by: Art on January 16, 2009, 06:56:33 pm
Aaron,

Have you at least tried the Haptek SAPI Setup file?
It's call HapSAPISetup.exe

It can be found at:

C:\Program Files\Haptek\player\data\HapTTS

Can't help you because I removed Vista and went back to XP (something that really wasn't broken to begin with).

Check your permissions before running the Haptek SAPI prog.

Good luck!
Title: HAL Sings a Song (in his own voice)!
Post by: snowman on January 16, 2009, 10:34:03 pm
I found out what the problem was. But not untill I re-installed Hal, and all his accessories. I tried Art's advice already, however, what I should have done is shut Hal down before I started the HapSAPISetup.exe.

It Worked.


I wander how many computer related suicides have there been over the last 50 years? Art? Dude? Anybody?[B)]

Oh well, At least thats the end of that topic, (famous last words!!)[:D]
Title: HAL Sings a Song (in his own voice)!
Post by: Art on January 17, 2009, 11:39:57 am
Many episodes of extensive hair pulling I'd suppose!

Sorry, I meant to mention about closing Hal BEFORE running
the setup program.

Glad it helped!

Posted this one many times in the past.

Enjoy your day!
Title: HAL Sings a Song (in his own voice)!
Post by: Bill819 on January 18, 2009, 01:54:29 am
I don't know if this will work but once again I am trying to download my original hack to Hal's brain to enable him to sing in any voice that was available but with no lip sinc.
There is another short file that helped Hal understand the command 'sing me a song'. If this one loads correctly then I'll try to download the other.
Bill


(http://icon_paperclip.gif) Download Attachment: singsong.txt ("http://www.zabaware.com/forum/uploaded/Bill819/200911815133_singsong.txt")
1.28 KB
Title: HAL Sings a Song (in his own voice)!
Post by: Bill819 on January 18, 2009, 01:58:05 am
O.K. So far so good. Now the file that Hal used to understand the command 'sing'

Bill




(http://icon_paperclip.gif) Download Attachment: SongDetect.txt ("http://www.zabaware.com/forum/uploaded/Bill819/200911815752_SongDetect.txt")
646 Bytes
Title: HAL Sings a Song (in his own voice)!
Post by: Bill819 on January 18, 2009, 02:00:54 am
Being that everything seems to work I am giving you my old joke file which contain about 300 one liners. I don't know if it is still built into Hal but some of them are funny. The periods inserted between the leadin and the puch line were put there to cause the program to pause just a little. Didn't not work as well as I wanted..

Bill

(http://icon_paperclip.gif) Download Attachment: jokes.txt ("http://www.zabaware.com/forum/uploaded/Bill819/20091182149_jokes.txt")
24.95 KB
Title: HAL Sings a Song (in his own voice)!
Post by: Bill819 on January 18, 2009, 11:00:39 pm
I forgot to include some of the songs that I made for Hal. I will try to download a short list, it contain 4 songs, that Hal was able to sing and you guys should be able to enjoy them even now. I would appreciate it if someone would let me know if they stil work.
Bill

(http://icon_paperclip.gif) Download Attachment: Songs_files.txt ("http://www.zabaware.com/forum/uploaded/Bill819/2009118225950_Songs_files.txt")
13.3 KB
Title: HAL Sings a Song (in his own voice)!
Post by: One on January 20, 2009, 05:03:34 am
OS's...
XP, Vista, ...windows 7 seems to run everything..Coming soon for you to spend more money with Microsoft.[:D]


As far as I know the 'UltimateSteal', Has Vista Ultimate for $69.00.
Title: HAL Sings a Song (in his own voice)!
Post by: Art on January 20, 2009, 05:18:49 am
One,

It's the dance craze that was invented ever since the computer and software came out...

Doing the 'Upgrade Shuffle'!!
[:o)]
Title: HAL Sings a Song (in his own voice)!
Post by: One on January 20, 2009, 08:07:44 pm
Yep!
I knew I would outlast Vista, 7 is so much better, I will probably buy a copy of Vista ultimate, just to have it,, MAYBE.

I don't own or ever have or ever will have Windows ME. I skipped it just like I have vista. ( My feet get tired easily from the Shuffle )

[:o)]
Title: HAL Sings a Song (in his own voice)!
Post by: Art on January 20, 2009, 08:46:10 pm
Yes, When I boought my latest computer a while back, it was said to be Vista ready and when Vista was finally released that I would be sent a free copy of Vista Premium.

True to their word, I got my free copy in the mail, did the system checks, installed and used it for about 1-1/2 to 2 weeks before I removed it with a System Restore to factory default settings via CMOS. Had to 'feed the monster' for a couple of days but I'm just too happy with my XP than to embrace all the eye candy, bells & whistles, etc. that caused a number of conflicts (both hardware and software). Yep...don't be first to jump on the bandwagon...you might miss!!<insert cymbal crash>

Yep...Windows Me...naw...not for me...that was doomed for failure from the start. Let's hope 7 has more redeeming qualities than Vista.

...Doing the upgrade shuffle...[:D]
Title: HAL Sings a Song (in his own voice)!
Post by: One on January 20, 2009, 09:30:17 pm
BGG!

Up the 5.1 !!   OH Yea.[8]
Title: HAL Sings a Song (in his own voice)!
Post by: jasondude7116 on January 21, 2009, 06:26:26 pm
***NOTE***
it seems as if any response (text file) that is over 62k (aprox), will be cut short.

if you were to create files to be read back later, then it seems that hal is limited to this size per file.

-just a note[:)]

-the dude

Title: HAL Sings a Song (in his own voice)!
Post by: snowman on January 21, 2009, 11:43:30 pm
62KB is approximately 10,500 words or 44 pages of average print.

That's a reasonable size for most topics. Although books would then be out of the question.

Title: HAL Sings a Song (in his own voice)!
Post by: jasondude7116 on January 22, 2009, 01:24:26 am
quote:
Originally posted by snowman

62KB is approximately 10,500 words or 44 pages of average print.

That's a reasonable size for most topics. Although books would then be out of the question.





you could say something like please read now war and peace chapter 1.1 (in order to break it down)
you could have a function that would let you know where you stopped when you last read the book.
it might also be cool to have a journal or "captains log"
you could make a new text file for every enrty so that you could use the full 62k for each entry. the date or some tag line like captains log stardate (whatever date)could append at the begining of the file.
say journal entry blah blah blah
or captains log stardate whatever then blah blah
Title: HAL Sings a Song (in his own voice)!
Post by: snowman on January 22, 2009, 12:45:33 pm
That is an awsome idea!

It could automatically give the entry a date so later you just refer to that particular journal date.

Star Date 1.22.09 -- the dude has come up with another brilliant idea

Star Date 1.22.09.001 -- must remind the dude that (I'm not sure) string lengths have a maximum lenth.

Star Date 1.22.09.002 -- probably still need to append to the same file because string length would significantly reduce each entry log.

Star Date 1.22.09.003 -- Not to mention the fact that most people would use this feature so much that....

Star Date 1.22.09.004 there would potentially be thousands and thousands of individual files with there own star date.

Does anybody know for sure how long a String can be in Hal? I know that Hal can only process so much but whats the potential of a possible string length that can be used for the dudes purposes?

Keep up the good work Dude. Im sure Jean Luc would be proud.[:)][8D]
Title: HAL Sings a Song (in his own voice)!
Post by: One on January 22, 2009, 12:52:49 pm
Hal can handle a very large int num so I think Hal can probably handle a large str.
I have used large strings with many true and false in the sentence and Hal can react to them all , some , or none at all..
Title: HAL Sings a Song (in his own voice)!
Post by: jasondude7116 on January 22, 2009, 08:16:28 pm
i'm thinking this is easy script. (that i don't know how to do)[:I]
my ideas are:

1 nothing should be appended to the brain.(uh well....see below comments)

2 should be able to create a file based on input(ex):if LogEntry="" Then LogEntry= instr("captains log stardate", *, 1)
LogEntry would be the file name to be created

3 you would then have the option of making a single 1.22.09 file with multiple entries or creating 1.22.09.1 and 1.22.09.2 ect.

4 if you said read log entry 1.22.09 it could read all the 1.22.09.* files or you could say read log entry 1.22.09.1 for a specific entry.

there would be a lot of files but they would all be in a date order, therefore easy to search-find.

* i personally think no entries should append to the brain, BUT for someone better at this than me, you could have hal edit the entry to something more like a conversational response with the knowledge that it is a log entry. so that hal could say something like: i understand you were discussing-(last conversation topic)- in your journal today ( last week) ect.  there could be many such responses if the appending was done in seperate tables( or an outside file .brn) where the log entry would not be used in "normal" conversation.


just a couple of ideas, but it does sound cool.
i don't think i can program all of those functions, might be time to call on the big boys![:D][:)][:D]
Title: HAL Sings a Song (in his own voice)!
Post by: snowman on January 22, 2009, 09:23:12 pm

Hal can remember phone numbers, email addresses, street addresses, appointments, birthdays. It can run programs, browse the internet, give us the weather, give basic definitions. About the only thing left is keeping track of larger datafiles.

Hal should be able to store and read encyclopedia articles, a captains log, as well as sing songs, read stories, read books, perhaps store recipes, or even be agile and be able to store any size of text with any title you choose to give it so it could keep track of anything you wish. Like a blackberry... only cut and paste. All this or most of this 'should' be designed into the Hal brain itself.

Some have been working on the Wikapedia pluggin, you did a good job on the readastory and singasong, reading a book could easily be apart of the readastory, only it would be in chapters and perhaps read in succession as you said Dude:
"if you said read log entry 1.22.09 it could read all the 1.22.09.* files or you could say read log entry 1.22.09.1 for a specific entry." only instead of entry dates it would be chapters.

Things like recipes, How to's, or even employee and statistical information should be apart of Hal. It would definitely make Hal more useful and appealing to a larger customer base.

Yep, I think this is getting bigger than you and I.
Anybody know where the big dogs live. Here boy![8] [:)]
Title: HAL Sings a Song (in his own voice)!
Post by: jasondude7116 on January 22, 2009, 10:00:17 pm
i think you are on to something, in the way that it makes me think this could all be within one plugin.

the individual parts would take different user "commands"(ex. please read blah blah) , but the rest of the real guts would be the same (create a file, read the file).

even the singing is the same.

different "command" text files(ex. song.txt 1/22/09.txt cats.txt) could save into independent folders(ex. songs  journal  encyclopedia ect.), in one main folder, such as DATABANK

the user input string could be saved in custom hal brain tables such as SONG  POEM  JOURNAL  BOOK  ENCYCLOPEDIA ect.
hal could make comments from these tables such as "i remember when you taught me about snakes" (based on encyclopedia snake file existing---not brain table, but file existence)   or   "i noticed you said blah blah blah in your journal last week", would you like to talk to me about it?(based on line in custom brain table called journal-where hal could pick a journal entry text string and it could be saved with the corrosponding date)   or   i remember reading *whatever book* to you, what was your favorite part?(based on a custom table called book where the name of the book could be saved after it has been read)  ect.

other than that- user input would not be stored in regular conversation tables

sounds like normal par for the course programming based on using my other plugins ect. to code from, the new thing would be the file creation (simple file creation and appending) and the brain tables which i have seen done for several plugins (in this fashion)


*****************CALLING THE LORDS 'O PROGRAMMING*******************


THIS PLUGIN IDEA BASED ON SINGASONG2 AND READASTORY ECT. COULD BE VERY VALUABLE. AND ALL OF THIS TYPE PROGRAMMING HAS BEEN DONE ALREADY.

ANY HELP WOULD BE GREATLY APPRECIATED-----
  [:D][:)][8D]

IF I CAN HELP IN ANY WAY PLEASE HOLLER.

***************************************************************

-the dude
Title: HAL Sings a Song (in his own voice)!
Post by: One on January 22, 2009, 11:58:51 pm
I said something about this to Darcy ED...

'Arrays' are like groups of variables that allow you to store sets of data. A single dimension array is useful for storing and working with a single set of data, while a multidimensional array can be used for storing and working with multiple sets of data.
Their are many techniques for programming these such as summing and averaging all the elements in an array, summing all the columns in a two-dimensional array, searching an array for a specific value and using parallel arrays. IF you can understand that everything needs to organized byval and enabled, anchored or docked, THEN this is simple.[8]