不同的语言识别 [英] Different Launguage Recognition

查看:83
本文介绍了不同的语言识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮助我,如何在C#中识别不同的语言,例如(印地语,阿拉伯语等)(语音识别系统项目)吗?

Can anyone please help me, that, how to recognize different languages like (Hindi, Arabic etc.) in C# (Speech Recognition System project)?

thanks in advance.

推荐答案

您的意思是:讲另一种语言吗?如果是这样,那就算了:几乎是不可能的.

如果只想使用不同语言的语音识别,则需要使用能够使用特定文化的特定识别器,该识别器是System.Speech.Recognition.SpeechRecognitionEngine.

请参阅: http://msdn.microsoft.com/en-us/library/system.speech.recognition.speechrecognitionengine.aspx [ ^ ].根据文化,您将需要一个单独的此类实例.

注意!此类需要一个线程状态为System.Threading.ApartmentState.MTA的线程.如果您在带有MTA的线程中运行它,它将显示错误的异常,非信息性和误导性(可能是一个错误).如果您的应用程序线程是STA(例如WPF中的STA),则需要在单独的线程中运行识别.

除了多个区域性之外,您不能将System.Speech.Recognition.SpeechRecognizer与相同的功能一起使用,它仅适用于默认区域.

—SA
Do you mean: tell one language from another one? If so, forget it: practically impossible.

If you simply want to use speech recognition with different languages, you need to use specific recognizer capable of using specific culture, this one: System.Speech.Recognition.SpeechRecognitionEngine.

See: http://msdn.microsoft.com/en-us/library/system.speech.recognition.speechrecognitionengine.aspx[^]. You will need a separate instance of this class per culture.

Attention! This class required a thread with thread apartment state System.Threading.ApartmentState.MTA. If you run it in the thread with MTA it will show wrong exception, non-informative and misleading (probably a bug). If your application thread is STA (like in WPF), you will need to run recognition in a separate thread.

You cannot use System.Speech.Recognition.SpeechRecognizer with the same functionality except multiple cultures, it will work only with default one.

—SA


这篇关于不同的语言识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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