Page 1 of 1
Spanish IVR error
Posted: Wed Aug 21, 2013 10:13 am
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
Re: Spanish IVR error
Posted: Wed Aug 21, 2013 11:19 am
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
Re: Spanish IVR error
Posted: Wed Aug 21, 2013 11:45 am
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ático
</grammar>
...
<field name="chosen">
<grammar type="application/x-jsgf" mode="voice" xml:lang="es-MX">
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>
...
============================================================
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>
---------
============================================================
Re: Spanish IVR error
Posted: Wed Aug 21, 2013 12:50 pm
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