PlayVoice

From Ultiroam User Docs
Jump to navigation Jump to search

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