【发布时间】:2014-06-24 07:31:07
【问题描述】:
我用于设置 in proc 识别引擎的 SAPI 代码如下所示:
ISpeechRecoContext cpRecoCtx;
// create the recognition context
cpRecoCtx = new SpeechLib.SpInProcRecoContext();
((SpInProcRecoContext)cpRecoCtx).Recognition +=
new _ISpeechRecoContextEvents_RecognitionEventHandler(RecoContext_Recognition);
/****** END: set up recognition context *****/
那么如何在 C# 中将我的音频输入设置为默认音频输入?我在 C++ 中找到了解决方案,但需要一个用于 C# 的解决方案。
【问题讨论】:
-
您提供的代码不完整。特别是,您需要指定识别器引擎以及输入源。
标签: c# speech-recognition sapi