API Documentation (Beta)

record

Description

string record ([ string $term_char [, int $silence_time_out [, int $max_duration]]] )

record records audio from the caller. Recorded audio files are temporarily stored on the server while this API executes.

Parameters

term_char

This specifies the character to be used for terminating the recording. By default, ‘#’ character is used for terminating it.

silence_time_out

This specifies the amount of time that the caller can remain silent while the recording is being executed before VoicePHP decides that the caller has finished recording the message. By default, this is disabled.

max_duration

This specifies the maximum amount of time in seconds that VoicePHP will schedule the recording for. After the expiration of maxDuration, recording will stop automatically. By default, there is no duration set.

Return Values

If successful, it returns the string with location of recorded file.
On Failure, it returns empty string.