Partager via


CancellationErrorCode Enum

  • java.lang.Object
    • java.lang.Enum
      • com.microsoft.cognitiveservices.speech.CancellationErrorCode

public enum CancellationErrorCode
extends java.lang.Enum<CancellationErrorCode>

Defines error code in case that CancellationReason is Error. Added in version 1.1.0.

Fields

AuthenticationFailure

Indicates an authentication error.

BadRequest

Indicates that one or more recognition parameters are invalid or the audio format is not supported.

ConnectionFailure

Indicates a connection error.

EmbeddedModelError

Indicates the embedded speech (SR or TTS) model is not available or corrupted.

Forbidden

Indicates that the free subscription used by the request ran out of quota.

NoError

Indicates that no error occurred during speech recognition.

RuntimeError

Indicates an unexpected runtime error.

ServiceError

Indicates that an error is returned by the service.

ServiceRedirectPermanent

Indicates the Speech Service is permanently requesting a reconnect to a different endpoint.

ServiceRedirectTemporary

Indicates the Speech Service is temporarily requesting a reconnect to a different endpoint.

ServiceTimeout

Indicates a time-out error when waiting for response from service.

ServiceUnavailable

Indicates that the service is currently unavailable.

TooManyRequests

Indicates that the number of parallel requests exceeded the number of allowed concurrent transcriptions for the subscription.

Methods inherited from java.lang.Enum

java.lang.Enum.<T>valueOf java.lang.Enum.clone java.lang.Enum.compareTo java.lang.Enum.describeConstable java.lang.Enum.equals java.lang.Enum.finalize java.lang.Enum.getDeclaringClass java.lang.Enum.hashCode java.lang.Enum.name java.lang.Enum.ordinal java.lang.Enum.toString

Methods inherited from java.lang.Object

java.lang.Object.getClass java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Methods

getValue()

public int getValue()

Returns the internal value error code

Returns

int
the error code

valueOf(String name)

public static CancellationErrorCode valueOf(String name)

Parameters

name
java.lang.String

Returns

values()

public static CancellationErrorCode[] values()

Returns

Applies to