#[non_exhaustive]pub struct MultiSpeakerVoiceConfig {
pub speaker_voice_configs: Vec<SpeakerVoiceConfig>,
/* private fields */
}Available on crate features
llm-utility-service or prediction-service only.Expand description
Configuration for a multi-speaker text-to-speech request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.speaker_voice_configs: Vec<SpeakerVoiceConfig>Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
Implementations§
Source§impl MultiSpeakerVoiceConfig
impl MultiSpeakerVoiceConfig
pub fn new() -> Self
Sourcepub fn set_speaker_voice_configs<T, V>(self, v: T) -> Self
pub fn set_speaker_voice_configs<T, V>(self, v: T) -> Self
Sets the value of speaker_voice_configs.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::SpeakerVoiceConfig;
let x = MultiSpeakerVoiceConfig::new()
.set_speaker_voice_configs([
SpeakerVoiceConfig::default()/* use setters */,
SpeakerVoiceConfig::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for MultiSpeakerVoiceConfig
impl Clone for MultiSpeakerVoiceConfig
Source§fn clone(&self) -> MultiSpeakerVoiceConfig
fn clone(&self) -> MultiSpeakerVoiceConfig
Returns a duplicate 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 MultiSpeakerVoiceConfig
impl Debug for MultiSpeakerVoiceConfig
Source§impl Default for MultiSpeakerVoiceConfig
impl Default for MultiSpeakerVoiceConfig
Source§fn default() -> MultiSpeakerVoiceConfig
fn default() -> MultiSpeakerVoiceConfig
Returns the “default value” for a type. Read more
Source§impl Message for MultiSpeakerVoiceConfig
impl Message for MultiSpeakerVoiceConfig
Source§impl PartialEq for MultiSpeakerVoiceConfig
impl PartialEq for MultiSpeakerVoiceConfig
impl StructuralPartialEq for MultiSpeakerVoiceConfig
Auto Trait Implementations§
impl Freeze for MultiSpeakerVoiceConfig
impl RefUnwindSafe for MultiSpeakerVoiceConfig
impl Send for MultiSpeakerVoiceConfig
impl Sync for MultiSpeakerVoiceConfig
impl Unpin for MultiSpeakerVoiceConfig
impl UnwindSafe for MultiSpeakerVoiceConfig
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