We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Voice recognition problem

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
shanthint@paydq.com
Posts: 84
Joined: Wed Apr 04, 2007 4:58 pm

Voice recognition problem

Post by shanthint@paydq.com »

Hello,
We have an IVR app using both dtmf and voice input modes.
Dtmf is working fine. But the voice is not especially if we speak by the speaker phone, it is always saying ' I didn't hear it'.(the noinput message). And also it takes only if we speak slow.
We are using Plum voice IVR server. Is that something with Voice recognition engine or can we do anything with property to make the engine gets the input properly?.

Any help is appreciated.

Thank you.

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR apps allow for both dtmf and voice inputs

Post by support »

Hi,

Can you post a snippet of IVR code that demonstrates this IVR issue? We have had IVR applications in the past that allow for both dtmf and voice inputs to work just fine.

Regards,
Plum Support
Last edited by support on Fri Feb 19, 2010 11:39 am, edited 2 times in total.

shanthint@paydq.com
Posts: 84
Joined: Wed Apr 04, 2007 4:58 pm

Post by shanthint@paydq.com »

Hello,
It seems like it will take the input if we speak in the receiver not in the speaker phone. And also sometimes, it will ask again and again for two times or three times.
I just edited the code little bit.
This supposed to take both kind of input.(voice and DTMF)
Actually it works only the voice recognition is not good.

Here is the code:
<form id="getConfirm">

<grammar type="application/x-jsgf" mode="dtmf">
^(1|2)$
</grammar>

<grammar type="application/x-jsgf" mode="voice">
^(One|Two|YES|NO|yeah|sure|S|yes)$
</grammar>

<field name="confirm" type="boolean">
<prompt>

<sentence>You are paying some amount.
<sentence>To confirm this , say yes. </sentence>
<sentence>To cancel this , say No.</sentence>
</prompt>

</field>
<filled>

<if cond="confirm$.inputmode=='voice'">
<if cond="confirm=='1'">
<goto next="#dest1"/>
<else/>
<goto next="dest2"/>
</if>
<else/>
<goto next="#anotherForm"/>
</if>

</filled>
</form>

Thank you.

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR application for grammar fix

Post by support »

Hi,

The reason this is occurring is because you are putting your inline IVR grammars at the form level rather than inside of your field. Also, you shouldn't combine a mix of inline grammars and built-in IVR grammars together. I would recommend removing the built-in grammar of boolean and just sticking your inline grammars within your field.

So, your edited IVR application should look more like this:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">

<form id="getConfirm">

<field name="confirm">
<grammar type="application/x-jsgf" mode="dtmf">
^(1|2)$
</grammar>

<grammar type="application/x-jsgf" mode="voice">
^(one|two|yes|no|yeah|sure|S|Yes)$
</grammar>
<prompt>

<sentence>You are paying some amount. </sentence>
<sentence>To confirm this , say yes. </sentence>
<sentence>To cancel this , say No.</sentence>
</prompt>

</field>
<filled>

<if cond="confirm$.inputmode=='voice'">
<if cond="confirm=='1'">
<goto next="#dest1"/>
<else/>
<goto next="#dest2"/>
</if>
<else/>
<goto next="#anotherForm"/>
</if>

</filled>
</form> 

</vxml>
Hope this helps.

Regards,
Plum Support
Last edited by support on Fri Feb 19, 2010 11:41 am, edited 3 times in total.

shanthint@paydq.com
Posts: 84
Joined: Wed Apr 04, 2007 4:58 pm

Post by shanthint@paydq.com »

Thank you guys.
It works with little modification.

Post Reply