pub struct SynthesizeSpeechResponse {
pub audio_content: Option<Vec<u8>>,
}
Expand description
The message returned to the client by 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 (response)
Fields§
§audio_content: Option<Vec<u8>>
The audio data bytes encoded as specified in the request, including the header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS). For LINEAR16 audio, we include the WAV header. Note: as with all bytes fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
Trait Implementations§
source§impl Clone for SynthesizeSpeechResponse
impl Clone for SynthesizeSpeechResponse
source§fn clone(&self) -> SynthesizeSpeechResponse
fn clone(&self) -> SynthesizeSpeechResponse
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 SynthesizeSpeechResponse
impl Debug for SynthesizeSpeechResponse
source§impl Default for SynthesizeSpeechResponse
impl Default for SynthesizeSpeechResponse
source§fn default() -> SynthesizeSpeechResponse
fn default() -> SynthesizeSpeechResponse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SynthesizeSpeechResponse
impl<'de> Deserialize<'de> for SynthesizeSpeechResponse
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 SynthesizeSpeechResponse
impl Serialize for SynthesizeSpeechResponse
impl ResponseResult for SynthesizeSpeechResponse
Auto Trait Implementations§
impl RefUnwindSafe for SynthesizeSpeechResponse
impl Send for SynthesizeSpeechResponse
impl Sync for SynthesizeSpeechResponse
impl Unpin for SynthesizeSpeechResponse
impl UnwindSafe for SynthesizeSpeechResponse
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