My program won't work...
-
Tuesday, August 14, 2012 11:37 PM
Hi all,
I made my own speech program using Noah Buscher's "Speak" extension, but it won't execute.
When I try to run it, I get the window that says, "~~~.exe has stopped working..."
Is it a coding problem?
Please help!
Here is my source code:
TextWindowPlus.Title = "Speak"
TextWindowPlus.Left = 0
TextWindowPlus.Top = 0
talking:
TextWindow.WriteLine("Please enter text for me to speak:")
txt=TextWindow.Read()
Program.Delay(100)
Speak.SpeakText(txt)
Program.Delay(100)
TextWindow.Write("Do you want me to say more? Type 'y' for yes and 'n' for no: ")
opt1 = TextWindow.Read()
If opt1 = "y" Or "Y" Or "yes" Or "Yes" Or "YES" Then
Goto talking
ElseIf opt1 = "n" or "N" or "no" or "No" or "NO" Then
time=Clock.Hour
If time < 16 then
TextWindow.Write("Thankyou for using Speak. Have a good day!")
ElseIf time < 20 then
TextWindow.Write("Thankyou for using Speak. Have a good evening!")
Else
TextWindow.Write("Thankyou for using Speak. Have a good night!")
EndIf
EndIfThanks for any help!
------------------------------------------------------------------------------------------
All Replies
-
Wednesday, August 15, 2012 9:04 AM
Try to run the program with the line Speak.SpeakText commented out.
If it runs then you know the error is in the spaek extension, if you get the
same error the rest of your program has an error
Jan [ WhTurner ] The Netherlands
- Edited by WhTurner33 Wednesday, August 15, 2012 9:04 AM
- Marked As Answer by Joman Mied Friday, August 31, 2012 2:34 AM
-
Wednesday, August 15, 2012 6:15 PMAnswererFirst save the program in the Documents / My Documents folder. That way Small Basic can have write permissions. If that doesn't work, I will get in touch with Noah and inspect the extension's code.
-
Wednesday, August 15, 2012 8:20 PMModeratorThere is also a speech extension in LitDev extension, that speaks text and does speech recognition (some speech recognition training and a decent microphone helps).
-
Wednesday, August 15, 2012 8:56 PM
Okay, I will try that. I will update when I do.
------------------------------------------------------------------------------------------
- Edited by Joman Mied Wednesday, August 15, 2012 10:49 PM
-
Wednesday, August 15, 2012 8:57 PM
(gungan37)
Thanks for the response! I will try it and reply back when I do.
------------------------------------------------------------------------------------------
- Edited by Joman Mied Wednesday, August 15, 2012 10:50 PM
-
Wednesday, August 15, 2012 8:58 PM
(litdev)
Alright! If all else fails, I will try that extension, thanks for the response!
------------------------------------------------------------------------------------------
- Edited by Joman Mied Wednesday, August 15, 2012 10:48 PM
-
Wednesday, August 15, 2012 10:47 PMOkay, it works without the Speak.SpeakText() command. Hmmmm....
------------------------------------------------------------------------------------------
-
Wednesday, August 15, 2012 11:51 PMAnswererAnother option to try is my PlusPlus Extension (see extensions sticky). It features advanced speech control, such as speed, gender/age of the voice (provided those voices are installed), volume, etc.
-
Thursday, August 16, 2012 3:26 AMAlright, sounds good!
------------------------------------------------------------------------------------------
-
Thursday, August 16, 2012 3:40 PM
I am so sorry for the trouble! It worked fine on my computer... I will try to fix this. :)-Noah J. Buscher "Nothing is Impossible Until Proven Impossible."
- Marked As Answer by Joman Mied Friday, August 31, 2012 2:34 AM
-
Friday, August 17, 2012 2:39 AMOh, it is okay! I like trying extensions, and to be honest, it isn't too big of a deal for me if it doesn't work. If you can fix it though, that would be great!
------------------------------------------------------------------------------------------

