Class SpeechTranslationModel
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.SpeechTranslationModel
-
- All Implemented Interfaces:
AutoCloseable
public class SpeechTranslationModel extends Object implements AutoCloseable
Contains detailed speech translation 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.StringgetName()Gets the model name.StringgetPath()Gets the model path (only valid for offline models).List<String>getSourceLanguages()Gets the source languages that the model supports.List<String>getTargetLanguages()Gets the target languages that the model supports.StringgetVersion()Gets the model version.
-
-
-
Method Detail
-
getName
public String getName()
Gets the model name.- Returns:
- The model name.
-
getSourceLanguages
public List<String> getSourceLanguages()
Gets the source languages that the model supports.- Returns:
- Source languages of the model.
-
getTargetLanguages
public List<String> getTargetLanguages()
Gets the target languages that the model supports.- Returns:
- Target languages 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.
-
-