PlayVoice: Difference between revisions

From Opale Wiki
Jump to navigation Jump to search
m (added Category:R2D2 using HotCat)
m (removed Category:VOICE using HotCat)
Line 33: Line 33:
</syntaxhighlight>
</syntaxhighlight>


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

Revision as of 10:04, 2 April 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