Class SpeechRecognitionModel
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.SpeechRecognitionModel
-
- All Implemented Interfaces:
AutoCloseable
public class SpeechRecognitionModel extends Object implements AutoCloseable
Contains detailed speech recognition model information. Note: close() must be called in order to release underlying resources held by the object.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Explicitly frees any external resource attached to the object.SafeHandlegetImpl()Returns the model info implementation.List<String>getLocales()Gets the locales of the model in BCP-47 format.StringgetName()Gets the model name.StringgetPath()Gets the model path (only valid for offline models).StringgetVersion()Gets the model version.
-
-
-
Method Detail
-
getName
public String getName()
Gets the model name.- Returns:
- The model name.
-
getLocales
public List<String> getLocales()
Gets the locales of the model in BCP-47 format.- Returns:
- The locales of the model.
-
getPath
public String getPath()
Gets the model path (only valid for offline models).- Returns:
- The model path.
-
getVersion
public String getVersion()
Gets the model version.- Returns:
- The model version.
-
close
public void close()
Explicitly frees any external resource attached to the object.- Specified by:
closein interfaceAutoCloseable
-
getImpl
public SafeHandle getImpl()
Returns the model info implementation.- Returns:
- The implementation handle.
-
-