WaitAcceptCallAndRecord: Difference between revisions

From Ultiroam User Docs
Jump to navigation Jump to search
(Created page with "This command allows to wait for an incoming call on the specified GSM port, to connect it and then to record voice to a specified WAV file (sample rate 8kHz, mono, 8 bits per sample, block-align 1, A-LAW coding). An optional timeout (in seconds) can be specified. Optional flag PCM16 can be added to record 16 bits per sample. Command returns as soon as call is connected and the Robot starts to record. '''COMMAND''' {| class="wikitable" !Command !Line Arguments !Ret...")
 
m (added Category:R2D2 using HotCat)
 
(2 intermediate revisions by the same user not shown)
Line 35: Line 35:


</syntaxhighlight>
</syntaxhighlight>
[[Category:Voice]]
[[Category:R2D2]]

Latest revision as of 11:29, 27 March 2025

This command allows to wait for an incoming call on the specified GSM port, to connect it and then to record voice to a specified WAV file (sample rate 8kHz, mono, 8 bits per sample, block-align 1, A-LAW coding).

An optional timeout (in seconds) can be specified.

Optional flag PCM16 can be added to record 16 bits per sample.

Command returns as soon as call is connected and the Robot starts to record.


COMMAND

Command Line Arguments Returns
WaitAcceptCallAndRecord PortIndex, WavFilePath, [Timeout], [PCM16 flag] Error Code in case of error.


OUTPUT

GSM port command status in the following format:

"%s\n", command_status


EXAMPLE

~# WaitAcceptCallAndRecord 1 /mnt/sdcard/usr/wav/record.wav
CONNECTED 0612345678

~# WaitAndAcceptCall 0 /mnt/sdcard/usr/wav/record.wav 120
TIMEOUT EXPIRED