Exemple #1
0
 public void AddSpeechCommand(SpeechCommand speechCommand)
 {
     if (speechCommand != null)
     {
         m_SpeechCommands.Add(speechCommand);
         KeywordManager.Instance.AddKeyword(speechCommand.KeyWord, speechCommand.OnWord, m_RawConfidence);
     }
 }
Exemple #2
0
        public void RemoveSpeechCommand(SpeechCommand speechCommand)
        {
            if (speechCommand != null)
            {
                if (m_SpeechCommands.Contains(speechCommand))
                {
                    m_SpeechCommands.Remove(speechCommand);
                }

                KeywordManager.Instance.RemoveKeyword(speechCommand.KeyWord, speechCommand.OnWord);
            }
        }