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