|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIU. - OpenAI API > ! Speech and Voice Configuration > AIU. - Artificial Intelligence Utility |
MiniRobotLanguage (MRL)
AIU.GetTtsModel
Retrieves the current Text-to-Speech model name.
Intention
The AIU.GetTtsModel command (aliased as AIU.Gtsm) is used to check which Text-to-Speech (TTS) model is currently configured for the AIU library. It retrieves the name of the model (e.g., "tts-1" or "tts-1-hd") that will be used by the AIU.TextToSpeech command.
It’s your robot’s status check—AIU.GetTtsModel confirms which voice synthesis engine is active.
Illustration
┌──────────────────────────┐
│ AIU Library Settings │
├──────────────────────────┤
│ TTS Model: "tts-1-hd" │
└────────────┬─────────────┘
│ AIU.GetTtsModel|$$MDL
▼
┌──────────────────────────┐
│ $$MDL = "tts-1-hd" │
└──────────────────────────┘
Retrieving the currently configured TTS model.
Syntax
AIU.GetTtsModel|$$RET
Parameter Explanation
P1 - $$RET - (Variable, String, Required)
The variable where the name of the current Text-to-Speech model will be stored.
Examples
'***********************************
' AIU.GetTtsModel - Sample 1: Check the current model
'***********************************
' First, set a specific model
AIU.SetTtsModel|tts-1-hd
' Now, retrieve it to verify
AIU.GetTtsModel|$$MDL
MBX.Current TTS Model:|$$MDL
END.
Remarks
- The alias AIU.Gtsm can be used for convenience.
- This command retrieves the value set by AIU.SetTtsModel or the default value ("tts-1") if it has not been changed.
See also: