1// Copyright (c) 2012 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#include "chrome/browser/speech/extension_api/tts_extension_api_constants.h" 6 7namespace tts_extension_api_constants { 8 9const char kCharIndexKey[] = "charIndex"; 10const char kDesiredEventTypesKey[] = "desiredEventTypes"; 11const char kEnqueueKey[] = "enqueue"; 12const char kErrorMessageKey[] = "errorMessage"; 13const char kEventTypeKey[] = "type"; 14const char kEventTypesKey[] = "eventTypes"; 15const char kExtensionIdKey[] = "extensionId"; 16const char kGenderKey[] = "gender"; 17const char kIsFinalEventKey[] = "isFinalEvent"; 18const char kLangKey[] = "lang"; 19const char kOnEventKey[] = "onEvent"; 20const char kPitchKey[] = "pitch"; 21const char kRateKey[] = "rate"; 22const char kRemoteKey[] = "remote"; 23const char kRequiredEventTypesKey[] = "requiredEventTypes"; 24const char kSrcIdKey[] = "srcId"; 25const char kVoiceNameKey[] = "voiceName"; 26const char kVolumeKey[] = "volume"; 27 28const char kGenderFemale[] = "female"; 29const char kGenderMale[] = "male"; 30 31const char kEventTypeCancelled[] = "cancelled"; 32const char kEventTypeEnd[] = "end"; 33const char kEventTypeError[] = "error"; 34const char kEventTypeInterrupted[] = "interrupted"; 35const char kEventTypeMarker[] = "marker"; 36const char kEventTypePause[] = "pause"; 37const char kEventTypeResume[] = "resume"; 38const char kEventTypeSentence[] = "sentence"; 39const char kEventTypeStart[] = "start"; 40const char kEventTypeWord[] = "word"; 41 42const char kErrorInvalidGender[] = "Invalid gender."; 43const char kErrorInvalidLang[] = "Invalid lang."; 44const char kErrorInvalidPitch[] = "Invalid pitch."; 45const char kErrorInvalidRate[] = "Invalid rate."; 46const char kErrorInvalidVolume[] = "Invalid volume."; 47const char kErrorMissingPauseOrResume[] = 48 "A TTS engine extension should either listen for both onPause and onResume " 49 "events, or neither."; 50const char kErrorUndeclaredEventType[] = 51 "Cannot send an event type that is not declared in the extension manifest."; 52const char kErrorUtteranceTooLong[] = "Utterance length is too long."; 53 54} // namespace tts_extension_api_constants. 55