Compartir a través de


SourceLanguageConfig Class

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

Implements

java.lang.AutoCloseable

public final class SourceLanguageConfig
implements java.lang.AutoCloseable

Represents source language configuration used for specifying recognition source language. Note: close() must be called in order to release underlying resources held by the object. Added in version 1.8.0

Method Summary

Modifier and Type Method and Description
void close()

Explicitly frees any external resource attached to the object

static SourceLanguageConfig fromLanguage(String language)

Creates an instance of the SourceLanguageConfig

static SourceLanguageConfig fromLanguage(String language, String endpointId)

Creates an instance of the SourceLanguageConfig with source language and endpoint ID.

SafeHandle getImpl()

Returns the implementation of source language config object

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

fromLanguage

public static SourceLanguageConfig fromLanguage(String language)

Creates an instance of the SourceLanguageConfig

Parameters:

language - Specifies the source language. This functionality was added in version 1.8.0.

Returns:

The source language configuration being created.

fromLanguage

public static SourceLanguageConfig fromLanguage(String language, String endpointId)

Creates an instance of the SourceLanguageConfig with source language and endpoint ID.

Parameters:

language - Specifies the source language.
endpointId - Specifies the endpoint ID of a customized speech model that is used for speech recognition. This functionality was added in version 1.8.0.

Returns:

The source language configuration being created.

getImpl

public SafeHandle getImpl()

Returns the implementation of source language config object

Returns:

The implementation of the source language Config

Applies to