P
paul.hopgood
I am trying to save a voiceMessage from a voiceXML script transfered
via a BeVocal vxml script to a perl program located in a Yahoo web
server that supports the perl language. I don't know exactly what path
I need to name my file.My test.wav file does not create. Nothing
happens. Any suggestions would be helpful.
Here is my recording.pl file and what is currently coded in it:
#!/usr/bin/perl -w
use CGI qw
standard);
$|++;
my $pathToRecordings='http://www.deathnotify.com/recordings';
my $newRecording = 'test.wav';
print header;
open (SAVE, "> $deathnotify.com/recordings");
binmode(SAVE);
while (read(param('voiceMessage'),$data,1024))
{ print SAVE $data; }
close(SAVE);
# CONFIRM RECORDING WAS SAVED
print <<INSERT_VXML;
<?xml version="1.0"?>
<vxml version="1.0">
<form id="acceptInput">
<block>
Input was $ENV{'CONTENT_LENGTH'} bytes in length.
The recording was processed and saved.
<return/>
</block>
</form>
</vxml>
INSERT_VXML
via a BeVocal vxml script to a perl program located in a Yahoo web
server that supports the perl language. I don't know exactly what path
I need to name my file.My test.wav file does not create. Nothing
happens. Any suggestions would be helpful.
Here is my recording.pl file and what is currently coded in it:
#!/usr/bin/perl -w
use CGI qw
$|++;
my $pathToRecordings='http://www.deathnotify.com/recordings';
my $newRecording = 'test.wav';
print header;
open (SAVE, "> $deathnotify.com/recordings");
binmode(SAVE);
while (read(param('voiceMessage'),$data,1024))
{ print SAVE $data; }
close(SAVE);
# CONFIRM RECORDING WAS SAVED
print <<INSERT_VXML;
<?xml version="1.0"?>
<vxml version="1.0">
<form id="acceptInput">
<block>
Input was $ENV{'CONTENT_LENGTH'} bytes in length.
The recording was processed and saved.
<return/>
</block>
</form>
</vxml>
INSERT_VXML