unable to save recording in .wav file

43 views
Skip to first unread message

Dhairya Vora

unread,
Aug 16, 2011, 9:01:01 AM8/16/11
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();
?>

Dhairya Vora

unread,
Aug 16, 2011, 9:19:45 AM8/16/11
to plivo...@googlegroups.com
it stores the hello2.mp3 at the specified location

[root@centos-dev-mayavi1 plivo]# locate hello2
/var/www/fusionpbx/testRecordings/hello2.mp3

mi...@plivo.com

unread,
Aug 16, 2011, 10:05:51 AM8/16/11
to plivo...@googlegroups.com
Hi,

get the last plivohelper-php form github and try again,
I think it will be ok (I fixed a small typo in Record)

thanks for the report :)


Le Tue, 16 Aug 2011 06:19:45 -0700 (PDT),
Dhairya Vora <dhairy...@gmail.com> a écrit :

Dhairya Vora

unread,
Aug 17, 2011, 1:56:27 AM8/17/11
to plivo...@googlegroups.com
Thanks mike, it works now.
Reply all
Reply to author
Forward
0 new messages