CancellationErrorCode Enum
Definition
Defines error code in case that CancellationReason is Error. Added in version 1.1.0.
public enum CancellationErrorCode
- Inheritance
-
java.lang.Objectjava.lang.Enum<CancellationErrorCode>CancellationErrorCode
Fields
| AuthenticationFailure | Indicates an authentication error. An authentication error occurs if subscription key or authorization token is invalid, expired, or does not match the region being used. |
| 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. If CancellationReason is EndOfStream, CancellationErrorCode is set to NoError. |
| 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. Used internally |
| ServiceRedirectTemporary | Indicates the Speech Service is temporarily requesting a reconnect to a different endpoint. Used internally |
| 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. |