- Home /
Question by
DonnachaLohan · Nov 28, 2018 at 10:50 PM ·
windows 10speechrecognition
Windows speak recognition only partially working, is there a limit set to the number of phrases?
I'm having an odd issue with windows speech recognition, I had previously set it up to recognise a few simple directional words which all react as they should within the code, but after adding a few additional words for additional functionalities it doesn't recognise any of the new words added to the array of string values that are inputted into the phrase recogniser. Is this because there is a limit to the number of phrases or could I have forgotten an additional step to adding new values to the list of known phrases.
public string[] keyWords = new string[] { "Up", "Down", "Left", "Right", "Cast" };
public ConfidenceLevel confidince = ConfidenceLevel.Medium;
public Text text;
protected PhraseRecognizer recognise;
protected string word;
void Start () {
if (keyWords != null)
{
recognise = new KeywordRecognizer(keyWords, confidince);
recognise.OnPhraseRecognized += Recognizer;
recognise.Start();
}
}
private void Recognizer(PhraseRecognizedEventArgs args)
{
word = args.text;
text.text = "You Said: " + word;
}
Comment