PlayVoice: Difference between revisions

From Ultiroam User Docs
Jump to navigation Jump to search
m (added Category:VOICE using HotCat)
m (added Category:R2D2 using HotCat)
 
Line 34: Line 34:


[[Category:VOICE]]
[[Category:VOICE]]
[[Category:R2D2]]

Latest revision as of 11:29, 27 March 2025

This command injects audio file (sample rate 8kHz, Mono, 8 bits per sample, block-align 1, A-LAW coding) in the existing call on the specified GSM port.

Command returns as soon as the voice starts to play.

Voice file will be played in loop is the flag is set to 1


COMMAND

Command Line Arguments Returns
PlayVoice PortIndex,WavFilePath, [FlagForLoopPlay] Error Code in case of error.


OUTPUT

GSM port command status in the following format:

"%s\n", command_status


EXAMPLE

~# PlayVoice 0 /mnt/sdcard/usr/wav/play.wav 1
STARTED

~# PlayVoice 0 /mnt/sdcard/usr/wav/play.wav 1
CALL IS NOT CONNECTED