pub struct RealtimeTranslationServerEventSessionOutputTranscriptDelta {
pub event_id: String,
pub delta: String,
pub elapsed_ms: Option<u64>,
}Available on crate feature
realtime-types only.Expand description
Returned when translated transcript text is available.
Transcript deltas are append-only text fragments. Clients should not insert unconditional spaces between deltas.
Fields§
§event_id: StringThe unique ID of the server event.
delta: StringAppend-only transcript text for the translated output audio.
elapsed_ms: Option<u64>Timing metadata for stream alignment, derived from the translation frame
when available. It advances in 200 ms increments, but multiple transcript
deltas may share the same elapsed_ms. Treat it as alignment metadata,
not a unique transcript-delta identifier.
Trait Implementations§
Source§impl Clone for RealtimeTranslationServerEventSessionOutputTranscriptDelta
impl Clone for RealtimeTranslationServerEventSessionOutputTranscriptDelta
Source§fn clone(&self) -> RealtimeTranslationServerEventSessionOutputTranscriptDelta
fn clone(&self) -> RealtimeTranslationServerEventSessionOutputTranscriptDelta
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 RealtimeTranslationServerEventSessionOutputTranscriptDelta
impl<'de> Deserialize<'de> for RealtimeTranslationServerEventSessionOutputTranscriptDelta
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 RealtimeTranslationServerEventSessionOutputTranscriptDelta
impl RefUnwindSafe for RealtimeTranslationServerEventSessionOutputTranscriptDelta
impl Send for RealtimeTranslationServerEventSessionOutputTranscriptDelta
impl Sync for RealtimeTranslationServerEventSessionOutputTranscriptDelta
impl Unpin for RealtimeTranslationServerEventSessionOutputTranscriptDelta
impl UnsafeUnpin for RealtimeTranslationServerEventSessionOutputTranscriptDelta
impl UnwindSafe for RealtimeTranslationServerEventSessionOutputTranscriptDelta
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