none
My program won't work... RRS feed

  • Question

  • 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
    EndIf

    Thanks for any help!


    ------------------------------------------------------------------------------------------

    Tuesday, August 14, 2012 11:37 PM

Answers

  • 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


    Wednesday, August 15, 2012 9:04 AM
    Answerer
  • 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
    Thursday, August 16, 2012 3:40 PM

All replies

  • 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


    Wednesday, August 15, 2012 9:04 AM
    Answerer
  • First 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 6:15 PM
    Answerer
  • There 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:20 PM
    Moderator
  • (WhTurner33)

    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:56 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:57 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 8:58 PM
  • Okay, it works without the Speak.SpeakText() command. Hmmmm....

    ------------------------------------------------------------------------------------------

    Wednesday, August 15, 2012 10:47 PM
  • Another 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.
    Wednesday, August 15, 2012 11:51 PM
    Answerer
  • Alright, sounds good!

    ------------------------------------------------------------------------------------------

    Thursday, August 16, 2012 3:26 AM
  • 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
    Thursday, August 16, 2012 3:40 PM
  • Oh, 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!

    ------------------------------------------------------------------------------------------

    Friday, August 17, 2012 2:39 AM