TsgcAIOpenAIChatBotMethods › Stop

Stop Method

Stops recording; the captured audio is then sent to Whisper for transcription.

Syntax

void __fastcall Stop();

Remarks

Delegates to AudioRecorder.Stop and raises OnAudioStop. The recorded file at AudioRecorder.RecorderOptions.Filename is then uploaded to the Whisper endpoint; the resulting text is delivered through OnTranscription, and — if ChatBotOptions.ChatCompletion.Enabled is True — forwarded to the ChatCompletion API. The local audio file is deleted after transcription.

Example

Back to Methods