com.nuance.nmdp.speechkit
Interface SpeechError


public interface SpeechError

Describes an error that has occurred during a Recognizer or Vocalizer operation.


Nested Class Summary
static class SpeechError.Codes
          Possible error codes returned by getErrorCode()().
 
Method Summary
 int getErrorCode()
          Get the error code.
 java.lang.String getErrorDetail()
          Get a string describing the error.
 java.lang.String getSuggestion()
          Get a suggestion to the user about how he or she can improve performance.
 

Method Detail

getErrorCode

int getErrorCode()
Get the error code. Possible values for the error are defined in SpeechError.Codes.

Returns:
The error code.

getErrorDetail

java.lang.String getErrorDetail()
Get a string describing the error.

Returns:
The error.

getSuggestion

java.lang.String getSuggestion()
Get a suggestion to the user about how he or she can improve performance. Examples include moving to a less noisy location if the environment is extremely noisy, or waiting a bit longer to start speaking if the beginning of the recording seems truncated.

Returns:
The suggestion string, or null if there is none.