Submitting recorded wav file
Posted: Tue Feb 27, 2007 9:44 pm
Hello, I would like to record the wav file and submit it via email. I've looked at the recording sample and found it to be pretty self explanatory but could someone give me an idea of how I could send the file that's created via email? I'm using asp.net and I know that you guys do not "support" asp.net but if you could breakdown how I could use voicexml to record, save and possibly email the file that would be great.
Here's the sample that I'm using (your sample):
<?xml version="1.0"?>
<vxml version="2.0">
<var name="pin" expr="'myID'"/>
<form>
<record name="recording" beep="true" type="audio/basic">
<prompt bargein="false">
Please record your message after the beep.
</prompt>
<catch event="nomatch noinput">
<reprompt/>
</catch>
</record>
<!-- The subdialog takes a namelist "pin recording" -->
<!-- and returns success(bool), fileid, and fileurl -->
<subdialog name="test" src="http://audio.plumgroup.com/vxml/file_up ... dialog.php"
namelist="pin recording" method="post">
<filled>
<if cond="test.success">
<prompt>
File uploaded successfully.
The file ID is <value expr="test.fileid"/>.
Your message was <audio expr="test.fileurl"/>.
</prompt>
<else/>
<prompt>
File upload failed.
</prompt>
</if>
</filled>
</subdialog>
</form>
</vxml>
Here's the sample that I'm using (your sample):
<?xml version="1.0"?>
<vxml version="2.0">
<var name="pin" expr="'myID'"/>
<form>
<record name="recording" beep="true" type="audio/basic">
<prompt bargein="false">
Please record your message after the beep.
</prompt>
<catch event="nomatch noinput">
<reprompt/>
</catch>
</record>
<!-- The subdialog takes a namelist "pin recording" -->
<!-- and returns success(bool), fileid, and fileurl -->
<subdialog name="test" src="http://audio.plumgroup.com/vxml/file_up ... dialog.php"
namelist="pin recording" method="post">
<filled>
<if cond="test.success">
<prompt>
File uploaded successfully.
The file ID is <value expr="test.fileid"/>.
Your message was <audio expr="test.fileurl"/>.
</prompt>
<else/>
<prompt>
File upload failed.
</prompt>
</if>
</filled>
</subdialog>
</form>
</vxml>