<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIS. - AI Speech Synthesis > AIS.-Header Settings > Elevenlabs Speech Synthesis |
MiniRobotLanguage (MRL)
AIS.Get Latency
Gets latency optimization level.
Intention
The AIS.Get Latency command allows you to Get the level of latency optimizations for the AIS engine.
This can be useful for applications where low latency is crucial but can come at the cost of reduced voice quality.
The latency optimization level can affect the quality of the voice.
Higher levels of optimization may result in lower voice quality but will reduce latency.
Option 4 may cause mispronunciations of numbers and dates.
Syntax
AIS.Get Latency[|P1]
AIS.Glt[|P1]
Parameter Explanation
•P1: optional The variable where the result will be stored. If omitted, the result is pushed onto the Top of Stack (TOS).
Value |
Description |
0 |
Default mode (no latency optimizations) |
1 |
Normal latency optimizations (about 50% of possible latency improvement of option 3) |
2 |
Strong latency optimizations (about 75% of possible latency improvement of option 3) |
3 |
Max latency optimizations |
4 |
Max latency optimizations with text normalizer turned off (best latency, may mispronounce numbers and dates) |
Example
'***********************************
' AIS.-Sample
'***********************************
$$VAR=
AIS.Get Latency|$$VAR
MBX.$$VAR
ENR.
Remarks
-
Limitations:
-
See also:
•