<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AI - Artificial Intelligence Commands |
MiniRobotLanguage (MRL)
How to start with AI and the Smart Package Robot
Combine AI's in your Script
Let's use the AI abilities from the smart package robot to make a new script where we are combining several AI features into one script.
1. Assume that you have some Textiles in a Folder and these contain the Text for a Video.
You can run this Script and it will generate the German and (original/English)
Voices for the Video. And save them as MP3-Files.
' Insert Pause-TIme in the Text like this:
' <break time="1.0s" /> or "---"
AIS.Set Key|file
DLT.Set Key|file
$$LAE=ENG_
$$LAG=GER_
' Please adapt this pathes
$$SAA=D:\DB\SPR-Videos\Audio
$$SRC=$$SAA\FileList.txt
FEL.Doit|$$LIN|$$SRC
MBX.Done
ENR.
:Doit
VBT.$$LIN
JNS.$$LIN|over
TXT.Load Text File|$$LIN|$$NUM
JIV.$$NUM<2|over
' Dateiname mit Endung.txt
ALB.$$LIN|$$FIA
STR.Extract|$$FIA|.|1|$$FIB
$$FIE=$$SAA\$$LAE$$FIB
$$FIG=$$SAA\$$LAG$$FIB
DLT.Set Formality|default
FOR.$$LEI|1|$$NUM
$$ONE=$$FIE_$$LEI.mp3
$$ONG=$$FIG_$$LEI.mp3
IEF.$$ONE
CON.
EIF.
TXT.Get Line Trimmed|$$LEI|$$LIA
VBT.$$LIA
VTL.$$LIA
DLT.Translate Text|$$LIA|$$LIG|en|de
AIS.Text to MP3|$$LIA|$$ONE
AIS.Text to MP3|$$LIG|$$ONG
NEX.
:over
RET.
ENR.
See also:
•