SpeechSynthesizer没有得到所有已安装的声音 [英] SpeechSynthesizer doesn't get all installed voices

查看:1806
本文介绍了SpeechSynthesizer没有得到所有已安装的声音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的Windows 7 64位操作系统,以便能够从一个.NET应用程序我开发使用安装了一个新的32位ScanSoft公司的语音(珍妮弗)。

I have installed a new 32 bits Scansoft voice (Jennifer) in my Windows 7 64 bits OS in order to be able to use from in one .NET application i'm developing.

现在的问题是,我当我调用方法:

The problem is that I when I call the method :

   List<string> allInstalledVoices = new SpeechSynthesizer().GetInstalledVoices();

我只得到一个声音又回来了,默认的微软安娜语音。但我可以看到在其他文本中的所有已安装的声音,语音应用。

I only get one voice returned, the default Microsoft Anna Voice. but I can see all the installed voices in other text to speech application.

推荐答案

我发现什么问题。事实证明,编译该项目以任何CPU时(使用Visual Studio 2008),将出现问题。但是,当改为86,问题不会再出现。

I found what the problem was. It turns out that when compiling the project to "Any CPU" (using Visual Studio 2008), the problem occurs. but when changed to x86, the problem doesn't appear anymore.

这篇关于SpeechSynthesizer没有得到所有已安装的声音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆