github.com/aavshr/aws-sdk-go@v1.41.3/service/polly/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package polly 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeEngineNotSupportedException for service response error code 12 // "EngineNotSupportedException". 13 // 14 // This engine is not compatible with the voice that you have designated. Choose 15 // a new voice that is compatible with the engine or change the engine and restart 16 // the operation. 17 ErrCodeEngineNotSupportedException = "EngineNotSupportedException" 18 19 // ErrCodeInvalidLexiconException for service response error code 20 // "InvalidLexiconException". 21 // 22 // Amazon Polly can't find the specified lexicon. Verify that the lexicon's 23 // name is spelled correctly, and then try again. 24 ErrCodeInvalidLexiconException = "InvalidLexiconException" 25 26 // ErrCodeInvalidNextTokenException for service response error code 27 // "InvalidNextTokenException". 28 // 29 // The NextToken is invalid. Verify that it's spelled correctly, and then try 30 // again. 31 ErrCodeInvalidNextTokenException = "InvalidNextTokenException" 32 33 // ErrCodeInvalidS3BucketException for service response error code 34 // "InvalidS3BucketException". 35 // 36 // The provided Amazon S3 bucket name is invalid. Please check your input with 37 // S3 bucket naming requirements and try again. 38 ErrCodeInvalidS3BucketException = "InvalidS3BucketException" 39 40 // ErrCodeInvalidS3KeyException for service response error code 41 // "InvalidS3KeyException". 42 // 43 // The provided Amazon S3 key prefix is invalid. Please provide a valid S3 object 44 // key name. 45 ErrCodeInvalidS3KeyException = "InvalidS3KeyException" 46 47 // ErrCodeInvalidSampleRateException for service response error code 48 // "InvalidSampleRateException". 49 // 50 // The specified sample rate is not valid. 51 ErrCodeInvalidSampleRateException = "InvalidSampleRateException" 52 53 // ErrCodeInvalidSnsTopicArnException for service response error code 54 // "InvalidSnsTopicArnException". 55 // 56 // The provided SNS topic ARN is invalid. Please provide a valid SNS topic ARN 57 // and try again. 58 ErrCodeInvalidSnsTopicArnException = "InvalidSnsTopicArnException" 59 60 // ErrCodeInvalidSsmlException for service response error code 61 // "InvalidSsmlException". 62 // 63 // The SSML you provided is invalid. Verify the SSML syntax, spelling of tags 64 // and values, and then try again. 65 ErrCodeInvalidSsmlException = "InvalidSsmlException" 66 67 // ErrCodeInvalidTaskIdException for service response error code 68 // "InvalidTaskIdException". 69 // 70 // The provided Task ID is not valid. Please provide a valid Task ID and try 71 // again. 72 ErrCodeInvalidTaskIdException = "InvalidTaskIdException" 73 74 // ErrCodeLanguageNotSupportedException for service response error code 75 // "LanguageNotSupportedException". 76 // 77 // The language specified is not currently supported by Amazon Polly in this 78 // capacity. 79 ErrCodeLanguageNotSupportedException = "LanguageNotSupportedException" 80 81 // ErrCodeLexiconNotFoundException for service response error code 82 // "LexiconNotFoundException". 83 // 84 // Amazon Polly can't find the specified lexicon. This could be caused by a 85 // lexicon that is missing, its name is misspelled or specifying a lexicon that 86 // is in a different region. 87 // 88 // Verify that the lexicon exists, is in the region (see ListLexicons) and that 89 // you spelled its name is spelled correctly. Then try again. 90 ErrCodeLexiconNotFoundException = "LexiconNotFoundException" 91 92 // ErrCodeLexiconSizeExceededException for service response error code 93 // "LexiconSizeExceededException". 94 // 95 // The maximum size of the specified lexicon would be exceeded by this operation. 96 ErrCodeLexiconSizeExceededException = "LexiconSizeExceededException" 97 98 // ErrCodeMarksNotSupportedForFormatException for service response error code 99 // "MarksNotSupportedForFormatException". 100 // 101 // Speech marks are not supported for the OutputFormat selected. Speech marks 102 // are only available for content in json format. 103 ErrCodeMarksNotSupportedForFormatException = "MarksNotSupportedForFormatException" 104 105 // ErrCodeMaxLexemeLengthExceededException for service response error code 106 // "MaxLexemeLengthExceededException". 107 // 108 // The maximum size of the lexeme would be exceeded by this operation. 109 ErrCodeMaxLexemeLengthExceededException = "MaxLexemeLengthExceededException" 110 111 // ErrCodeMaxLexiconsNumberExceededException for service response error code 112 // "MaxLexiconsNumberExceededException". 113 // 114 // The maximum number of lexicons would be exceeded by this operation. 115 ErrCodeMaxLexiconsNumberExceededException = "MaxLexiconsNumberExceededException" 116 117 // ErrCodeServiceFailureException for service response error code 118 // "ServiceFailureException". 119 // 120 // An unknown condition has caused a service failure. 121 ErrCodeServiceFailureException = "ServiceFailureException" 122 123 // ErrCodeSsmlMarksNotSupportedForTextTypeException for service response error code 124 // "SsmlMarksNotSupportedForTextTypeException". 125 // 126 // SSML speech marks are not supported for plain text-type input. 127 ErrCodeSsmlMarksNotSupportedForTextTypeException = "SsmlMarksNotSupportedForTextTypeException" 128 129 // ErrCodeSynthesisTaskNotFoundException for service response error code 130 // "SynthesisTaskNotFoundException". 131 // 132 // The Speech Synthesis task with requested Task ID cannot be found. 133 ErrCodeSynthesisTaskNotFoundException = "SynthesisTaskNotFoundException" 134 135 // ErrCodeTextLengthExceededException for service response error code 136 // "TextLengthExceededException". 137 // 138 // The value of the "Text" parameter is longer than the accepted limits. For 139 // the SynthesizeSpeech API, the limit for input text is a maximum of 6000 characters 140 // total, of which no more than 3000 can be billed characters. For the StartSpeechSynthesisTask 141 // API, the maximum is 200,000 characters, of which no more than 100,000 can 142 // be billed characters. SSML tags are not counted as billed characters. 143 ErrCodeTextLengthExceededException = "TextLengthExceededException" 144 145 // ErrCodeUnsupportedPlsAlphabetException for service response error code 146 // "UnsupportedPlsAlphabetException". 147 // 148 // The alphabet specified by the lexicon is not a supported alphabet. Valid 149 // values are x-sampa and ipa. 150 ErrCodeUnsupportedPlsAlphabetException = "UnsupportedPlsAlphabetException" 151 152 // ErrCodeUnsupportedPlsLanguageException for service response error code 153 // "UnsupportedPlsLanguageException". 154 // 155 // The language specified in the lexicon is unsupported. For a list of supported 156 // languages, see Lexicon Attributes (https://docs.aws.amazon.com/polly/latest/dg/API_LexiconAttributes.html). 157 ErrCodeUnsupportedPlsLanguageException = "UnsupportedPlsLanguageException" 158 ) 159 160 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 161 "EngineNotSupportedException": newErrorEngineNotSupportedException, 162 "InvalidLexiconException": newErrorInvalidLexiconException, 163 "InvalidNextTokenException": newErrorInvalidNextTokenException, 164 "InvalidS3BucketException": newErrorInvalidS3BucketException, 165 "InvalidS3KeyException": newErrorInvalidS3KeyException, 166 "InvalidSampleRateException": newErrorInvalidSampleRateException, 167 "InvalidSnsTopicArnException": newErrorInvalidSnsTopicArnException, 168 "InvalidSsmlException": newErrorInvalidSsmlException, 169 "InvalidTaskIdException": newErrorInvalidTaskIdException, 170 "LanguageNotSupportedException": newErrorLanguageNotSupportedException, 171 "LexiconNotFoundException": newErrorLexiconNotFoundException, 172 "LexiconSizeExceededException": newErrorLexiconSizeExceededException, 173 "MarksNotSupportedForFormatException": newErrorMarksNotSupportedForFormatException, 174 "MaxLexemeLengthExceededException": newErrorMaxLexemeLengthExceededException, 175 "MaxLexiconsNumberExceededException": newErrorMaxLexiconsNumberExceededException, 176 "ServiceFailureException": newErrorServiceFailureException, 177 "SsmlMarksNotSupportedForTextTypeException": newErrorSsmlMarksNotSupportedForTextTypeException, 178 "SynthesisTaskNotFoundException": newErrorSynthesisTaskNotFoundException, 179 "TextLengthExceededException": newErrorTextLengthExceededException, 180 "UnsupportedPlsAlphabetException": newErrorUnsupportedPlsAlphabetException, 181 "UnsupportedPlsLanguageException": newErrorUnsupportedPlsLanguageException, 182 }