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:
Use the words of the prompt in lower case as the file name.
Use an underscore character between words of the phrase. For example: word_word.
Truncate the file name at 50 characters, leaving an additional 4 characters for the .wav extension
To use this prompt directory in your voice application, add the path /voice/en_US/prompts/cheryl (or the path to your prompts) before the prompt file name.
For example, if your prompts were stored in a prompts/ sub-directory, replace this statement:
<audio src="’thats_it.wav’" />
with:
<audio src="’/voice/en_US/prompts/cheryl/thats_it.wav’" />
For localization convenience, you might want to define some VoiceXML variables in your application’s root document, and construct the path from this:
<var name="root" expr="’/voice’" /> <var name="locale" expr="’en_US’" /> <var name="prompts_directory" expr="’prompts’" /> <var name="persona" expr="’cheryl’" /> <var name="promptPath" expr="root + ’/’ + locale + ’/’ + prompts_directory + ’/’ + persona + ’/’" /> |
Then use the promptPath variable as follows, using expr= instead of src=:
<audio expr="promptPath + ’thats_it.wav’" />