Skip to content

Interface: OpenSpeechSessionResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / OpenSpeechSessionResponse

Defined in: src/types/speech.ts:146

An opened speech session (OpenSpeechSessionResponse on the wire).

optional conversationId?: string | null

Defined in: src/types/speech.ts:152

The existing native conversation, once its first turn has been accepted.


engine: string

Defined in: src/types/speech.ts:158

Engine that will serve it.


optional epoch?: number | null

Defined in: src/types/speech.ts:154

Session epoch at HTTP open; the socket ready event carries its new epoch.


optional expiresAt?: string | null

Defined in: src/types/speech.ts:150

Authorization lease expiry; refresh through openSpeechSession before it expires.


fullDuplex: boolean

Defined in: src/types/speech.ts:160

Whether the negotiated path keeps capture active during playback.


inputSampleRate: number

Defined in: src/types/speech.ts:162

Audio the client should SEND: 16-bit LE PCM at this rate, mono.


optional protocolVersion?: 2 | 1

Defined in: src/types/speech.ts:156

Absent on legacy servers; callers must negotiate 2 before reading PCM.


optional resumeSupported?: boolean

Defined in: src/types/speech.ts:148

Whether authenticated refresh/reconnect is supported; absent on legacy servers.


sessionId: string

Defined in: src/types/speech.ts:164

Correlation id for this session (also logged server-side).


wsUrl: string

Defined in: src/types/speech.ts:166

Path to connect the media WebSocket to, query string included.