Project View - SpeechLab

Project View

Here is an example of the project view:

Controls in the Upper Left

Locales

Custom Lexicons

If your project requires the use of a custom lexicon (a .pls file), you can provide it on the “All States” page.

State Management

State Definition

The speech platform automatically adds the phrases “Xbox” and “Xbox…” to all grammars because it is a reserved keyword. They appear in the “[System Added]” action. You cannot modify these phrases, and you also cannot use “Xbox” in your grammar.

There are two methods of creating actions.

  1. Directly adding them using the Stock Grammars or a custom set of action.
  2. Importing them from existing GRXML or CFG files.

Creating and Editing States Directly Through SpeechLab

When working directly in the SpeechLab UI, actions can be created using the Stock Grammars or customized for your app or game.

Importing an Existing GRXML or CFG File

Instead of authoring grammars directly in SpeechLab, you can also import existing grammars into a state. For example, you may maintain all strings for speech in a separate system or build your grammars directly in your source code (e.g., through GrammarBuilder objects). You can use the SerializeGrammarToFolderAsync() API to capture the state of your game’s grammar to a CFG file while the game is running.

Note Note that SpeechLab doesn’t support empty garbage rule (i.e. ‘…’) or external rule-refs so if your grammar contains them, the import/test/analysis of this grammar will not work as expected.

SpeechLab allows you to select which grammar files to import through the “Create from Grammar Files” button when creating a new state. You must choose between adding custom or Stock Grammar, or importing from existing files.

After selecting the files, SpeechLab lists all the rules found within the grammars. By default, enabled rules are selected.

SpeechLab PC uses SpeechLab on the console to map the phrases in the grammar to actions. After the mapping operation is complete, SpeechLab PC displays the new state.

The “Linked Grammar File” section lists the GRXML and/or CFG files that were imported to the state and the available actions that you can take.

There are some limitations on what kinds of grammars can be imported. SpeechLab does not support grammars that use the following.

Using the Garbage Rule

The “garbage rule” is a special rule in a speech grammar. It instructs the speech engine to recognize any utterance that matches the format of the rule. For example, you may want to handle the case where the user says “search for saved game” in the Main Menu, and have the game treat it as if the user had said just “search”. This can be accomplished by adding “search …” as another phrase for the “search” action.

The garbage should be used with care. It can result in a much larger FA for that phrase.

In order to use the SpeechLab tools suite to collect data and run test automation, there is on additional step that is required. There must be a state that contains only examples of garbage rule usage. This state can be called anything (e.g., “Garbage Rule Examples”).

Tips for Grammar Creation

When constructing grammar, whether directly in SpeechLab or elsewhere, keep in mind the following.

Testing

The testing tab lets you test your grammar and collect data for it.

On the right side of the screen is a “Data Summary”. It shows how many utterances are available in your Audio Repository for each phrase in the selected state, or for all phrases in all states if “All States” is selected. The Data Summary also shows a bar graph to visually indicate if there are enough utterances for each phrase for test results to be statistically meaningful. The colouring of the graph gradually changes from red to green depending on the utterance count, with 10 being the minimum number of utterances before a phrase is marked green.

While running automation, SpeechLab will try to select OOG phrases for your state from your audio repository. This is done by selecting any phrase which doesn’t contain any word present in your state.

When collecting data using Voice Studio, it is very important to keep the following in mind.

Analysis and Results

Lets you review test pass results and set confidence values

Advanced Usage: Audio Repository Management

The audio repository can be managed in two ways.

  1. Changing its location to be different path on the local filesystem or a network share.
  2. Importing audio from a data collection done using a different instance of SpeechLab.

Both of these are handled through the Audio Repository Manager.

The Audio Repository Manager also provides some statistics on your repository, in the form of total number of sessions and total number of utterances.

Files and Folders

Note

It is important that you do not edit any of the files or folders directly. Doing so can cause SpeechLab to become unstable and may result in data loss.

Extras: Stock Grammar Wav Files

In addition to free translations for stock grammars found in SpeechLab, use the wav files in the optional downloads section of the XGD XDK download page for testing. To install, download the locale pack(s) that you intend to use and follow the readme.txt instructions found within the zipped folder(s).