Struct google_texttospeech1::api::Voice
source · pub struct Voice {
pub language_codes: Option<Vec<String>>,
pub name: Option<String>,
pub natural_sample_rate_hertz: Option<i32>,
pub ssml_gender: Option<String>,
}
Expand description
Description of a voice supported by the TTS service.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- list voices (none)
Fields§
§language_codes: Option<Vec<String>>
The languages that this voice supports, expressed as BCP-47 language tags (e.g. “en-US”, “es-419”, “cmn-tw”).
name: Option<String>
The name of this voice. Each distinct voice has a unique name.
natural_sample_rate_hertz: Option<i32>
The natural sample rate (in hertz) for this voice.
ssml_gender: Option<String>
The gender of this voice.
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 Resource for Voice
Auto Trait Implementations§
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