Class PollyException
- Exception
-
RuntimeException
-
Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
-
Aws\Polly\Exception\PollyException
- Namespace: Aws\Polly\Exception
- Located at Polly/Exception/PollyException.php
Represents an error interacting with the Amazon Polly service.
Methods Summary
Methods inherited from Aws\Exception\AwsException
__construct()
,
__toString()
,
get()
,
getAwsErrorCode()
,
getAwsErrorMessage()
,
getAwsErrorShape()
,
getAwsErrorType()
,
getAwsRequestId()
,
getCommand()
,
getRequest()
,
getResponse()
,
getResult()
,
getStatusCode()
,
getTransferInfo()
,
hasKey()
,
isConnectionError()
,
isMaxRetriesExceeded()
,
search()
,
setMaxRetriesExceeded()
,
setTransferInfo()
Methods inherited from Exception
__wakeup()
,
getCode()
,
getFile()
,
getLine()
,
getMessage()
,
getPrevious()
,
getTrace()
,
getTraceAsString()
Methods inherited from ArrayAccess
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
Methods inherited from Aws\MonitoringEventsInterface
Methods used from Aws\HasDataTrait
Methods used from Aws\HasMonitoringEventsTrait
Expected Exception Codes
EngineNotSupportedException
[ 'message' => '<string>', ]
Description
This engine is not compatible with the voice that you have designated. Choose a new voice that is compatible with the engine or change the engine and restart the operation.
Members
- message
-
- Type: string
InvalidLexiconException
[ 'message' => '<string>', ]
Description
Amazon Polly can't find the specified lexicon. Verify that the lexicon's name is spelled correctly, and then try again.
Members
- message
-
- Type: string
InvalidNextTokenException
[ 'message' => '<string>', ]
Description
The NextToken is invalid. Verify that it's spelled correctly, and then try again.
Members
- message
-
- Type: string
InvalidS3BucketException
[ 'message' => '<string>', ]
Description
The provided Amazon S3 bucket name is invalid. Please check your input with S3 bucket naming requirements and try again.
Members
- message
-
- Type: string
InvalidS3KeyException
[ 'message' => '<string>', ]
Description
The provided Amazon S3 key prefix is invalid. Please provide a valid S3 object key name.
Members
- message
-
- Type: string
InvalidSampleRateException
[ 'message' => '<string>', ]
Description
The specified sample rate is not valid.
Members
- message
-
- Type: string
InvalidSnsTopicArnException
[ 'message' => '<string>', ]
Description
The provided SNS topic ARN is invalid. Please provide a valid SNS topic ARN and try again.
Members
- message
-
- Type: string
InvalidSsmlException
[ 'message' => '<string>', ]
Description
The SSML you provided is invalid. Verify the SSML syntax, spelling of tags and values, and then try again.
Members
- message
-
- Type: string
InvalidTaskIdException
[ 'message' => '<string>', ]
Description
The provided Task ID is not valid. Please provide a valid Task ID and try again.
Members
- message
-
- Type: string
LanguageNotSupportedException
[ 'message' => '<string>', ]
Description
The language specified is not currently supported by Amazon Polly in this capacity.
Members
- message
-
- Type: string
LexiconNotFoundException
[ 'message' => '<string>', ]
Description
Amazon Polly can't find the specified lexicon. This could be caused by a lexicon that is missing, its name is misspelled or specifying a lexicon that is in a different region.
Verify that the lexicon exists, is in the region (see ListLexicons) and that you spelled its name is spelled correctly. Then try again.
Members
- message
-
- Type: string
LexiconSizeExceededException
[ 'message' => '<string>', ]
Description
The maximum size of the specified lexicon would be exceeded by this operation.
Members
- message
-
- Type: string
MarksNotSupportedForFormatException
[ 'message' => '<string>', ]
Description
Speech marks are not supported for the OutputFormat
selected. Speech marks are only available for content in json
format.
Members
- message
-
- Type: string
MaxLexemeLengthExceededException
[ 'message' => '<string>', ]
Description
The maximum size of the lexeme would be exceeded by this operation.
Members
- message
-
- Type: string
MaxLexiconsNumberExceededException
[ 'message' => '<string>', ]
Description
The maximum number of lexicons would be exceeded by this operation.
Members
- message
-
- Type: string
ServiceFailureException
[ 'message' => '<string>', ]
Description
An unknown condition has caused a service failure.
Members
- message
-
- Type: string
SsmlMarksNotSupportedForTextTypeException
[ 'message' => '<string>', ]
Description
SSML speech marks are not supported for plain text-type input.
Members
- message
-
- Type: string
SynthesisTaskNotFoundException
[ 'message' => '<string>', ]
Description
The Speech Synthesis task with requested Task ID cannot be found.
Members
- message
-
- Type: string
TextLengthExceededException
[ 'message' => '<string>', ]
Description
The value of the "Text" parameter is longer than the accepted limits. For the SynthesizeSpeech
API, the limit for input text is a maximum of 6000 characters total, of which no more than 3000 can be billed characters. For the StartSpeechSynthesisTask
API, the maximum is 200,000 characters, of which no more than 100,000 can be billed characters. SSML tags are not counted as billed characters.
Members
- message
-
- Type: string
UnsupportedPlsAlphabetException
[ 'message' => '<string>', ]
Description
The alphabet specified by the lexicon is not a supported alphabet. Valid values are x-sampa
and ipa
.
Members
- message
-
- Type: string
UnsupportedPlsLanguageException
[ 'message' => '<string>', ]
Description
The language specified in the lexicon is unsupported. For a list of supported languages, see Lexicon Attributes.
Members
- message
-
- Type: string