Type
Prompt Segment item
Available from
Any level tab in the Prompt File Editor. For more information about the Prompt File Editor, see Using the Prompt File Editor.
Purpose
Text Variable item is used for:
- Rendering the value of a variable or variable field as a prompt segment using speech synthesis (TTS).
- Play a designated audio file as a prompt segment in the case of prerecorded audio files.
Behavior
When you place a Text Variable item in a prompt, it takes the value of the designated variable (or variable field, if it is a complex variable). If the variable or variable field contains text, the text variable renders the text as spoken output using TTS.
Note:
Instead of using the text variable with a URL to an audio file, we recommend you
to use the Phrase Variable type because it includes additional functionality for
playing recorded audio files. (The audio file must be of a supported format: G.711
or *.wav formats only.)
For more information about how to use text variables effectively in applications, see Using the Prompt File Editor to Employ Variables.
Properties
- Variable - Select the variable you want to render. If the variable you select is a complex variable, you must also select a Variable Field.
- Variable Field - If the variable in the Variable Field is a complex variable, you must select the variable field you want to use.
- The contents of this list depend on which variable you selected in the Variable property: This list contains only the fields associated with the selected variable.
Note:
If you have selected a simple variable in the Variable field, this field is inactive.
- Format - Select the format you want to use for the variable. Use the following table to help you determine the correct format.
Note:
If your system supports SSML, Avaya recommends that you use the SSML Say
As option, as it gives you greater control over the TTS output. For more
information, see Say As.
Format
|
Description/Comments
|
---|
text
| Reads the contents of the variable or variable field as normal text. If the contents include numbers, it reads them as numbers. The exact interpretation of numbers depends on the TTS engine.
|
filename
| Renders the contents of the file. If the file is:
- A text file, the system renders it to audible speech using TTS. The text file must have a .txt extension.
- An audio file, the system plays the file. The audio file must have a .wav extension.
Note that these are the only two file formats supported for this option. Also the file must reside in the /data/temp directory for the application.
|
digits
| Reads the contents of the variable or variable field as separate digits. For example, if the value of the variable is H14295, the system reads the value as "H one four two nine five."
|
url
| Retrieves the file specified in the URL and plays it back. If the file is:
- A text file with a .txt extension, the system renders it to audible speech using TTS.
- Any other file type, the system assumes it is an audio file and attempts to play it as such.
This format requires that the value of the variable or variable field be a valid URL.
|