Page 1 of 1

language of error messages

Posted: Mon Jan 28, 2008 11:26 am
by nevenfi
Error messages such as 'sorry, I didn't hear you', when the user doesn't repond, are always in English. Even if I globally set the language to french using:

<property name="voicename" value="Isabelle"/>

These message are still in English. Is it possible to change this (we need this for french and german).

IVR code to change noinput and nomatch error handlers

Posted: Mon Jan 28, 2008 11:43 am
by support
Hi,

Here's an example of IVR code that shows how you can change the <noinput> and <nomatch> error handlers to French and German (the IVR example uses a French example):

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">
  <form>
    <field name="id" type="digits?length=7">
      <prompt>
        Enter your customer identification number.
      </prompt>
      <filled>
        <assign name="customerid" expr="id"/>
        You entered <value expr="id"/>.
        <!-- transfer to premium support -->
      </filled>
      <noinput>
	<prompt>
	  <voice name="juliette">
            Désolé, je ne vous ai pas entendu.
          </voice>
	</prompt>
        <reprompt/>
      </noinput>
      <nomatch>
	  <prompt>
	    <voice name="juliette">
              Désolé, je ne vous ai pas compris.
	    </voice>
	  </prompt>
        <reprompt/>
      </nomatch>
    </field>
  </form>
</vxml>
Keep in mind that you can also set up a root document with the noinput and nomatch error handlers set up in this way so that you don't have to keep referring to them in your vxml document.

Hope this helps.

Regards,
Plum Support

Posted: Tue Jan 29, 2008 3:46 am
by nevenfi
This works, but now Plumvoice keeps on trying to get user input infinitely. Normally, PlumVoice stops trying after a number of attempts. How can I get the same behavior in another language?

IVR code example using the "count" attribute

Posted: Tue Jan 29, 2008 10:31 am
by support
Hi,

If you do not want to keep getting the user's input, you can use the "count" attribute for <noinput> and <nomatch>. Here's an IVR code example that demonstrates how you can do that (this time in German):

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">
  <form>
    <field name="id" type="digits?length=7">
      <prompt>
        Enter your customer identification number.
      </prompt>
      <filled>
        <assign name="customerid" expr="id"/>
        You entered <value expr="id"/>.
        <!-- transfer to premium support -->
      </filled>
      <noinput count="1">
        <prompt bargein="false">
          <voice name="reiner">
            Traurig, hörte ich Sie nicht.
          </voice>
        </prompt>
        <reprompt/>
      </noinput>
      <noinput count="2">
        <prompt bargein="false">
          <voice name="reiner">
            Traurig, hörte ich Sie nicht.
          </voice>
        </prompt>
        <reprompt/>
      </noinput>
      <noinput count="3">
        <prompt bargein="false">
          <voice name="reiner">
            Traurig, hörte ich Sie nicht. Auf Wiedersehen.
          </voice>
        </prompt>
        <disconnect/>
      </noinput>
      <nomatch count="1">
        <prompt bargein="false">
          <voice name="reiner">
            Traurig, verstand ich Sie nicht.
          </voice>
        </prompt>
        <reprompt/>
      </nomatch>
      <nomatch count="2">
        <prompt bargein="false">
          <voice name="reiner">
            Traurig, verstand ich Sie nicht.
          </voice>
        </prompt>
        <reprompt/>
      </nomatch>
      <nomatch count="3">
        <prompt bargein="false">
          <voice name="reiner">
            Traurig, verstand ich Sie nicht. Auf Wiedersehen.
          </voice>
        </prompt>
        <disconnect/>
      </nomatch>
    </field>
  </form>
</vxml>
Hope this helps.

Regards,
Plum Support