pub struct RealtimeTranslationServerEventSessionOutputAudioDelta {
pub event_id: String,
pub delta: String,
pub sample_rate: Option<u32>,
pub channels: Option<u32>,
pub format: Option<RealtimeTranslationAudioFormat>,
pub elapsed_ms: Option<u64>,
}Available on crate feature
realtime-types only.Expand description
Returned when translated output audio is available. Output audio deltas are 200 ms frames of PCM16 audio.
Fields§
§event_id: StringThe unique ID of the server event.
delta: StringBase64-encoded translated audio data.
sample_rate: Option<u32>Sample rate of the audio delta. Defaults to 24000.
channels: Option<u32>Number of audio channels. Defaults to 1.
format: Option<RealtimeTranslationAudioFormat>Audio encoding for delta.
elapsed_ms: Option<u64>Timing metadata for stream alignment, derived from the translation frame
when available. Treat elapsed_ms as alignment metadata, not a unique
event identifier.
Trait Implementations§
Source§impl Clone for RealtimeTranslationServerEventSessionOutputAudioDelta
impl Clone for RealtimeTranslationServerEventSessionOutputAudioDelta
Source§fn clone(&self) -> RealtimeTranslationServerEventSessionOutputAudioDelta
fn clone(&self) -> RealtimeTranslationServerEventSessionOutputAudioDelta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for RealtimeTranslationServerEventSessionOutputAudioDelta
impl<'de> Deserialize<'de> for RealtimeTranslationServerEventSessionOutputAudioDelta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RealtimeTranslationServerEventSessionOutputAudioDelta
impl RefUnwindSafe for RealtimeTranslationServerEventSessionOutputAudioDelta
impl Send for RealtimeTranslationServerEventSessionOutputAudioDelta
impl Sync for RealtimeTranslationServerEventSessionOutputAudioDelta
impl Unpin for RealtimeTranslationServerEventSessionOutputAudioDelta
impl UnsafeUnpin for RealtimeTranslationServerEventSessionOutputAudioDelta
impl UnwindSafe for RealtimeTranslationServerEventSessionOutputAudioDelta
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