I'm trying to integrate Microsoft Speech Platform
with Kinect and I've come across with the method: SpeechRecognitionEngine.InstalledRecognizers()
, which doesn't run at all. When I call the method from my class the execution doesn't continue. I'm using this method to get the Kinect Recognizer.
What's the problem? This is the piece of code where I'm using the method InstalledRecognizers()
:
RecognizerInfo obtenerReconocedorKinect()
{
String details;
System.Collections.ObjectModel.ReadOnlyCollection<RecognizerInfo> recs = SpeechRecognitionEngine.InstalledRecognizers();
foreach (RecognizerInfo recInfo in recs)
{
if (recInfo.AdditionalInfo.ContainsKey("Kinect"))
{
details = recInfo.AdditionalInfo["Kinect"];
if (details == "True" && recInfo.Culture.Name == "en-US")
{
return recInfo;
}
}
}
return null;
}
Thanks in advance.