【问题标题】:Windows 10 - System.Speech.Synthesis cannot get Mobile version of voiceWindows 10 - System.Speech.Synthesis 无法获取移动版语音
【发布时间】:2017-05-17 21:05:45
【问题描述】:

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

  • 美国
  • 英国

因此,在 [设置] > [时间和语言] > [语音]

在 [Text-to-Speech] 部分下,我可以看到以下选项:

  • 微软大卫移动
  • 微软乔治移动
  • 微软苏珊移动
  • Microsoft Hazel 移动版
  • 微软 Zira 移动
  • 微软马克移动

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

using System.Speech.Synthesis;
SpeechSynthesizer ss = new SpeechSynthesizer();
ss.GetInstalledVoices();

我只能得到:

  • 微软大卫桌面
  • Microsoft Hazel 桌面
  • Microsoft Zira 桌面

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

如何在 C# WinForm 中获取 Susan、George 和 Mark 语音版本?

【问题讨论】:

  • 您找到解决方案了吗?
  • @bslein 不,我没有
  • 您只能从属于 WinRT 框架的 Windows.Media.SpeechSynthesis 命名空间访问 Windows 10 语音...
  • @bslein 谢谢老兄:)
  • @bslein 你想把它作为答案发布吗?

标签: c# winforms text-to-speech


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-13
    • 1970-01-01
    • 2017-01-22
    • 2016-02-15
    • 2016-02-24
    • 2010-09-23
    相关资源
    最近更新 更多