-1

我正在开发一个应用程序来使用 windows phone 8 中的语音合成器将文本转换为语音。我想突出显示语音合成器所说的文本。在 MSDN 站点中,getCurrentlySpokenPrompt() 方法在 SpeechSynthesizer 类中可用,但在我的代码中没有这样的方法是可访问的。

这是我的代码:

SpeechSynthesizer synth = new SpeechSynthesizer();
IAsyncAction task= synth.SpeakTextAsync("text");
var spokenText = synth.GetCurrentlySpokenPrompt(); // here its giving error

谁能帮我!

4

1 回答 1

1

WP 8并且WP 8.1具有有限的功能和有限的 api 集。我可能认为在WP. 查看 msdn 链接以获取适用于 Windows Phone 8 的文本转语音 (TTS) 的帮助

于 2014-04-29T10:06:32.410 回答