首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Windows 10 - System.Speech.Synthesis无法获得移动语音版本

Windows 10 - System.Speech.Synthesis无法获得移动语音版本
EN

Stack Overflow用户
提问于 2017-02-10 03:38:52
回答 1查看 1.2K关注 0票数 2

在我的Windows 10语言中,我安装了两个版本的英语:

  • 我们
  • 英国

因此,“设置”>“时间与语言”>“言语”

在“文本到演讲”一节中,我可以看到以下选项:

  • Microsoft David Mobile
  • 微软乔治移动
  • 微软苏珊移动
  • 微软黑泽尔移动公司
  • 微软Zira移动公司
  • 微软马克移动

但是,在C# WinForm中,使用以下代码:

代码语言:javascript
复制
using System.Speech.Synthesis;
SpeechSynthesizer ss = new SpeechSynthesizer();
ss.GetInstalledVoices();

我只能得到:

  • 微软大卫桌面
  • 微软黑泽尔桌面
  • 微软Zira桌面

我想念苏珊,乔治和马克。

我怎样才能在C# WinForm中获得苏珊、乔治和马克的语音版本?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-05-17 12:29:06

您只能从属于Windows.Media.SpeechSynthesis框架的WinRT名称空间访问Windows 10声音。所以您不能在WPF或WinForms中使用它们。

请参阅:What are the different between "Windows.Media.SpeechSynthesis" and "System.Speech.Synthesis"?

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42151093

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档