TsgcAIOpenAIChatBot › Events › OnAudioStart
Fires when the AudioRecorder begins capturing microphone audio.
property OnAudioStart: TsgcOpenAIAudioStart;
// TsgcOpenAIAudioStart = procedure(Sender: TObject) of object
—
Raised right after Start (or the auto-restart triggered by camoAuto) has asked the AudioRecorder to begin recording. Use it to update the UI with a “listening” indicator or to mute other audio sources. The event carries no payload — query AudioRecorder.RecorderOptions for the filename being written.
procedure TForm1.sgcChatBotAudioStart(Sender: TObject);
begin
StatusBar1.SimpleText := 'Listening...';
end;