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

language of error messages

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
nevenfi
Posts: 11
Joined: Fri Nov 30, 2007 4:00 am

language of error messages

Post 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).

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

IVR code to change noinput and nomatch error handlers

Post 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
Last edited by support on Fri Feb 19, 2010 11:29 am, edited 4 times in total.

nevenfi
Posts: 11
Joined: Fri Nov 30, 2007 4:00 am

Post 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?

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

IVR code example using the "count" attribute

Post 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

Post Reply