Error enum

ru.yandex.speechkit

public enum Error 

Describes errors occurring during recognition and init operations.

The error is returned using the RecognizerListener.onError and InitializerListener.onError callback methods.

Constructors

Error(int code, String string)

Methods

intgetCode()

Returns the error code.

StringgetString()

Returns the error description string.

intvalue()

Fields

ERROR_API_KEY

No error

ERROR_AUDIO

API Key error

ERROR_BUSY

Service is not available

ERROR_CANCELED

Server-side error

ERROR_ENCODING

Audio recording error

ERROR_NETWORK

Encoding error

ERROR_NO_SPEECH

Operation has been cancelled

ERROR_NOT_AVAILABLE

No speech detected

ERROR_OK

List of error codes.

ERROR_SERVER

Networking communication error

ERROR_UNKNOWN

Another operation in progress

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 ()

No error

ERROR_AUDIO

public ERROR_AUDIO ()

API Key error

ERROR_BUSY

public ERROR_BUSY ()

Service is not available

ERROR_CANCELED

public ERROR_CANCELED ()

Server-side error

ERROR_ENCODING

public ERROR_ENCODING ()

Audio recording error

ERROR_NETWORK

public ERROR_NETWORK ()

Encoding error

ERROR_NOT_AVAILABLE

public ERROR_NOT_AVAILABLE ()

No speech detected

ERROR_NO_SPEECH

public ERROR_NO_SPEECH ()

Operation has been cancelled

ERROR_OK

public ERROR_OK ()

List of error codes.

ERROR_SERVER

public ERROR_SERVER ()

Networking communication error

ERROR_UNKNOWN

public ERROR_UNKNOWN ()

Another operation in progress