TsgcAIOpenAIChatBot › Events › OnTranscription
Fires when Whisper returns the speech-to-text result; lets you edit the text or reject it.
__property TsgcOpenAITranscription OnTranscription;
// typedef void __fastcall (__closure *TsgcOpenAITranscription)(TObject * Sender, UnicodeString &Text, bool &Accept);
—
Raised after the Whisper call completes. Both parameters are var: set Text to edit or normalise the transcription before it is forwarded to ChatCompletion, or set Accept to False to discard the turn (nothing is sent to the LLM). Typical use: filter wake words, redact sensitive tokens, or drop empty recordings.