Setting the application locale

The application locale property allows an application to have a default locale that is different from the default locale of the voice response node. For example, you might want to run an English version, a French version, and a Spanish version of an application on the same voice response node. The application locale for each version determines the default language and country or region (and optionally a user-defined variant) of all voice segments in the application.

To specify the application locale, use the ApplicationProperties.setLocale() method. For example, to set the locale of an application to United States include the following within voiceMain():
public void voiceMain() throws WVRException {	
  .
  .
  .
  // Create the application properties object
  ApplicationProperties applicationProperties = new ApplicationProperties();
  // Set the application locale
  applicationProperties.setLocale(Locale.US);	
  .
  .
  .
}