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.
5 // This file intentionally does not have header guards, it's included
6 // inside a macro to generate enum values.
8 #ifndef DEFINE_SPEECH_RECOGNITION_ERROR
9 #error "DEFINE_SPEECH_RECOGNITION_ERROR must be defined before including this."
12 // There was no error.
13 DEFINE_SPEECH_RECOGNITION_ERROR(NONE
, 0)
15 // The user or a script aborted speech input.
16 DEFINE_SPEECH_RECOGNITION_ERROR(ABORTED
, 1)
18 // There was an error with recording audio.
19 DEFINE_SPEECH_RECOGNITION_ERROR(AUDIO
, 2)
21 // There was a network error.
22 DEFINE_SPEECH_RECOGNITION_ERROR(NETWORK
, 3)
24 // Not allowed for privacy or security reasons.
25 DEFINE_SPEECH_RECOGNITION_ERROR(NOT_ALLOWED
, 4)
27 // No speech heard before timeout.
28 DEFINE_SPEECH_RECOGNITION_ERROR(NO_SPEECH
, 5)
30 // Speech was heard, but could not be interpreted.
31 DEFINE_SPEECH_RECOGNITION_ERROR(NO_MATCH
, 6)
33 // There was an error in the speech recognition grammar.
34 DEFINE_SPEECH_RECOGNITION_ERROR(BAD_GRAMMAR
, 7)
36 // Reports the highest value. Update when adding a new error code.
37 DEFINE_SPEECH_RECOGNITION_ERROR(LAST
, 7)