Re: audio files voice not coming
Posted: Thu Sep 01, 2016 1:41 pm
Hi,
We have tested your code with some adjustments and successfully got your expected result:
You may have been coming across those issues by accidentally setting off a "no match" event. If this was done after "transactionHistory.wav", it would reprompt the user starting with "suspendCard.wav" again. We recommend editing your code to alert the user of a nomatch or noinput event before reprompting. For example:
Regards,
Plum Support
We have tested your code with some adjustments and successfully got your expected result:
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0">
<form>
<var name="CallSid" expr="'a9e72239-f524-401f-a803-acba55a04aff'"/>
<var name="autoDigits" expr="1"/>
<block>
<prompt bargein="false">
<audio src="https://wcdevint2.wavecrest.in:444/static/ivr/Afligo/en/wc-A21-1.wav" fetchtimeout="120s"/>
<voice xml:lang="en_us" gender="female" name="crystal"><say-as>0 dollars. 0 cents</say-as></voice>
<break time="4s" />
</prompt>
</block>
<property name="termtimeout" value="12s"/>
<property name="termchar" value="#"/>
<field name="Digits" type="digits?length=1"><grammar type="application/srgs+xml" root="Root" mode="dtmf">
<rule id="Root" scope="public"><one-of><item repeat="0-255"/></one-of></rule></grammar>
<prompt bargein="true">
<audio src="https://wcdevint2.wavecrest.in:444/static/ivr/Afligo/en/wc-A12-suspendCard.wav" fetchtimeout="120s" />
<voice xml:lang="en_us" gender="female" name="crystal"><say-as>1</say-as></voice>
<break time="4s" />
<audio src="https://wcdevint2.wavecrest.in:444/static/ivr/Afligo/en/wc-A12-transactionHistory.wav" fetchtimeout="120s" />
<voice xml:lang="en_us" gender="female" name="crystal"><say-as>2</say-as></voice>
<break time="4s" />
<audio src="https://wcdevint2.wavecrest.in:444/static/ivr/Afligo/en/wc-A12-managePIN.wav" fetchtimeout="120s"/>
<voice xml:lang="en_us" gender="female" name="crystal"><say-as>3</say-as></voice>
<break time="4s" />
<audio src="https://wcdevint2.wavecrest.in:444/static/ivr/Afligo/en/wc-A12-blockCard.wav" fetchtimeout="120s" />
<voice xml:lang="en_us" gender="female" name="crystal"><say-as>4</say-as></voice>
<break time="4s" />
<audio src="https://wcdevint2.wavecrest.in:444/static/ivr/Afligo/en/wc-A12-customerService.wav" fetchtimeout="120s" />
<voice xml:lang="en_us" gender="female" name="crystal"><say-as>9</say-as></voice>
<break time="4s" />
</prompt>
<nomatch count="1">
<reprompt/>
</nomatch>
<nomatch count="2">
<reprompt/>
</nomatch>
<nomatch count="3">
<reprompt/>
</nomatch>
<nomatch count="4">
<exit/>
</nomatch>
<noinput count="1">
<reprompt/>
</noinput>
<noinput count="2">
<reprompt/>
</noinput>
<noinput count="3">
<reprompt/>
</noinput>
<noinput count="4">
<exit/>
</noinput>
<filled>
<submit next="https://wcuser:wcuser@dev2.api.wavecrest.in:444/v1/services/ivr/xmlivrprocessor/" namelist="Digits CallSid" method="post"/>
</filled>
</field>
</form>
</vxml>
Code: Select all
<nomatch count="1">
<prompt>
I'm sorry, I didn't understand you.
</prompt>
<reprompt/>
</nomatch>
Plum Support