<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > Ask AI Commands > Ask AI Commands |
MiniRobotLanguage (MRL)
AIC.Ask TTS
Converts text to spoken MP3 (in a file).
Intention
The AIC.Ask TTS command is designed to convert text into an MP3 audio file using cloud services from Open AI.
This command requires an API key, which must be set using the AIC.Set Key command.
Hint: The model will automatically identify the written language and use the set parameters to generate speech in it.
This command does not use any Caching System, unlike the AIC.Text to MP3, which uses a Caching System.
Syntax
AIC.Ask TTS|P1[|P2][|P3]
Parameter Explanation
P1 - The Text to speak (convert to .mp3).
P2 - (optional) The Output-Filename/Path. If omitted a temporary file is generated and the filename is in P3 or if P3 is omitted on TOS.
P3 - (optional) Variable to receive the generated/used Filename for the mp3/Output-File.
Example
'***********************************
' AIC.-Sample
'***********************************
AIC.Set Key|File
$$TXT=Alles neu macht der Mai
AIC.Ask TTS|$$TXT||$$OUT
'AIC.Show Error
' Open Folder with generated mp3-File
BLB.$$OUT|$$FOL
EXS.$$FOL
' Put Path into Clipboard
CLP.$$FOL
MBX.$$OUT
ENR.
Remarks
-
Limitations:
-
See also:
•