TsgcAIOpenAIChatBot › Events › OnAudioStop
Fires after microphone capture stops and before transcription is sent to Whisper.
property OnAudioStop: TsgcOpenAIAudioStop;
// TsgcOpenAIAudioStop = procedure(Sender: TObject) of object
—
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.
procedure TForm1.sgcChatBotAudioStop(Sender: TObject);
begin
StatusBar1.SimpleText := 'Transcribing...';
end;