speech_recognition_error_list.h revision 5d1f7b1de12d16ceb2c938c56701a3e8bfa558f7
1// Copyright 2013 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5// This file intentionally does not have header guards, it's included 6// inside a macro to generate enum values. 7 8#ifndef DEFINE_SPEECH_RECOGNITION_ERROR 9#error "DEFINE_SPEECH_RECOGNITION_ERROR must be defined before including this." 10#endif 11 12// There was no error. 13DEFINE_SPEECH_RECOGNITION_ERROR(NONE, 0) 14 15// The user or a script aborted speech input. 16DEFINE_SPEECH_RECOGNITION_ERROR(ABORTED, 1) 17 18// There was an error with recording audio. 19DEFINE_SPEECH_RECOGNITION_ERROR(AUDIO, 2) 20 21// There was a network error. 22DEFINE_SPEECH_RECOGNITION_ERROR(NETWORK, 3) 23 24// Not allowed for privacy or security reasons. 25DEFINE_SPEECH_RECOGNITION_ERROR(NOT_ALLOWED, 4) 26 27// No speech heard before timeout. 28DEFINE_SPEECH_RECOGNITION_ERROR(NO_SPEECH, 5) 29 30// Speech was heard, but could not be interpreted. 31DEFINE_SPEECH_RECOGNITION_ERROR(NO_MATCH, 6) 32 33// There was an error in the speech recognition grammar. 34DEFINE_SPEECH_RECOGNITION_ERROR(BAD_GRAMMAR, 7) 35 36// Reports the highest value. Update when adding a new error code. 37DEFINE_SPEECH_RECOGNITION_ERROR(LAST, 7) 38 39