TsgcAIOpenAIChatBotEvents › OnAudioStop

OnAudioStop Event

Fires after microphone capture stops and before transcription is sent to Whisper.

Syntax

property OnAudioStop: TsgcOpenAIAudioStop;
// TsgcOpenAIAudioStop = procedure(Sender: TObject) of object

Default Value

Remarks

Raised once AudioRecorder.Stop has finalised the audio file. It is the last chance to inspect the raw recording before it is uploaded to Whisper for transcription. Use it to hide the “listening” indicator, show a “thinking” spinner, or copy the audio file for archival.

Example

procedure TForm1.sgcChatBotAudioStop(Sender: TObject);
begin
  StatusBar1.SimpleText := 'Transcribing...';
end;

Back to Events