Sdílet prostřednictvím


SpeechTranslationModel Class

  • java.lang.Object
    • com.microsoft.cognitiveservices.speech.SpeechTranslationModel

Implements

java.lang.AutoCloseable

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.

SafeHandle 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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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:

The implementation handle.

getName

public String getName()

Gets the model name.

Returns:

The model name.

getPath

public String getPath()

Gets the model path (only valid for offline models).

Returns:

The model path.

getSourceLanguages

public List getSourceLanguages()

Gets the source languages that the model supports.

Returns:

Source languages of the model.

getTargetLanguages

public List getTargetLanguages()

Gets the target languages that the model supports.

Returns:

Target languages of the model.

getVersion

public String getVersion()

Gets the model version.

Returns:

The model version.

Applies to