Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

System.Speech Error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    System.Speech Error

    I'm getting an error using identical code to that which works fine in Visual Studio.
    using System.Speech.Synthesis
    I'm referencing the speech.dll assembly in the Framework 4.0
    There are no compile errors so I assume that, in spite of what it reports, it is finding the assembly:

    Error on calling 'OnBarUpdate' method for indicator 'SgSpeech' on bar 0: Could not load file or assembly 'System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

    #2
    sgordet, I would not be familiar with it unfortunately, but would look into referencing the suitable DLL from .NET 3.5 instead.

    Comment


      #3
      Thank you, Bertrand.
      You were right. NT refuses to find a reference in 4.0.
      For some reason, I don't have a reference to the speech.dll in the 3.5 framework (I googled it and others have had the same issue); however, I referenced the 3.0 framework (which had it) and it worked.
      Unfortunately, I can't say that it worked well. Processing stopped in the code for that chart while the words were spoken. Do you know if code processing is also stopped in my other charts while the words are being spoken for this chart or by its nature should each of the chart code run independently? I have a very fast 64 bit multi-core computer with 10GB RAM so processor speed shouldn't be an issue.

      Comment


        #4
        I would unfortunately not have experiences working with this C# dll, I suggest you simplify your code and setup and recheck to see what's contributing here to it.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        87 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        92 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        70 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        87 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        64 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X