Struct google_api_proto::google::cloud::dialogflow::v2beta1::TextToSpeechSettings
source · pub struct TextToSpeechSettings {
pub enable_text_to_speech: bool,
pub output_audio_encoding: i32,
pub sample_rate_hertz: i32,
pub synthesize_speech_configs: BTreeMap<String, SynthesizeSpeechConfig>,
}
Expand description
Instructs the speech synthesizer on how to generate the output audio content.
Fields§
§enable_text_to_speech: bool
Optional. Indicates whether text to speech is enabled. Even when this field is false, other settings in this proto are still retained.
output_audio_encoding: i32
Required. Audio encoding of the synthesized audio content.
sample_rate_hertz: i32
Optional. 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_configs: BTreeMap<String, SynthesizeSpeechConfig>
Optional. Configuration of how speech should be synthesized, mapping from language (https://cloud.google.com/dialogflow/docs/reference/language) to SynthesizeSpeechConfig.
Implementations§
source§impl TextToSpeechSettings
impl TextToSpeechSettings
sourcepub fn output_audio_encoding(&self) -> OutputAudioEncoding
pub fn output_audio_encoding(&self) -> OutputAudioEncoding
Returns the enum value of output_audio_encoding
, or the default if the field is set to an invalid enum value.
sourcepub fn set_output_audio_encoding(&mut self, value: OutputAudioEncoding)
pub fn set_output_audio_encoding(&mut self, value: OutputAudioEncoding)
Sets output_audio_encoding
to the provided enum value.
Trait Implementations§
source§impl Clone for TextToSpeechSettings
impl Clone for TextToSpeechSettings
source§fn clone(&self) -> TextToSpeechSettings
fn clone(&self) -> TextToSpeechSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TextToSpeechSettings
impl Debug for TextToSpeechSettings
source§impl Default for TextToSpeechSettings
impl Default for TextToSpeechSettings
source§impl Message for TextToSpeechSettings
impl Message for TextToSpeechSettings
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 TextToSpeechSettings
impl PartialEq for TextToSpeechSettings
source§fn eq(&self, other: &TextToSpeechSettings) -> bool
fn eq(&self, other: &TextToSpeechSettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TextToSpeechSettings
Auto Trait Implementations§
impl Freeze for TextToSpeechSettings
impl RefUnwindSafe for TextToSpeechSettings
impl Send for TextToSpeechSettings
impl Sync for TextToSpeechSettings
impl Unpin for TextToSpeechSettings
impl UnwindSafe for TextToSpeechSettings
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