“recordutterance” recording error
Posted: Mon Dec 15, 2014 3:06 pm
Hi,
I'm using “recordutterance” property global, and trying to get the last result by application.lastresult$.recording. But the recording i'm getting it's not playing. Below is the vxml file for outbound calls.
I'm using “recordutterance” property global, and trying to get the last result by application.lastresult$.recording. But the recording i'm getting it's not playing. Below is the vxml file for outbound calls.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.1">
<var name="callerid" expr="'$to'" />
<var name="transfernum" expr="'$transfernum'" />
<form>
<property name="recordutterance" value="true"/>
<property name="sensitivity" value="0.1"/>
<property name="speedvsaccuracy" value="0.1"/>
<property name="confidencelevel" value="0.58"/>
<field name="F_1">
<prompt bargein="false" bargeintype="hotword">
<audio src="http://cloud.example.net/upload/$step1"/>
</prompt>
<grammar type="application/srgs+xml" src="http://cloud.example.net/$buzzfile"/>
<nomatch count="1">
<prompt>
<audio src="http://cloud.example.net/upload/$reprompt"/>
</prompt>
</nomatch>
<nomatch count="2">
<exit />
</nomatch>
<noinput count="1">
<prompt>
<audio src="http://cloud.example.net/upload/$reprompt"/>
</prompt>
</noinput>
<noinput count="2">
<exit />
</noinput>
<filled>
<var name="rec" expr="application.lastresult$.recording"/>
<if cond="$cond">
<prompt>
<audio src="http://cloud.example.net/upload/$positive"/>
</prompt>
<submit method="post" enctype="multipart/form-data" next="http://cloud.example.net/decypher/record_plum.php" namelist="rec callerid transfernum"/>
<else/>
<prompt>
<audio src="http://cloud.example.net/upload/$negative"/>
</prompt>
<submit method="post" enctype="multipart/form-data" next="http://cloud.example.net/decypher/optout-record_plum.php" namelist="rec callerid"/>
</if>
</filled>
</field>
</form>
</vxml>