Enum rusoto_polly::SynthesizeSpeechError
[−]
[src]
pub enum SynthesizeSpeechError { InvalidSampleRate(String), InvalidSsml(String), LexiconNotFound(String), MarksNotSupportedForFormat(String), ServiceFailure(String), SsmlMarksNotSupportedForTextType(String), TextLengthExceeded(String), HttpDispatch(HttpDispatchError), Credentials(CredentialsError), Validation(String), Unknown(String), }
Errors returned by SynthesizeSpeech
Variants
InvalidSampleRate(String)
The specified sample rate is not valid.
InvalidSsml(String)
The SSML you provided is invalid. Verify the SSML syntax, spelling of tags and values, and then try again.
LexiconNotFound(String)
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.
MarksNotSupportedForFormat(String)
Speech marks are not supported for the OutputFormat
selected. Speech marks are only available for content in json
format.
ServiceFailure(String)
An unknown condition has caused a service failure.
SsmlMarksNotSupportedForTextType(String)
SSML speech marks are not supported for plain text-type input.
TextLengthExceeded(String)
The value of the "Text" parameter is longer than the accepted limits. The limit for input text is a maximum of 3000 characters total, of which no more than 1500 can be billed characters. SSML tags are not counted as billed characters.
HttpDispatch(HttpDispatchError)
An error occurred dispatching the HTTP request
Credentials(CredentialsError)
An error was encountered with AWS credentials.
Validation(String)
A validation error occurred. Details from AWS are provided.
Unknown(String)
An unknown error occurred. The raw HTTP response is provided.
Methods
impl SynthesizeSpeechError
[src]
fn from_body(body: &str) -> SynthesizeSpeechError
[src]
Trait Implementations
impl Debug for SynthesizeSpeechError
[src]
impl PartialEq for SynthesizeSpeechError
[src]
fn eq(&self, __arg_0: &SynthesizeSpeechError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SynthesizeSpeechError) -> bool
[src]
This method tests for !=
.
impl From<Error> for SynthesizeSpeechError
[src]
fn from(err: Error) -> SynthesizeSpeechError
[src]
Performs the conversion.
impl From<CredentialsError> for SynthesizeSpeechError
[src]
fn from(err: CredentialsError) -> SynthesizeSpeechError
[src]
Performs the conversion.
impl From<HttpDispatchError> for SynthesizeSpeechError
[src]
fn from(err: HttpDispatchError) -> SynthesizeSpeechError
[src]
Performs the conversion.
impl From<Error> for SynthesizeSpeechError
[src]
fn from(err: Error) -> SynthesizeSpeechError
[src]
Performs the conversion.
impl Display for SynthesizeSpeechError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more