pub struct RealtimeInput {
pub audio: Option<Blob>,
pub video: Option<Blob>,
pub text: Option<String>,
pub activity_start: Option<EmptyObject>,
pub activity_end: Option<EmptyObject>,
pub audio_stream_end: Option<bool>,
}Expand description
Streaming real-time input — audio, video, text, or VAD control signals.
Each message should carry only one of these fields.
§Audio format
16-bit signed little-endian PCM, recommended 16 kHz sample rate. Chunk size: 100–250 ms (3,200–8,000 bytes raw).
§Video format
JPEG or PNG, max 1 fps, recommended < 200 KB per frame.
Fields§
§audio: Option<Blob>§video: Option<Blob>§text: Option<String>§activity_start: Option<EmptyObject>Manual VAD: signal that user activity has started.
Requires automaticActivityDetection.disabled = true.
activity_end: Option<EmptyObject>Manual VAD: signal that user activity has ended.
audio_stream_end: Option<bool>Auto VAD: notify server that the mic has been muted / stream ended.
Trait Implementations§
Source§impl Clone for RealtimeInput
impl Clone for RealtimeInput
Source§fn clone(&self) -> RealtimeInput
fn clone(&self) -> RealtimeInput
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 RealtimeInput
impl Debug for RealtimeInput
Source§impl Default for RealtimeInput
impl Default for RealtimeInput
Source§fn default() -> RealtimeInput
fn default() -> RealtimeInput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RealtimeInput
impl RefUnwindSafe for RealtimeInput
impl Send for RealtimeInput
impl Sync for RealtimeInput
impl Unpin for RealtimeInput
impl UnsafeUnpin for RealtimeInput
impl UnwindSafe for RealtimeInput
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