|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIS. - AI Speech Synthesis > AIS. - AI Speech Synthesis |
AIS.SetKey |
Top |
MiniRobotLanguage (MRL)
AIS.SetKey
Set the Elevenlabs API Key
Intention
The AIS.SetKey command sets the Elevenlabs API key required for text-to-speech functionality. You can set the key directly or load it from an encrypted file.
Get your API key from:
Syntax
AIS.SetKey|$$Key[|$$Path]
P1 - $$Key - The API key or one of: Crypt, Text, Any
P2 - $$Path (optional) - File path when loading from file
Options for P1
Direct Key: Set the API key directly
Crypt: Load from encrypted file
Text: Load from text file
Any: Auto-detect format
Example
' Method 1: Set key directly
AIS.SetKey|your_elevenlabs_api_key
' Method 2: Load from encrypted file
AIS.SetKey|Crypt|C:\Keys\AIS_Key.dat
' Method 3: Load from text file
AIS.SetKey|Text|C:\Keys\AIS_Key.txt
Related Commands
- AIS.SaveKey - Save API key to file