Using Prompt Files

Using the mkprompt Utility

The mkprompt utility converts multiple infopkt files into a Brooktrout prompt file and updates an existing Brooktrout prompt file by adding new phrases or modifying existing phrases.

When you create a Brooktrout prompt file, the mkprompt utility automatically assigns each infopkt file a phrase number, sequentially, in the order that you enter each file name at the command line. The mkprompt utility always assigns the phrase number 0 to the first infopkt file you enter.

When you update a Brooktrout prompt file, you assign a phrase number to each infopkt file you are adding to the existing Brooktrout prompt file.

Since the mkprompt utility cannot return phrase numbers of individual prompt files in a Brooktrout prompt file, be sure to keep your own record. You might need this information when you update your prompt file.

Both the mkprompt utility and the Bfv API permit you to include the text of each phrase in the Brooktrout prompt file. Create an infopkt file for each phrase in which the first infopkt in the file contains the text annotation and the remaining infopkts contain the speech that make up the phrase. The mkprompt utility treats the whole file as a phrase infopkt, and the BfvPromptPlay function skips over the annotated text.

Creating a New Prompt File

To create a new Brooktrout prompt file, at the command line type:

mkprompt prompt_file [phrase1.pkt phrase2.pkt...]

Where:

prompt_file

Specifies the name of the prompt file to create.

phrase1.pkt,

Provides the names of the infopkt-formatted.

phrase2.pkt, ...

Prompts files in the order in which you enter

 

them at the command line.

The mkprompt utility automatically assigns phrase 0 to the file you enter as phrase1.pkt and sequentially numbers any additional files in the order that you enter them.

November 2009

60

Page 60
Image 60
Dialogic 6.2 manual Using the mkprompt Utility, Creating a New Prompt File