#[non_exhaustive]pub struct OutputAudio {
pub config: Option<OutputAudioConfig>,
pub audio: Bytes,
/* private fields */
}Available on crate feature
participants only.Expand description
Represents the natural language speech audio to be played to the end user.
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.config: Option<OutputAudioConfig>Instructs the speech synthesizer how to generate the speech audio.
audio: BytesThe natural language speech audio.
Implementations§
Source§impl OutputAudio
impl OutputAudio
pub fn new() -> Self
Sourcepub fn set_config<T>(self, v: T) -> Selfwhere
T: Into<OutputAudioConfig>,
pub fn set_config<T>(self, v: T) -> Selfwhere
T: Into<OutputAudioConfig>,
Sourcepub fn set_or_clear_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<OutputAudioConfig>,
pub fn set_or_clear_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<OutputAudioConfig>,
Trait Implementations§
Source§impl Clone for OutputAudio
impl Clone for OutputAudio
Source§fn clone(&self) -> OutputAudio
fn clone(&self) -> OutputAudio
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 OutputAudio
impl Debug for OutputAudio
Source§impl Default for OutputAudio
impl Default for OutputAudio
Source§fn default() -> OutputAudio
fn default() -> OutputAudio
Returns the “default value” for a type. Read more
Source§impl Message for OutputAudio
impl Message for OutputAudio
Source§impl PartialEq for OutputAudio
impl PartialEq for OutputAudio
impl StructuralPartialEq for OutputAudio
Auto Trait Implementations§
impl !Freeze for OutputAudio
impl RefUnwindSafe for OutputAudio
impl Send for OutputAudio
impl Sync for OutputAudio
impl Unpin for OutputAudio
impl UnsafeUnpin for OutputAudio
impl UnwindSafe for OutputAudio
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