Oct 06 2022 10:28 PM
I am using .NET 6 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.
Oct 07 2022 01:17 PM
Oct 07 2022 02:16 PM
@neo232 , it's a desktop application. No server. No Javascript. 100% C# running on a single computer. Like I said, works via IDE but throws an exception when installed.
Oct 09 2022 07:31 PM
Hi @BrianGCampbell,
Thanks for posting your issue here.
However this platform is used for how-to discussions and sharing best practices for building any app with .NET.Since your issue is a technical question, welcome to post it in Microsoft Q&A forum, the support team and communities on Microsoft Q&A will help you for any technical questions.
Besides, it will be appreciated if you can share it here once you post this technical question Microsoft Q&A.
Best Regards,
Lan Huang