[英]App doesn't “see” the microphone after Windows 10 upgrade
2 days ago my Windows 10 had a complete auto upgrade & the result of that is that a WPF application that I wrote, stopped "seeing" my microphones (I tested 3 different ones). 2天前,我的Windows 10进行了完整的自动升级,结果是我编写的WPF应用程序停止“看到”我的麦克风(我测试了3种不同的麦克风)。 Windows itself is seeing them perfectly fine.
Windows本身认为它们完美无缺。 But the app doesn't seem to activate them (the green led light doesn't turn on like it used to) upon launch.
但是该应用似乎在启动时并未激活它们(绿色的led灯没有像以前那样打开)。 Any ideas where I could start looking to fix this?
有什么想法可以开始解决这个问题吗? I already re downloaded the microphone's drivers and did a fresh install.
我已经重新下载了麦克风的驱动程序并进行了全新安装。 I guess its not a code issue since I haven't touched the code at all, but below I show the part where I use to start the Speech Recognition.
我想这根本不是代码问题,因为我根本没有接触过代码,但是下面我展示了我用来启动语音识别的部分。 Thank you.
谢谢。
private void StartRecognition()
{
LoadGrammars();
recognizer.SpeechDetected += new EventHandler<SpeechDetectedEventArgs>(recognizer_SpeechDetected);
recognizer.SpeechRecognitionRejected += new EventHandler<SpeechRecognitionRejectedEventArgs>(recognizer_SpeechRecognitionRejected);
recognizer.SpeechRecognized += new EventHandler<SpeechRecognizedEventArgs>(recognizer_SpeechRecognized);
recognizer.RecognizeCompleted += new EventHandler<RecognizeCompletedEventArgs>(recognizer_RecognizeCompleted);
speechRecognitionThread = new System.Threading.Thread(delegate ()
{
try
{
recognizer.SetInputToDefaultAudioDevice();
recognizer.RecognizeAsync(RecognizeMode.Multiple);
}
catch { }
});
speechRecognitionThread.Start();
}
I found the problem. 我发现了问题。 Even though your microphone might appear and work correctly in Windows Sound settings, you still need to set it up further so that all apps can see it and not just Windows.
即使您的麦克风可能会出现并在Windows声音设置中正常工作,您仍然需要进行进一步设置,以便所有应用程序都能看到它,而不仅仅是Windows。 Here is how you do that:
这是您的操作方式:
Go to your control panel and click on "speech recognition". 转到控制面板,然后单击“语音识别”。
Now click on Advanced speech recognition. 现在单击高级语音识别。
Hope this heps others! 希望这能帮助别人!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.