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
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
Re: Spanish IVR error
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
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
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com
Re: Spanish IVR error
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>
---------
============================================================
============================================================
<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
Hi Mani,
You would want to set up your grammar in the following way to avoid this error:
spanishtest.php
Hope this helps.
Regards,
Plum Support
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>
Regards,
Plum Support
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com