Dhairya Vora
unread,Aug 16, 2011, 9:01:01 AM8/16/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to plivo...@googlegroups.com
I am trying to save the recording file in .wav format and play it. Below is the php file. But it saves the recorded file in .mp3 format only.
<?php
require "./plivohelper.php";
$r = new Response();
$r->addSpeak('Please Record your message after the beep.');
$r->addRecord(array('timeout' => 5, 'finishOnKey' => "#",
'maxLength' => 30, 'playBeep' => 'true', 'fileformat' => 'wav',
'filePath' =>'/var/www/fusionpbx/testRecordings', fileName => 'hello2'
)
);
$r->addSpeak('Your recorded messages is');
$r->addPlay("/var/www/fusionpbx/testRecordings/hello2.wav", array('loop' => 4) );
$r->Respond();
?>