Exemplo n.º 1
0
 public void AddSpeechCommand(SpeechCommand speechCommand)
 {
     if (speechCommand != null)
     {
         m_SpeechCommands.Add(speechCommand);
         KeywordManager.Instance.AddKeyword(speechCommand.KeyWord, speechCommand.OnWord, m_RawConfidence);
     }
 }
Exemplo n.º 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);
            }
        }