pub struct Voice {
pub url: String,
pub gender: String,
pub name: String,
pub language: String,
pub description: String,
pub customisable: bool,
pub supported_features: Box<SupportedFeatures>,
pub customisation: Option<Box<Model>>,
}Available on crate feature
tts only.Expand description
Voices available for use in Watson
Fields§
§url: StringThe URI of the voice
gender: StringThe gender of the voice: male or female
name: StringThe name of the voice. Use this as the voice identifier in all requests
language: StringThe language and region of the voice (for example, en-US)
description: StringA textual description of the voice
customisable: boolIf true, the voice can be customised; if false, the voice cannot be customised. (Same as custom_pronunciation; maintained for backward compatibility.)
supported_features: Box<SupportedFeatures>Additional service features that are supported with the voice
customisation: Option<Box<Model>>Returns information about a specified custom model. This field is returned only by the Get a voice method and only when you specify the customisation ID of a custom model
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Voice
impl<'de> Deserialize<'de> for Voice
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Voice
impl StructuralPartialEq for Voice
Auto Trait Implementations§
impl Freeze for Voice
impl RefUnwindSafe for Voice
impl Send for Voice
impl Sync for Voice
impl Unpin for Voice
impl UnwindSafe for Voice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.