pub enum SynthesisError {
BadRequest400,
NotFound404,
NotAcceptable406,
UnsupportedMediaType415,
InternalServerError500,
ServiceUnavailable500,
ConnectionError(String),
}
Available on crate feature
tts
only.Expand description
Errors that may be returned in speech synethesis
Variants§
BadRequest400
A required input parameter is null or a specified input parameter or header value is invalid. For example, prompt_id ‘{prompt_id}’ not found in custom model ‘{customisation_id}’ if you attempt to use a nonexistent or deleted custom prompt
NotFound404
The specified voice does not exist or, for IBM Cloud Pak for Data, the voice parameter was not specified but the default voice is not installed. The message is Model ‘{voice}’ not found
NotAcceptable406
The request specified an incompatible content type or failed to specify a required sampling rate
UnsupportedMediaType415
The request specified an unacceptable media type
InternalServerError500
The service experienced an internal error
The service is currently unavailable
ConnectionError(String)
Some other error occurred in the request
Trait Implementations§
Source§impl Debug for SynthesisError
impl Debug for SynthesisError
Source§impl Display for SynthesisError
impl Display for SynthesisError
Source§impl Error for SynthesisError
impl Error for SynthesisError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SynthesisError
impl RefUnwindSafe for SynthesisError
impl Send for SynthesisError
impl Sync for SynthesisError
impl Unpin for SynthesisError
impl UnwindSafe for SynthesisError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more