将文本转换为单词时出现异常



我已经使用Microsoft Silvia合成器很多年了,从来没有遇到过任何问题。今天早上它停止了工作,这个错误又回来了:

No entries in the system or no entry available with the security

这是我使用的代码:

SpeechSynthesizer ss = new SpeechSynthesizer();
var voiceList = ss.GetInstalledVoices();
ss.SelectVoice(voiceList[0].VoiceInfo.Name); 
ss.Volume = 100; 
ss.Rate = 0; 
ss.SpeakAsync("123");

奇怪但有效的解决方案:在Visual Studio 2019上执行相同的代码,使用相同的目标框架,效果完美!

最新更新