TsgcAIOpenAITranslatorEvents › OnAudioStart

OnAudioStart Event

Fires as soon as the assigned audio recorder begins capturing microphone input.

Syntax

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

Default Value

Remarks

The translator forwards the recorder's own start notification through OnAudioStart, so the event fires whenever a new capture begins — either after an explicit call to Start or automatically at the end of a text-to-speech playback when the recorder runs in automatic mode. Use it to refresh the user interface (for example, light up a "listening" indicator, disable the Start button, or clear the text buffer of the previous exchange). No audio data is delivered through this event; it is purely a state-change notification.

Example

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

Back to Events