Error enum

ru.yandex.speechkit

public  enum  Error 

Descriptions of errors that may occur while working with various library components.

Constructors

Error(int code, String string)

Methods

intgetCode()

Returns the error code.

StringgetString()

Returns the error description string.

intvalue()

Fields

ERROR_API_KEY

Error validating the API key.

ERROR_AUDIO

Audio recording error.

ERROR_AUDIO_PERMISSIONS

The app doesn't have permission to use the microphone.

ERROR_AUDIO_PLAYER

Audio production error.

ERROR_BUSY

Another operation in progress.

ERROR_CANCELED

Operation canceled.

ERROR_ENCODING

Encoding error.

ERROR_NETWORK

Network error.

ERROR_NO_SPEECH

No speech detected.

ERROR_NO_TEXT_TO_SYNTHESIZE

Error converting text to speech.

ERROR_NOT_AVAILABLE

Service is not available.

ERROR_OK

No error.

ERROR_SERVER

Server-side error.

ERROR_UNKNOWN

Unknown error.

Constructor descriptions

Error

public Error (int code, String string)

Method descriptions

getCode

public int getCode ()

Returns the error code.

Returns:

Error code.

getString

public String getString ()

Returns the error description string.

Returns:

The error description string.

value

public int value ()

Field descriptions

ERROR_API_KEY

public ERROR_API_KEY ()

Error validating the API key.

ERROR_AUDIO

public ERROR_AUDIO ()

Audio recording error.

ERROR_AUDIO_PERMISSIONS

public ERROR_AUDIO_PERMISSIONS ()

The app doesn't have permission to use the microphone.

ERROR_AUDIO_PLAYER

public ERROR_AUDIO_PLAYER ()

Audio production error.

ERROR_BUSY

public ERROR_BUSY ()

Another operation in progress.

ERROR_CANCELED

public ERROR_CANCELED ()

Operation canceled.

ERROR_ENCODING

public ERROR_ENCODING ()

Encoding error.

ERROR_NETWORK

public ERROR_NETWORK ()

Network error.

ERROR_NOT_AVAILABLE

public ERROR_NOT_AVAILABLE ()

Service is not available.

ERROR_NO_SPEECH

public ERROR_NO_SPEECH ()

No speech detected.

ERROR_NO_TEXT_TO_SYNTHESIZE

public ERROR_NO_TEXT_TO_SYNTHESIZE ()

Error converting text to speech.

ERROR_OK

public ERROR_OK ()

No error.

ERROR_SERVER

public ERROR_SERVER ()

Server-side error.

ERROR_UNKNOWN

public ERROR_UNKNOWN ()

Unknown error.