AIC. - Artificial Intelligence Command

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command >

AIC. - Artificial Intelligence Command

AIC.Record

Top


MiniRobotLanguage (MRL)

 

AIC.Record

Record audio (synchronous)

 

Intention

 

The AIC.Record command records audio from the microphone synchronously (blocks until complete). The recorded audio can then be transcribed using Whisper.

 

Syntax

 

AIC.Record|$$Duration|$$OutputPath[|$$RetVar]

 

P1 - $$Duration - Recording duration in seconds

P2 - $$OutputPath - Path to save audio file

P3 - $$RetVar (optional) - Returns success/fail

 

Example

 

' Record 5 seconds of audio

AIC.Record|5|C:\Audio\recording.wav

 

' Record and transcribe

AIC.Record|10|C:\Audio\voice.wav

AIC.CallWhisper|C:\Audio\voice.wav|$$Text

DBP.$$Text

 

Related Commands

 

- AIC.RecordAsync - Async recording

- AIC.CallWhisper - Transcribe audio