enum SpeechInputError { // There was no error. SPEECH_INPUT_ERROR_NONE = 0, // The user or a script aborted speech input. SPEECH_INPUT_ERROR_ABORTED, // There was an error with recording audio. SPEECH_INPUT_ERROR_AUDIO, // There was a network error. SPEECH_INPUT_ERROR_NETWORK, // No speech heard before timeout. SPEECH_INPUT_ERROR_NO_SPEECH, // Speech was heard, but could not be interpreted. SPEECH_INPUT_ERROR_NO_MATCH, // There was an error in the speech recognition grammar. SPEECH_INPUT_ERROR_BAD_GRAMMAR, };