Configure Action Parameters

For task, module, and language configurations, you can define the configuration parameters as a variable of the form:

ConfigParam=$params.ActionParam  

where:

ConfigParam is the name of the configuration parameter set by the value of the action parameter.
ActionParam is the name of the action parameter.

For example, in the wav module, you can set the WavFile configuration parameter to the name of an action parameter.

WavFile=$params.WavFile

If you configure a WavRead task that uses the wav module, you can then send an AddTask action to create a new WavRead task.

http://localhost:13000/action=AddTask&Type=WavRead&WavFile=Speech.wav

The WavFile parameter in this action sets the WavFile configuration parameter in the [wav] module configuration section to Speech.wav for the duration of the task.

Action parameter names have the following restrictions.

You cannot use the following reserved names as new action parameters:

You can use these names in a configuration parameter (for example $params.Token), where they take on the following predefined values.

Token The current task token.
TempDir The temporary directory.
CustomLmDir The custom language model directory.
Type The type of task as specified in the AddTask action.

_HP_HTML5_bannerTitle.htm