There is no voice installed in the system, or not available with the current security setting

Exception on IIS server When trying to create a WAV file in C # using SpeechSynthesizer.

+2
source share
3 answers

This error occurs when the application cannot access the voice to use SpeechSynthesizer. The first possible reason is the absence of any established votes in the system. This is most likely not a problem, but you should still double-check it by doing something like the following code:

SpeechSynthesizer ssTest = new SpeechSynthesizer();
System.Diagnostics.Debug.WriteLine(ssTest.GetInstalledVoices().Count);

Assuming the above number returns a number above 0, the problem is probably the more complex problem when setting the security settings of your application.

SpeechSynthesizer, SetOutputToWaveFile, , . (, -, SpeechSynthesizer), -. IIS . , , , , : , LocalSystem.

, , .

+1

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

0

"".;)

errorrun as administrator

-1

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


All Articles