TsgcAIOpenAITranslatorProperties › TranslatorOptions

TranslatorOptions Property

Groups the translation-specific settings, starting with the Whisper model used to transcribe the captured audio.

Syntax

property TranslatorOptions: TsgcHTTPOpenAITranslator_Options read FTranslatorOptions write SetTranslatorOptions;

Default Value

Remarks

The nested Translation object exposes a Model property whose default value is whisper-1, the OpenAI Whisper model that both transcribes the captured audio and returns the English translation in a single call. Override Model only when OpenAI publishes a newer translation-capable model and you have confirmed your account has access to it. Changes take effect immediately and are applied on the next invocation of Start/Stop.

Example

sgcTranslator.TranslatorOptions.Translation.Model := 'whisper-1';

Back to Properties