Page 1 of 1

Spanish speech recognition

Posted: Wed Jul 11, 2018 11:59 am
by jverweij
We are going to be launching an ivr call in spanish and want to allow the member to speak "si" or "no" but are having trouble implementing that grammar recognition. Looking through the documentation we're not sure how to implement this. We're looking for assistance. Thank you!

Re: Spanish speech recognition

Posted: Wed Jul 11, 2018 2:29 pm
by support
Hi,

When your application loads a grammar the system will use the current active language identifier in your document. The language identifier is controlled by the use of the xml:lang attribute which is defined in the <vxml> tag. You can set the xml:lang for the document by declaring your <vxml> tag as:

Code: Select all

<vxml xml:lang="es-US">
  ...
</vxml>
After declaring the xml:lang attribute any grammars loaded on that page will automatically use US Spanish as their supported language.

Regards,
Plum Support