[][src]Struct gcp_client::google::cloud::texttospeech::v1::Voice

pub struct Voice {
    pub language_codes: Vec<String>,
    pub name: String,
    pub ssml_gender: i32,
    pub natural_sample_rate_hertz: i32,
}

Description of a voice supported by the TTS service.

Fields

language_codes: Vec<String>

The languages that this voice supports, expressed as BCP-47 language tags (e.g. "en-US", "es-419", "cmn-tw").

name: String

The name of this voice. Each distinct voice has a unique name.

ssml_gender: i32

The gender of this voice.

natural_sample_rate_hertz: i32

The natural sample rate (in hertz) for this voice.

Implementations

impl Voice[src]

pub fn ssml_gender(&self) -> SsmlVoiceGender[src]

Returns the enum value of ssml_gender, or the default if the field is set to an invalid enum value.

pub fn set_ssml_gender(&mut self, value: SsmlVoiceGender)[src]

Sets ssml_gender to the provided enum value.

Trait Implementations

impl Clone for Voice[src]

impl Debug for Voice[src]

impl Default for Voice[src]

impl Message for Voice[src]

impl PartialEq<Voice> for Voice[src]

impl StructuralPartialEq for Voice[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]