Share via


How to: Create Extractions

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Edit transcriptions within Speech Prompt Editor to create extractions. An extraction is a segment of a prompt that can combine dynamically with other extractions at run time to create a prompt. For example, the three extractions "medium," "latte," and "You ordered a" can combine to create the prompt "You ordered a medium latte."

The built version of the prompt database, the .prompts file, contains only extractions. Parts of a sound recording that are not marked as an extraction are not available for the application. Using extractions avoids the expense of recording all the variations of repetitive prompts, for example:

  • You ordered a medium latte.
  • You ordered a double espresso.
  • You ordered a small coffee.

To create extractions, place square brackets ([]) around the selection in the Transcription pane.

Note

To use prompt validation, prompt extractions must be entered in a resource file, as well as in the prompt database. Adding extractions to a resource file is also recommended for any application that plays prompts in more than one language.

Creating Extractions

To create extractions

  1. Open a prompt database.

    For more information, see How to: Open a Prompt Database.

  2. In the Transcription pane, select a row containing a transcription, and then click the Transcription cell.

  3. In the Transcription column, enter opening and closing square brackets ([]) around a word or phrase.

  4. Press ENTER.

    It is also possible to identify each extraction with a user-defined extraction ID. This facilitates automated maintenance of prompt databases and makes it easier to keep track of extractions. In addition, extraction IDs can appear in Prompt Engine Markup Language (PEML) markup to specify the ID of a particular prompt to play.

Adding an Extraction ID to an Extraction

To add an extraction ID to an extraction

  • In a transcription in the Transcription pane, add an ID in angle brackets (<>) inside the square brackets marking off an extraction:

    Hello, [Scott <scottname>]

    You can also type an ID in the Extraction ID column in the Extraction pane.

See Also

Other Resources

Prompt Projects and Databases
Prompt Transcriptions and Recordings