#[non_exhaustive]pub struct AudioInput {
pub config: Option<InputAudioConfig>,
pub audio: Bytes,
/* private fields */
}Available on crate feature
participants only.Expand description
Represents the natural language speech audio to be processed.
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<InputAudioConfig>Required. Instructs the speech recognizer how to process the speech audio.
audio: BytesRequired. The natural language speech audio to be processed. A single request can contain up to 2 minutes of speech audio data. The transcribed text cannot contain more than 256 bytes for virtual agent interactions.
Implementations§
Source§impl AudioInput
impl AudioInput
pub fn new() -> Self
Sourcepub fn set_config<T>(self, v: T) -> Selfwhere
T: Into<InputAudioConfig>,
pub fn set_config<T>(self, v: T) -> Selfwhere
T: Into<InputAudioConfig>,
Sourcepub fn set_or_clear_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InputAudioConfig>,
pub fn set_or_clear_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InputAudioConfig>,
Trait Implementations§
Source§impl Clone for AudioInput
impl Clone for AudioInput
Source§fn clone(&self) -> AudioInput
fn clone(&self) -> AudioInput
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 AudioInput
impl Debug for AudioInput
Source§impl Default for AudioInput
impl Default for AudioInput
Source§fn default() -> AudioInput
fn default() -> AudioInput
Returns the “default value” for a type. Read more
Source§impl PartialEq for AudioInput
impl PartialEq for AudioInput
impl StructuralPartialEq for AudioInput
Auto Trait Implementations§
impl !Freeze for AudioInput
impl RefUnwindSafe for AudioInput
impl Send for AudioInput
impl Sync for AudioInput
impl Unpin for AudioInput
impl UnwindSafe for AudioInput
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