我正在开发一个应用程序来使用 windows phone 8 中的语音合成器将文本转换为语音。我想突出显示语音合成器所说的文本。在 MSDN 站点中,getCurrentlySpokenPrompt() 方法在 SpeechSynthesizer 类中可用,但在我的代码中没有这样的方法是可访问的。
这是我的代码:
SpeechSynthesizer synth = new SpeechSynthesizer();
IAsyncAction task= synth.SpeakTextAsync("text");
var spokenText = synth.GetCurrentlySpokenPrompt(); // here its giving error
谁能帮我!