SpeechTranslationModel Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. SpeechTranslationModel
- com.
Implements
public class SpeechTranslationModel
implements java.lang.AutoCloseable
Contains detailed speech translation 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.lang.String |
getName()
Gets the model name. |
java.lang.String |
getPath()
Gets the model path (only valid for offline models). |
java.util.List<java.lang.String> |
getSourceLanguages()
Gets the source languages that the model supports. |
java.util.List<java.lang.String> |
getTargetLanguages()
Gets the target languages that the model supports. |
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:
getName
public String getName()
Gets the model name.
Returns:
getPath
public String getPath()
Gets the model path (only valid for offline models).
Returns:
getSourceLanguages
public List
Gets the source languages that the model supports.
Returns:
getTargetLanguages
public List
Gets the target languages that the model supports.
Returns:
getVersion
public String getVersion()
Gets the model version.
Returns:
Applies to
Azure SDK for Java