【发布时间】:2015-11-15 18:15:38
【问题描述】:
此代码在 windows 通用应用程序 10 中不起作用
var mediaPronunciation = new MediaElement();
using (var speech = new SpeechSynthesizer())
{
speech.Voice = SpeechSynthesizer.AllVoices
.First(i => i.Gender == VoiceGender.Male);
var voiceStream = await speech.SynthesizeTextToStreamAsync("fast");
mediaPronunciation.SetSource(voiceStream, voiceStream.ContentType);
mediaPronunciation.Play();
}
我遇到了这个错误
{“找不到指定的模块。(来自HRESULT的异常:0x8007007E)”:null}
我找到了这个话题,他也有同样的问题 How do you make Speech to Text work in Windows (Phone) 8.1 Universal App
请帮助我如何解决这个问题?
谢谢
【问题讨论】:
标签: windows-phone-8.1 text-to-speech win-universal-app speech winrt-async