TsgcAIOpenAIChatBot › Properties › TextToSpeech
Component used to speak the assistant reply (System, Google or Amazon TTS).
__property TsgcTextToSpeech * TextToSpeech;
—
Assign any descendant of TsgcTextToSpeech: TsgcTextToSpeechSystem (Windows SAPI), TsgcTextToSpeechGoogle, or TsgcTextToSpeechAmazon. The ChatBot wires up the OnStart/OnStop events automatically and, when AudioRecorder.RecorderOptions.Mode = camoAuto, restarts recording after playback ends so the user can reply. If TextToSpeech is nil the reply is emitted only via OnChatCompletion.