TsgcAIOpenAIChatBotEvents › OnAudioStart

OnAudioStart Event

Fires when the AudioRecorder begins capturing microphone audio.

Syntax

property OnAudioStart: TsgcOpenAIAudioStart;
// TsgcOpenAIAudioStart = procedure(Sender: TObject) of object

Default Value

Remarks

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.

Example

procedure TForm1.sgcChatBotAudioStart(Sender: TObject);
begin
  StatusBar1.SimpleText := 'Listening...';
end;

Back to Events