Class: SpeechTranscriptionConnection
@kortexya/reasoninglayer / SpeechTranscriptionConnection
Class: SpeechTranscriptionConnection
Section titled “Class: 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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SpeechTranscriptionConnection(
config,options):SpeechTranscriptionConnection
Defined in: src/speech-transcription.ts:40
Parameters
Section titled “Parameters”config
Section titled “config”ResolvedConfig
options
Section titled “options”Returns
Section titled “Returns”SpeechTranscriptionConnection
Properties
Section titled “Properties”
readonlyready:Promise<void>
Defined in: src/speech-transcription.ts:24
Methods
Section titled “Methods”close()
Section titled “close()”close():
void
Defined in: src/speech-transcription.ts:226
Returns
Section titled “Returns”void
finish()
Section titled “finish()”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.
Returns
Section titled “Returns”Promise<string>
sendPcm()
Section titled “sendPcm()”sendPcm(
samples):void
Defined in: src/speech-transcription.ts:166
Parameters
Section titled “Parameters”samples
Section titled “samples”Int16Array
Returns
Section titled “Returns”void