Sdílet prostřednictvím


SpeechRecognitionModel Class

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

Implements

java.lang.AutoCloseable

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.

SafeHandle 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

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.

getLocales

public List getLocales()

Gets the locales of the model in BCP-47 format.

Returns:

The locales of the model.

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.

getVersion

public String getVersion()

Gets the model version.

Returns:

The model version.

Applies to