Struct google_texttospeech1::api::SynthesizeSpeechRequest
source · pub struct SynthesizeSpeechRequest {
pub audio_config: Option<AudioConfig>,
pub input: Option<SynthesisInput>,
pub voice: Option<VoiceSelectionParams>,
}
Expand description
The top-level message sent by the client for the SynthesizeSpeech
method.
§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).
- synthesize text (request)
Fields§
§audio_config: Option<AudioConfig>
Required. The configuration of the synthesized audio.
input: Option<SynthesisInput>
Required. The Synthesizer requires either plain text or SSML as input.
voice: Option<VoiceSelectionParams>
Required. The desired voice of the synthesized audio.
Trait Implementations§
source§impl Clone for SynthesizeSpeechRequest
impl Clone for SynthesizeSpeechRequest
source§fn clone(&self) -> SynthesizeSpeechRequest
fn clone(&self) -> SynthesizeSpeechRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SynthesizeSpeechRequest
impl Debug for SynthesizeSpeechRequest
source§impl Default for SynthesizeSpeechRequest
impl Default for SynthesizeSpeechRequest
source§fn default() -> SynthesizeSpeechRequest
fn default() -> SynthesizeSpeechRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SynthesizeSpeechRequest
impl<'de> Deserialize<'de> for SynthesizeSpeechRequest
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
source§impl Serialize for SynthesizeSpeechRequest
impl Serialize for SynthesizeSpeechRequest
impl RequestValue for SynthesizeSpeechRequest
Auto Trait Implementations§
impl RefUnwindSafe for SynthesizeSpeechRequest
impl Send for SynthesizeSpeechRequest
impl Sync for SynthesizeSpeechRequest
impl Unpin for SynthesizeSpeechRequest
impl UnwindSafe for SynthesizeSpeechRequest
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