System.InvalidOperationException was unhandled Message="A timeout occurred starting

Discussion in 'Programming' started by DanielRosca, Apr 19, 2009.

  1. #1
    When I try to run a speech recognition script in c# VS 2008 I'm getting this error:


    A timeout occurred starting the SAPI Server.


    System.InvalidOperationException was unhandled
    Message="A timeout occurred starting the SAPI Server."
    Source="System.Speech"
    StackTrace:
    at System.Speech.Internal.SapiInterop.SapiRecognizer..ctor(RecognizerType type)
    at System.Speech.Recognition.SpeechRecognizer..ctor()
    at testdan.Form1..ctor() in C:\Users\Dany\Documents\Visual Studio 2008\Projects\testdan\testdan\Form1.cs:line 17
    at testdan.Program.Main() in C:\Users\Dany\Documents\Visual Studio 2008\Projects\testdan\testdan\Program.cs:line 18
    at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
    at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
    at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()
    InnerException:



    This is the 17th line from form1.cs :

    SpeechRecognizer rec = new SpeechRecognizer();



    What should I do ?
     
    DanielRosca, Apr 19, 2009 IP
  2. DanielRosca

    DanielRosca Active Member

    Messages:
    158
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #2
    I solved the problem. Thanks anyway.
     
    DanielRosca, Apr 25, 2009 IP
  3. NuLLByTe

    NuLLByTe Active Member

    Messages:
    382
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    80
    #3
    How did you resolve it?
     
    NuLLByTe, Apr 26, 2009 IP