Forum Discussion
BrianGCampbell
Oct 07, 2022Copper Contributor
System.Speech not working on deployment
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 a...
neo232
Oct 07, 2022Copper Contributor
That is not true. C# runs on the server. JavaScript and HTML run in the user's browser. The library you are using is C# running on the server, so the sound would play on the server. It works on your local machine because it is the client and server during development. There is no workaround; find a library that does what you need with JavaScript on the client, maybe?
https://thabani.co.za/uk49s-results-today/
https://thabani.co.za/uk49s-results-today/
- BrianGCampbellOct 07, 2022Copper Contributor
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.