Пример #1
0
    public void loadKeywords()
    {
        sb       = gameObject.GetComponent <SentenceBehaviour>();
        keywords = sb.keywords;

        if (keywords != null)
        {
            recognizer = new KeywordRecognizer(keywords, confidence);
            recognizer.OnPhraseRecognized += Recognizer_OnPhraseRecognized;
            recognizer.Start();
        }
    }
Пример #2
0
 public void loadKeywords()
 {
     sb = gameObject.GetComponent <SentenceBehaviour>();
     shuffledKeywords = sb.keywordsShuffled.ToArray();
 }