我在 SpeechSynthesizer 中收到一个错误,它说:
错误:“await”要求“Windows.Foundation.IAsynAction”类型具有合适的 GetAwaiter 方法。您是否缺少“系统”的指令?
我使用纯文本,我的代码是这样的
await synth.SpeakTextAsync(titleTextBox.Text);
我在 SpeechSynthesizer 中收到一个错误,它说:
错误:“await”要求“Windows.Foundation.IAsynAction”类型具有合适的 GetAwaiter 方法。您是否缺少“系统”的指令?
我使用纯文本,我的代码是这样的
await synth.SpeakTextAsync(titleTextBox.Text);