Struct google_api_proto::google::cloud::dialogflow::v2::OutputAudioConfig
source · pub struct OutputAudioConfig {
pub audio_encoding: i32,
pub sample_rate_hertz: i32,
pub synthesize_speech_config: Option<SynthesizeSpeechConfig>,
}
Expand description
Instructs the speech synthesizer on how to generate the output audio content. If this audio config is supplied in a request, it overrides all existing text-to-speech settings applied to the agent.
Fields§
§audio_encoding: i32
Required. Audio encoding of the synthesized audio content.
sample_rate_hertz: i32
The synthesis sample rate (in hertz) for this audio. If not provided, then the synthesizer will use the default sample rate based on the audio encoding. If this is different from the voice’s natural sample rate, then the synthesizer will honor this request by converting to the desired sample rate (which might result in worse audio quality).
synthesize_speech_config: Option<SynthesizeSpeechConfig>
Configuration of how speech should be synthesized.
Implementations§
source§impl OutputAudioConfig
impl OutputAudioConfig
sourcepub fn audio_encoding(&self) -> OutputAudioEncoding
pub fn audio_encoding(&self) -> OutputAudioEncoding
Returns the enum value of audio_encoding
, or the default if the field is set to an invalid enum value.
sourcepub fn set_audio_encoding(&mut self, value: OutputAudioEncoding)
pub fn set_audio_encoding(&mut self, value: OutputAudioEncoding)
Sets audio_encoding
to the provided enum value.
Trait Implementations§
source§impl Clone for OutputAudioConfig
impl Clone for OutputAudioConfig
source§fn clone(&self) -> OutputAudioConfig
fn clone(&self) -> OutputAudioConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OutputAudioConfig
impl Debug for OutputAudioConfig
source§impl Default for OutputAudioConfig
impl Default for OutputAudioConfig
source§impl Message for OutputAudioConfig
impl Message for OutputAudioConfig
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for OutputAudioConfig
impl PartialEq for OutputAudioConfig
source§fn eq(&self, other: &OutputAudioConfig) -> bool
fn eq(&self, other: &OutputAudioConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OutputAudioConfig
Auto Trait Implementations§
impl Freeze for OutputAudioConfig
impl RefUnwindSafe for OutputAudioConfig
impl Send for OutputAudioConfig
impl Sync for OutputAudioConfig
impl Unpin for OutputAudioConfig
impl UnwindSafe for OutputAudioConfig
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request