|
<< 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.GetSttModel
Retrieves the current Speech-to-Text model name.
Intention
The AIU.GetSttModel command (aliased as AIU.Gsm) allows you to check which transcription model is currently configured for use with the AIU.SpeechToText command. This is useful for debugging or for scripts that need to adapt their behavior based on the active model.
It’s your robot’s status report—AIU.GetSttModel tells you which AI ear is currently listening.
Illustration
┌─────────────────────────┐
│ AIU Settings │
├─────────────────────────┤
│ STT Model: "whisper-1" │
└─────────────┬───────────┘
│
▼
AIU.GetSttModel|$$MOD
│
▼
┌─────────────────────────┐
│ $$MOD = "whisper-1" │
└─────────────────────────┘
Retrieving the currently configured STT model name.
Syntax
AIU.GetSttModel|$$RET
Parameter Explanation
P1 - $$RET - (Variable, String, Required)
The variable where the current Speech-to-Text model name will be stored.
Examples
'***********************************
' AIU.GetSttModel - Sample 1: Get the current model
'***********************************
' First, set a model to ensure a known state
AIU.SetSttModel|whisper-1
' Now, retrieve it
AIU.GetSttModel|$$MOD
MBX.Current STT Model:|$$MOD
END.
Remarks
- The alias AIU.Gsm can be used for convenience.
- This command simply reads the current setting from the AIU library's global state. It does not make an API call.
See also: