<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > ! Open AI - Whisper > AIC.-Recording > AIC. - Recording Commands |
MiniRobotLanguage (MRL)
AIC.Record Asynchron Button
Initiates asynchronous recording and starts the "Recording Button".
You can use the "Recording Button" to start or End the recording.
Intention
The AIC.Record Asynchron Button command starts an asynchronous audio recording (Background recording while the Script continues running),
and also brings up the "Recording Button".
Finally it will save the mp3-result to the specified file-name in P1. If P1 is omitted, the system will generate a file-name automatically.
In reality, this command initiates the audio recording while allowing the script to continue running in parallel.
You have multiple options for stopping the audio recording:
•you can either click the recording button or
•simply set the recording state to 0.
of course the Recording will also end when the Script ends.
This command is configured to NOT close the Recording Button once it was pressed.
' We start the recording
AIC.Record Asynchron Button||$$FIL
AIC.wbs|2|$$RET
MBX.File was saved: $$FIL Button: $$RET
ENR.
Syntax
AIC.Record Asynchron[|P1][|P2]
AIC.Rea[|P1][|P2]
Parameter Explanation
•P1: Optional. The filename to which the audio will be recorded. If omitted, the system will generate a filename.
•P2: Optional. Variable to store the filename used for recording. Useful when P1 is omitted and the system generates a filename. If omitted, the result is placed on the Top of Stack (TOS).
Example
'***********************************
' AIC.-Sample
'***********************************
' We start the recording
AIC.Record Asynchron Button||$$FIL
' Wait for Button pressed
AIC.wbs|2|$$RET
MBX.File was saved: $$FIL Button: $$RET
ENR.
ENR.
Remarks
-
Limitations:
-
See also:
•