System.Speech throws "No voice on the system or exclusion from the current security restriction" in the Windows service

Long time reader, first time poster.

I am developing a Windows service in C # .Net 3.5 to perform text-to-speech operations.

I am using System.Speech (Microsoft Speech API 3.x).

I deployed the service to x200 for Windows Server 2008, and now it throws the following exception:

System.InvalidOperationException: No voice installed on the system or none available with the current security setting.
   at System.Speech.Internal.Synthesis.VoiceSynthesis.Speak(Prompt prompt)
   at System.Speech.Synthesis.SpeechSynthesizer.Speak(Prompt prompt)
   at System.Speech.Synthesis.SpeechSynthesizer.Speak(String textToSpeak)

The service runs under a domain account. If I change the service to run under my personal domain account (which has fairly high privileges), everything works fine (so [Anna ]'s voice is definitely set). Therefore, I am absolutely sure that this is a security problem.

What permissions / modifications do I need to make to another domain account to make this work?

, Windows auth MSSQL.

.

+1
4

: / C:\windows\system32\config\systemprofile\appdata\roaming , .

0

x64 OS AnyCPU. x86, .

0

i Visual Studio , .

0

"".;)

errorrun as administrator

-1

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


All Articles