Struct aws_sdk_lexruntimev2::types::AudioInputEvent
source · #[non_exhaustive]pub struct AudioInputEvent {
pub audio_chunk: Option<Blob>,
pub content_type: String,
pub event_id: Option<String>,
pub client_timestamp_millis: i64,
}Expand description
Represents a chunk of audio sent from the client application to Amazon Lex V2. The audio is all or part of an utterance from the user.
Amazon Lex V2 accumulates audio chunks until it recognizes a natural pause in speech before processing the input.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.audio_chunk: Option<Blob>An encoded stream of audio.
content_type: StringThe encoding used for the audio chunk. You must use 8 KHz PCM 16-bit mono-channel little-endian format. The value of the field should be:
audio/lpcm; sample-rate=8000; sample-size-bits=16; channel-count=1; is-big-endian=false
event_id: Option<String>A unique identifier that your application assigns to the event. You can use this to identify events in logs.
client_timestamp_millis: i64A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
Implementations§
source§impl AudioInputEvent
impl AudioInputEvent
sourcepub fn audio_chunk(&self) -> Option<&Blob>
pub fn audio_chunk(&self) -> Option<&Blob>
An encoded stream of audio.
sourcepub fn content_type(&self) -> &str
pub fn content_type(&self) -> &str
The encoding used for the audio chunk. You must use 8 KHz PCM 16-bit mono-channel little-endian format. The value of the field should be:
audio/lpcm; sample-rate=8000; sample-size-bits=16; channel-count=1; is-big-endian=false
sourcepub fn event_id(&self) -> Option<&str>
pub fn event_id(&self) -> Option<&str>
A unique identifier that your application assigns to the event. You can use this to identify events in logs.
sourcepub fn client_timestamp_millis(&self) -> i64
pub fn client_timestamp_millis(&self) -> i64
A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
source§impl AudioInputEvent
impl AudioInputEvent
sourcepub fn builder() -> AudioInputEventBuilder
pub fn builder() -> AudioInputEventBuilder
Creates a new builder-style object to manufacture AudioInputEvent.
Trait Implementations§
source§impl Clone for AudioInputEvent
impl Clone for AudioInputEvent
source§fn clone(&self) -> AudioInputEvent
fn clone(&self) -> AudioInputEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AudioInputEvent
impl Debug for AudioInputEvent
source§impl PartialEq for AudioInputEvent
impl PartialEq for AudioInputEvent
source§fn eq(&self, other: &AudioInputEvent) -> bool
fn eq(&self, other: &AudioInputEvent) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AudioInputEvent
Auto Trait Implementations§
impl Freeze for AudioInputEvent
impl RefUnwindSafe for AudioInputEvent
impl Send for AudioInputEvent
impl Sync for AudioInputEvent
impl Unpin for AudioInputEvent
impl UnwindSafe for AudioInputEvent
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more