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

Spanish IVR error

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
w2gi
Posts: 46
Joined: Fri Jun 26, 2009 1:35 pm

Spanish IVR error

Post by w2gi »

Hi,

Can you please verify the log for the number 617-712-3999 x1892? We have errors like this

<?xml version='1.0'?><speak>error.grammar.inlined</speak>

Actually, we are trying to implement Spanish IVR. If you can check the VXML and let us know if something is missing that would be really helpful.

Thanks,
Mani

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

Re: Spanish IVR error

Post by support »

Hi Mani,

Could you please post the code you are using to produce this error in your call logs?

This would help us in better understanding which part of your code is producing this issue.

Regards,
Plum Support

w2gi
Posts: 46
Joined: Fri Jun 26, 2009 1:35 pm

Re: Spanish IVR error

Post by w2gi »

The VXML code which causes the error is
============================================================
<field name="chosen">
<grammar type="application/x-jsgf" mode="voice" xml:lang="es-MX">
Sucursal Compartida|cajero autom&#225;tico
</grammar>
...

<field name="chosen">
<grammar type="application/x-jsgf" mode="voice" xml:lang="es-MX">
C&#243;digo|C&#243;digo postal|Por c&#243;digo postal|
La direcci&#243;n|La direcci&#243;n de la calle|La direcci&#243;n completa de la calle|Por la direcci&#243;n|
Por la direcci&#243;n de la calle|Por la direcci&#243;n completa de la calle
</grammar>
...
============================================================


Here is the whole error:
============================================================
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="es-MX" mode="voice">
Sucursal Compartida|cajero automático
</grammar>
---------
GrammarManager::CreateGrammarFromString(application/x-jsgf):
---------
<?xml version='1.0'?>
<grammar xml:lang="es-MX" mode="voice">
Código|Código postal|Por código postal|
La dirección|La dirección de la calle|La dirección completa de la calle|Por la dirección|
Por la dirección de la calle|Por la dirección completa de la calle
</grammar>
---------
bargein set to true
INPUTMODES set to "VOICE"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak>
A serious error of type </speak>
---------
bargein set to true
INPUTMODES set to "VOICE"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak>error.grammar.inlined</speak>
---------
============================================================

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

Re: Spanish IVR error

Post by support »

Hi Mani,

You would want to set up your grammar in the following way to avoid this error:

spanishtest.php

Code: Select all

<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
?>
<vxml version="2.0">
<form id="mainmenu">
  <field name="mychoice">
  <grammar type="application/srgs+xml" root="ROOT" mode="voice" xml:lang="es-MX">
    <rule id="ROOT">
      <one-of>
        <item>Código</item>
        <item>Código postal</item>
        <item>Por código postal</item>
        <item>La dirección</item>
      </one-of>
    </rule>
  </grammar>
      <prompt>
        <speak xml:lang="es-MX"><voice name="Paulina" gender="female">
          Por favor dime algo.
        </voice></speak>
      </prompt>
      <filled>
      <prompt>
        <speak xml:lang="es-MX"><voice name="Paulina" gender="female">
        Usted dijo <value expr="mychoice"/>.
        </voice></speak>
      </prompt>
      </filled>
  </field>
</form>
</vxml>
Hope this helps.

Regards,
Plum Support

Post Reply