### YamlMime:JavaType uid: "com.microsoft.cognitiveservices.speech.KeywordRecognitionModel" fullName: "com.microsoft.cognitiveservices.speech.KeywordRecognitionModel" name: "KeywordRecognitionModel" nameWithType: "KeywordRecognitionModel" summary: "Represents a keyword recognition model for recognizing when the user says a keyword to initiate further speech recognition." inheritances: - "" inheritedClassMethods: - classRef: "" methodsRef: - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" syntax: "public class **KeywordRecognitionModel**
implements " methods: - uid: "com.microsoft.cognitiveservices.speech.KeywordRecognitionModel.close()" fullName: "com.microsoft.cognitiveservices.speech.KeywordRecognitionModel.close()" name: "close()" nameWithType: "KeywordRecognitionModel.close()" summary: "Dispose of associated resources." syntax: "public void close()" desc: "Dispose of associated resources." - uid: "com.microsoft.cognitiveservices.speech.KeywordRecognitionModel.fromConfig(com.microsoft.cognitiveservices.speech.EmbeddedSpeechConfig)" fullName: "com.microsoft.cognitiveservices.speech.KeywordRecognitionModel.fromConfig(EmbeddedSpeechConfig embeddedSpeechConfig)" name: "fromConfig(EmbeddedSpeechConfig embeddedSpeechConfig)" nameWithType: "KeywordRecognitionModel.fromConfig(EmbeddedSpeechConfig embeddedSpeechConfig)" summary: "Creates a keyword recognition model using the specified embedded speech config." modifiers: - "static" parameters: - description: "Embedded speech config." name: "embeddedSpeechConfig" type: "" syntax: "public static KeywordRecognitionModel fromConfig(EmbeddedSpeechConfig embeddedSpeechConfig)" desc: "Creates a keyword recognition model using the specified embedded speech config." returns: description: "The keyword recognition model." type: "" - uid: "com.microsoft.cognitiveservices.speech.KeywordRecognitionModel.fromConfig(com.microsoft.cognitiveservices.speech.EmbeddedSpeechConfig,java.util.List)" fullName: "com.microsoft.cognitiveservices.speech.KeywordRecognitionModel.fromConfig(EmbeddedSpeechConfig embeddedSpeechConfig, List userDefinedWakeWords)" name: "fromConfig(EmbeddedSpeechConfig embeddedSpeechConfig, List userDefinedWakeWords)" nameWithType: "KeywordRecognitionModel.fromConfig(EmbeddedSpeechConfig embeddedSpeechConfig, List userDefinedWakeWords)" summary: "Creates a keyword recognition model using the specified embedded speech config and user-defined wake words." modifiers: - "static" parameters: - description: "Embedded speech config." name: "embeddedSpeechConfig" type: "" - description: "User-defined wake words." name: "userDefinedWakeWords" type: "<>" syntax: "public static KeywordRecognitionModel fromConfig(EmbeddedSpeechConfig embeddedSpeechConfig, List userDefinedWakeWords)" desc: "Creates a keyword recognition model using the specified embedded speech config and user-defined wake words." returns: description: "The keyword recognition model." type: "" - uid: "com.microsoft.cognitiveservices.speech.KeywordRecognitionModel.fromFile(java.lang.String)" fullName: "com.microsoft.cognitiveservices.speech.KeywordRecognitionModel.fromFile(String fileName)" name: "fromFile(String fileName)" nameWithType: "KeywordRecognitionModel.fromFile(String fileName)" summary: "Creates a keyword recognition model using the specified filename." modifiers: - "static" parameters: - description: "A string that represents file name for the keyword recognition model.\n Note, the file can point to a zip file in which case the model will be extracted from the zip." name: "fileName" type: "" syntax: "public static KeywordRecognitionModel fromFile(String fileName)" desc: "Creates a keyword recognition model using the specified filename." returns: description: "The keyword recognition model being created." type: "" - uid: "com.microsoft.cognitiveservices.speech.KeywordRecognitionModel.fromStream(java.io.InputStream,java.lang.String,boolean)" fullName: "com.microsoft.cognitiveservices.speech.KeywordRecognitionModel.fromStream(InputStream inputStream, String name, boolean isZipped)" name: "fromStream(InputStream inputStream, String name, boolean isZipped)" nameWithType: "KeywordRecognitionModel.fromStream(InputStream inputStream, String name, boolean isZipped)" summary: "Creates a keyword recognition model using the specified input stream." modifiers: - "static" parameters: - description: "A stream that represents data for the keyword recognition model.\n Note, the file can be a zip file in which case the model will be extracted from the zip." name: "inputStream" type: "" - description: "The name of the keyword. Note: The name needs to be unique for different keywords as it will be\n used internally to match a particular keyword spotter model. In case you are updating the keyword\n with a new version, add a version tag to the name or otherwise the previous version will be\n overwritten on disk." name: "name" type: "" - description: "If true, the input stream is treated as a zip. false, if the input is just the kws table file." name: "isZipped" type: "" syntax: "public static KeywordRecognitionModel fromStream(InputStream inputStream, String name, boolean isZipped)" exceptions: - description: "In case the kws.table file was not found or the temp directory could not be created." type: "" desc: "Creates a keyword recognition model using the specified input stream." returns: description: "The keyword recognition model being created." type: "" - uid: "com.microsoft.cognitiveservices.speech.KeywordRecognitionModel.getImpl()" fullName: "com.microsoft.cognitiveservices.speech.KeywordRecognitionModel.getImpl()" name: "getImpl()" nameWithType: "KeywordRecognitionModel.getImpl()" summary: "Returns the keyword recognition model." syntax: "public SafeHandle getImpl()" desc: "Returns the keyword recognition model." returns: description: "The implementation of the model." type: "" type: "class" desc: "Represents a keyword recognition model for recognizing when the user says a keyword to initiate further speech recognition. Note: close() must be called in order to release underlying resources held by the object." implements: - "" metadata: {} package: "com.microsoft.cognitiveservices.speech" artifact: com.microsoft.cognitiveservices.speech:client-sdk:1.38.0