VoiceSessionDetail
TypeA past call record with its full transcript.
What getSession returns: everything on a VoiceSessionSummary plus the persisted transcript, a list of turns each carrying its role, text, timestamp, and whether it was interrupted. Note the persisted transcript's roles are 'user' and 'assistant', distinct from the live caption event's 'user' and 'agent'.
VoiceSessionDetail.ts
interface VoiceSessionDetail extends VoiceSessionSummary {
transcript: VoiceTranscriptEntry[]
}Fields
transcript
VoiceTranscriptEntry[]
The persisted turns. Each entry has a role ('user' | 'assistant'), text, an at timestamp, and an interrupted flag.
Read a call transcript
const detail: VoiceSessionDetail = await voice.getSession(id); detail.transcript.forEach(({ role, text }) => renderLine(role, text));