c# - 如何在c#中识别阿拉伯文化

标签 c# speech-recognition culture

我正在开发识别阿拉伯语的软件,但我的应用程序无法识别阿拉伯语。 我使用以下代码来识别系统中安装的文化,但它只提供“en-US”和“en-GB”,尽管我在 Windows 7 中安装了阿拉伯语言

Thread.CurrentThread.CurrentCulture = new CultureInfo("ar-SA");


foreach (RecognizerInfo config in SpeechRecognitionEngine.InstalledRecognizers())
            {
                if (config.Culture.ToString() == preferredCulture)
                {
                    speechRecognitionEngine = new SpeechRecognitionEngine(config);
                    break;
                }
            }

我的问题是如何在应用程序中添加阿拉伯文化而不将Windows语言从英语更改为阿拉伯语;我想将 Windows 语言保留为通常理解的英语。

最佳答案

Microsoft 不会在任何 Windows 版本中附带阿拉伯语 SR 引擎。据我所知,目前还没有兼容 SAPI 的阿拉伯语 SR 引擎。抱歉。

关于c# - 如何在c#中识别阿拉伯文化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17826138/

相关文章:

c# - 为用户控件内的列表框设置项目模板

javascript - 使用 javascript 检查输入字段文本框中的多个单词

python - 如何修复 : MatplotlibDeprecationWarning: shading ='flat' when X and Y have the same dimensions as C is deprecated since 3. 3

speech-recognition - 如何在java中将语音转换为文本?

时间:: In a dotnet class is there a property that states if the "Current" culture is actual the default culture?

algorithm - 蒙古语名字的处理

c# - Task.StartNew 在运行时持有主线程

c# - excel to oracle db 使用 VS 2005 C#

android - 第一次在 RecognitionLIstener Android 中调用 onRmsChanged

c# - 如何在一个Form上同时为两个不同的Control设置两种不同的Culture?