AIU. - Artificial Intelligence Utility

<< 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

AIU.SetSttModel / AIU.GetSttModel

Previous Top Next


MiniRobotLanguage (MRL)

 

AIU.SetSttModel / AIU.GetSttModel
Set or retrieve the model for Speech-to-Text operations.

 

Intention

 

These commands allow you to configure and check which OpenAI model is used for audio transcription. The AIU.SetSttModel (alias AIU.Ssm) command sets the desired model name, while AIU.GetSttModel (alias AIU.Gsm) retrieves the currently active setting. By default, the library uses the "whisper-1" model.

 

It’s like telling your robot which language expert to consult—AIU.SetSttModel ensures the right AI is listening to your audio files.

 

Illustration

 

┌────────────────────────────────┐

│ AIU.SetSttModel|whisper-1      │

├────────────────────────────────┤

│ AIU Library                    │

│ [Current STT Model Set]        │

├──────────────────┬─────────────┤

│ AIU.GetSttModel  │ Result      │

├──────────────────┼─────────────┤

│ Asks for model…  │ "whisper-1" │

└──────────────────┴─────────────┘

Setting and retrieving the active transcription model.

 

Syntax

 

AIU.SetSttModel|$$MDL
AIU.GetSttModel|$$RET

 

Parameter Explanation

 

P1 - $$MDL - (Variable, String, Required for SetSttModel)

The name of the transcription model to use, currently "whisper-1".

 

P1 - $$RET - (Variable, String, Required for GetSttModel)

The variable where the current model name will be stored.

 

Examples

 

'***********************************

' AIU.SetSttModel / GetSttModel - Sample 1: Set and Verify

'***********************************

' Set the model for subsequent Speech-to-Text calls

AIU.SetSttModel|whisper-1

 

' Verify the model was set correctly

AIU.GetSttModel|$$MDL

MBX.Current STT Model:|$$MDL

END.

 

 

Remarks

 

- The aliases AIU.Ssm and AIU.Gsm can be used for convenience.

- Currently, the only valid model for this parameter is "whisper-1". This may change as new models are released by OpenAI.

- The setting is persistent for the duration of the script session until changed by another AIU.SetSttModel call.

 

See also:

 

AIU.SpeechToText