1868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved. 2868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 3868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// found in the LICENSE file. 4868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 5868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// This file intentionally does not have header guards, it's included 6868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// inside a macro to generate enum values. 7868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 8868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#ifndef DEFINE_SPEECH_RECOGNITION_ERROR 9868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#error "DEFINE_SPEECH_RECOGNITION_ERROR must be defined before including this." 10868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#endif 11868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 12868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// There was no error. 13868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)DEFINE_SPEECH_RECOGNITION_ERROR(NONE, 0) 14868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 15868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// The user or a script aborted speech input. 16868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)DEFINE_SPEECH_RECOGNITION_ERROR(ABORTED, 1) 17868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 18868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// There was an error with recording audio. 19868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)DEFINE_SPEECH_RECOGNITION_ERROR(AUDIO, 2) 20868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 21868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// There was a network error. 22868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)DEFINE_SPEECH_RECOGNITION_ERROR(NETWORK, 3) 23868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 24868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Not allowed for privacy or security reasons. 25868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)DEFINE_SPEECH_RECOGNITION_ERROR(NOT_ALLOWED, 4) 26868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 27868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// No speech heard before timeout. 28868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)DEFINE_SPEECH_RECOGNITION_ERROR(NO_SPEECH, 5) 29868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 30868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Speech was heard, but could not be interpreted. 31868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)DEFINE_SPEECH_RECOGNITION_ERROR(NO_MATCH, 6) 32868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 33868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// There was an error in the speech recognition grammar. 34868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)DEFINE_SPEECH_RECOGNITION_ERROR(BAD_GRAMMAR, 7) 355d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 365d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Reports the highest value. Update when adding a new error code. 375d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)DEFINE_SPEECH_RECOGNITION_ERROR(LAST, 7) 385d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 39