Skip to main content
Table of Contents

TTMSFNCCloudAI.Speak Method

Generates speech audio from text.

API unit family: TMSFNCCloudAI Declaring type: TTMSFNCCloudAI

Syntax

FMX.TMSFNCCloudAI.hppPascalC++
procedure Speak(AText: string; Speed: single = 1; Voice: string = 'alloy'; Tone: string = 'professional'); virtual;
virtual void __fastcall Speak(System::UnicodeString AText, float Speed = 1.000000E+00f, System::UnicodeString Voice = L"alloy", System::UnicodeString Tone = L"professional");

Parameters

Name Description
AText Text to convert to speech.
Speed Playback speed requested from the service.
Voice Voice identifier requested from the service.
Tone Tone or style instruction requested from the service.