System.Speech not working on deployment

Brian Campbell 6 Reputation points
2022-10-10T23:13:10.743+00:00

I am using .NET 6 for a Desktop application under Windows 10 and have installed the System.Speech NuGet package. I am using the System.Speech.Synthesis library. It works fine within the Visual Studio IDE (compiled for Debug and Release) but as soon as I created an installer using the Microsoft Setup extension and install the program on exactly the same machine as running the IDE, I get an Exception: -

System.PlatformNotSupportedException: Speech is not supported on this platform.

Under the IDE, everything works fine - no crashes and I can hear the speech. Stand-alone the application causes an exception on creating an instance of the System.Speech.Synthesis.SpeechSynthesizer object.

Because it works fine under the IDE, I can't use it to do any pinpointing of the problem.

I have repeated this on three totally different computers all with the same results. It does not appear to be a configuration issue with one machine.

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,131 questions
{count} vote

1 answer

Sort by: Most helpful
  1. matthe wadam 1 Reputation point
    2022-11-28T09:18:27.913+00:00

    CureCloudMD is the best medical billing company in the USA that offers a complete suite of HIPAA-compliant healthcare revenue cycle management services including charge entry solutions, psychiatric billing services in USA & coding services, account receivable recovery services, reimbursement collection, and payment posting services.

    0 comments No comments