<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIS. - AI Speech Synthesis > AIS.-Voice Settings > Elevenlabs Speech Synthesis |
MiniRobotLanguage (MRL)
AIS.Get Voice ID
Retrieves Voice ID based on input.
Intention
The AIS.Get Voice ID command retrieves the Voice ID for a specified voice.
The voice ID can be specified either by its name or by a number between 1 and 42.
A voice Id may look somehow like this: "ErXwobaYiN019PkySvjV".
Its an internal Hash for a voice.
You can directly set a Voice using the Voice-ID with the command:
' This will set the used Voice to "Antoni"
$$VID=ErXwobaYiN019PkySvjV
AIS.set voice id|$$VID
Syntax
AIS.Get Voice ID|P1|[P2]
AIS.Gvi|P1|[P2]
Parameter Explanation
•P1: A string that specifies the voice. It can be either the name of the voice or a number between 1 and 42.
•P2: Optional. A variable where the result will be stored. If omitted, the result will be placed on TOS.
Example
'***********************************
' AIS.-Sample
'***********************************
$$VOI=Rachel
AIS.Get Voice ID|$$VOI|$$VID
' Use the ID for setting the voice
AIS.Set Voice ID|$$VID
MBX.$$VID
ENR.
Remarks
-
Limitations:
-
See also:
• ! Smart Package Robot 's Parallel Robot Operations