protected RoleSpeechReco() { SetName(RoleName); _instance = this; { //first argument is phrase to recognize, second is the value to return, this is for specifying grammar and result e.g. ("all off", "ALLOFF"), and ("good night", "ALLOFF") List <VParamType> args = new List <VParamType>() { new ParamType(ParamType.SimpleType.text, null), new ParamType(ParamType.SimpleType.text, null) }; List <VParamType> retVals = new List <VParamType>() { new ParamType(0) }; AddOperation(new Operation(OpSetSpeechPhraseName, args, retVals)); } { List <VParamType> args = new List <VParamType>(); List <VParamType> retVals = new List <VParamType>() { new ParamType(ParamType.SimpleType.text, "phrase") }; AddOperation(new Operation(OpPhraseRecognizedSubName, args, retVals, true)); } }
protected RoleSpeechReco() { SetName(RoleName); _instance = this; { //first argument is phrase to recognize, second is the value to return, this is for specifying grammar and result e.g. ("all off", "ALLOFF"), and ("good night", "ALLOFF") List<VParamType> args = new List<VParamType>() { new ParamType(ParamType.SimpleType.text, null), new ParamType(ParamType.SimpleType.text, null)}; List<VParamType> retVals = new List<VParamType>() {new ParamType(0)}; AddOperation(new Operation(OpSetSpeechPhraseName, args, retVals)); } { List<VParamType> args = new List<VParamType>(); List<VParamType> retVals = new List<VParamType>() { new ParamType(ParamType.SimpleType.text, "phrase") }; AddOperation(new Operation(OpPhraseRecognizedSubName, args, retVals, true)); } }