What permissions are required to use System.Speech.Synthesis?

I use System.Speech.Synthesis from .NET 4.5.1 to create a WAV file from a line in a service launched by a “specific user” (created when configuring products) without permissions but services and R / W to access the folder containing the generated WAV file.

In the new win7sp1 x64 with all updates, calling methods such as System.Speech.Synthesis.SelectVoice or System.Speech.Synthesis.Speak fails with the InvalidOperationExceptionmessage "There is no voice in the system or not in the current security setting."

The only voice available in the system is by default Microsoft Anna - English (United States).

If I start the service like LocalSystemor Administrator, it works well.

If I add a “specific user” to a group Administrators, it works too, but I don’t add it to any other “well-known group”.

But starting the service with a "specific user" is mandatory (for other purposes) and adding it to the group is Administratorsexcluded for security reasons.

Of course, MSDN is very elusive about this and doesn't even mention an exception ...

, . Stackoverflow ASP.NET, : ASP.NET

ASP.Net

, , :

System.Speech " , , " Windows

, ,

# SpeechSynthesizer - " , "

- , System.Speech.Synthesis?

+4

Source: https://habr.com/ru/post/1680217/


All Articles