Sun Java System Portal Server Mobile Access 7.1 Developer's Guide

File System Directories for Dialogs, Grammars, and Prompts

Portal Server 7.1 software has specific directories for the various provider components. This section discusses the directories for:

Dialogs

The dialog files for each voice application are stored in a separate directory that includes the name of the application, the presentation format (vxml) and the name of the voice browser vendor (Nuance).

For a weather application, the dialog files would be stored in:

/var/opt/SUNWportal/portals/portal1/desktop/default/vxml/Nuance

where portal1 is the name of the Portal.

Grammars

If your application uses external grammar files, they should be stored in the web server’s document root, or in some other well-known location within the Portal Server 7.1 web application.

To make the application accessible from the voice Portal Desktop, you must create a second grammar file that allows users to select the application. The grammar for the channel must be unique across all of the voice-enabled channels. For consistency, the grammar should allow users to optionally speak the word channel after the name of the channel.

For example, the following grammar allows weather or weather channel:

Weather [ (weather ?channel) ]

Name this file weather.grammar and store the file in the following directory:

/opt/SUNWportal/web-src/jsp/default/weather/vxml/Nuance/grammars

Prompts

The voice prompts are located in the following directory:

/opt/SUNWwbsvr/docs/voice/en_US/prompts/gary

The path element gary is the name of the default persona—the person whose voice appears on the recording. If you record new prompts, you should create a new directory for the new persona. This new directory could be named after the person who recorded the prompts.

For example:

/opt/SUNWwbsvr/docs/voice/en_US/prompts/cheryl

Voice prompt file names use the following naming convention: