SpeechRecognitionModel Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. SpeechRecognitionModel
- com.
Implements
public class SpeechRecognitionModel
implements java.lang.AutoCloseable
Contains detailed speech recognition model information. Note: close() must be called in order to release underlying resources held by the object.
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
close()
Explicitly frees any external resource attached to the object. |
Safe |
getImpl()
Returns the model info implementation. |
java.util.List<java.lang.String> |
getLocales()
Gets the locales of the model in BCP-47 format. |
java.lang.String |
getName()
Gets the model name. |
java.lang.String |
getPath()
Gets the model path (only valid for offline models). |
java.lang.String |
getVersion()
Gets the model version. |
Methods inherited from java.lang.Object
Method Details
close
public void close()
Explicitly frees any external resource attached to the object.
getImpl
public SafeHandle getImpl()
Returns the model info implementation.
Returns:
getLocales
public List
Gets the locales of the model in BCP-47 format.
Returns:
getName
public String getName()
Gets the model name.
Returns:
getPath
public String getPath()
Gets the model path (only valid for offline models).
Returns:
getVersion
public String getVersion()
Gets the model version.
Returns:
Applies to
Azure SDK for Java