PlayVoice

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command plays voice from the specified WAV 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 terminates as soon as the voice starts to play. Voice file will be played repetitively is the repeat flag is specified.

COMMAND

Command Input arguments Returns
PlayVoice Port index, Wav file path, [repeat flag] In the case of error, Error Code

OUTPUT

GSM port command status in the following format:
"%s\n", command_status

EXAMPLE

~# PlayVoice 0 /usr/wav/message.wav 1
PLAYING STARTED RESULT MUST BE CHECKED

~# PlayVoice 3 /usr/wav/message.wav
CALL IS NOT CONNECTED