Skip to content

VoiceObservationSnapshot

Defined in: packages/client/src/lib/voice-session/voice-observations.ts:83

Shared, bounded observations for a voice session. Legacy turns use a separate channel.

readonly applicationWork: VoiceApplicationWork

Defined in: packages/client/src/lib/voice-session/voice-observations.ts:91

Current application observations, independent of voice connectivity.


readonly captions: readonly VoiceCaption[]

Defined in: packages/client/src/lib/voice-session/voice-observations.ts:95

Revisable display groups derived from the retained fragments.


readonly connection: VoiceConnectionState

Defined in: packages/client/src/lib/voice-session/voice-observations.ts:87

Provider connection lifecycle, not a conversation turn state.


readonly fragments: readonly TimedTranscriptFragment[]

Defined in: packages/client/src/lib/voice-session/voice-observations.ts:93

Bounded raw fragments ordered by start time, then first receipt for ties; reset on a new connection attempt.


readonly generation: number

Defined in: packages/client/src/lib/voice-session/voice-observations.ts:85

Local connection attempt number; timestamps and fragment IDs are scoped to this value.


readonly media: VoiceMediaObservation

Defined in: packages/client/src/lib/voice-session/voice-observations.ts:89

Current generation’s observed media activity.