Skip to content

Class: SpeechTranscriptionConnection

@kortexya/reasoninglayer


@kortexya/reasoninglayer / SpeechTranscriptionConnection

Defined in: src/speech-transcription.ts:23

Recognition for an existing workflow, without opening a conversation or submitting a turn. Only finish() returns text eligible for submission.

new SpeechTranscriptionConnection(config, options): SpeechTranscriptionConnection

Defined in: src/speech-transcription.ts:40

ResolvedConfig

SpeechTranscriptionOptions

SpeechTranscriptionConnection

readonly ready: Promise<void>

Defined in: src/speech-transcription.ts:24

close(): void

Defined in: src/speech-transcription.ts:226

void


finish(): Promise<string>

Defined in: src/speech-transcription.ts:183

Call after capture has stopped and its last packet has been flushed. Waits for the native barrier, including empty/ignored recordings.

Promise<string>


sendPcm(samples): void

Defined in: src/speech-transcription.ts:166

Int16Array

void