AIC. - Recording Commands

<< 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

AIC.Get Rec State / AIC.grs

Previous Top Next


MiniRobotLanguage (MRL)

 

AIC.Get Rec State / AIC.grs

Returns recording state.

 

clip0825

 

Intention

 

The AIC.Get Rec State command returns the current recording state of the system in the variable specified in P1.

The recording state is an internal register that can be read or altered, typically to stop the recording.

 

Here is a sample Script that shows how you can use the command together with Asynchronous Recording.

 

AIC.Set Key|file

 

' We create a Recording Button, to be able to stop the recording

AIC.Create Rec Button|0|0|1

 

VAF.$$FIL=?exeloc\Test.mp3

' We start the recording

AIC.Record Asynchron|$$FIL

 

DOL.

  AIC.grs|$$RET 

  PRT.$$RET

OOP.($$RET>0)

 

ENR.

 

Syntax

 

 

AIC.Get Rec State|P1

AIC.Grs|P1

 

 

 

Parameter Explanation

 

P1: Optional. Variable to store the recording state. If omitted, the result is placed on the Top of Stack (TOS).

The following Rec-States will be returned:

0 - Buttons are in recording State (not Stopped, not Paused)

1 - Recording is PAUSED

2 - Recording is Stopped/Ended

3 - Stopped and Paused

 

 

 

Example

 

'***********************************

' IRS.-Sample

'***********************************

AIC.Set Key|file

 

' We create a Recording Button, to be able to stop the recording

AIC.Create Rec Button|1|0

 

VAF.$$FIL=?exeloc\Test.mp3

' We start the recording

AIC.Record Asynchron|$$FIL

 

DOL.

  AIC.grs|$$RET 

  PRT.$$RET

OOP.($$RET>0)

 

ENR.

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: