pub struct RealtimeTranslationServerEventSessionInputTranscriptDelta {
pub event_id: String,
pub delta: String,
pub elapsed_ms: Option<u64>,
}Available on crate feature
realtime-types only.Expand description
Returned when optional source-language transcript text is available. This event
is emitted only when audio.input.transcription is configured.
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 source-language transcript text.
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 RealtimeTranslationServerEventSessionInputTranscriptDelta
impl Clone for RealtimeTranslationServerEventSessionInputTranscriptDelta
Source§fn clone(&self) -> RealtimeTranslationServerEventSessionInputTranscriptDelta
fn clone(&self) -> RealtimeTranslationServerEventSessionInputTranscriptDelta
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 RealtimeTranslationServerEventSessionInputTranscriptDelta
impl<'de> Deserialize<'de> for RealtimeTranslationServerEventSessionInputTranscriptDelta
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 RealtimeTranslationServerEventSessionInputTranscriptDelta
impl RefUnwindSafe for RealtimeTranslationServerEventSessionInputTranscriptDelta
impl Send for RealtimeTranslationServerEventSessionInputTranscriptDelta
impl Sync for RealtimeTranslationServerEventSessionInputTranscriptDelta
impl Unpin for RealtimeTranslationServerEventSessionInputTranscriptDelta
impl UnsafeUnpin for RealtimeTranslationServerEventSessionInputTranscriptDelta
impl UnwindSafe for RealtimeTranslationServerEventSessionInputTranscriptDelta
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