【发布时间】:2014-03-07 01:12:45
【问题描述】:
我正在运行这个 Hello World 示例 我的代码是
private async void Button_Click(object sender, RoutedEventArgs e)
{
var synth = new Windows.Media.SpeechSynthesis.SpeechSynthesizer();
Windows.Media.SpeechSynthesis.SpeechSynthesisStream stream = await synth.SynthesizeTextToStreamAsync("Hello World");
var mediaElement = new MediaElement();
mediaElement.SetSource(stream,stream.ContentType);
mediaElement.Play();
}
当我调试它时,我得到一个错误:
An exception of type 'System.IO.FileNotFoundException' occurred in SunnahForKids.exe but was not handled in user code
Additional information: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
【问题讨论】:
-
你确定所有被引用的DLL都可用吗?
标签: c# text-to-speech windows-8.1