Checks that HPE IDOL Speech Server has sufficient resources available to perform a task. This action returns one of the following status messages:
AVAILABLE_LOADED
|
The language pack is already loaded and the server can accept your task. |
AVAILABLE_NOT_LOADED
|
The language pack is either already loaded or the task does not use one, so the server can accept your task. |
NOT_AVAILABLE
|
The server has either reached the maximum number of tasks it can run in parallel or the maximum number of languages it can load. The task will be rejected if submitted. |
The results of a CheckResources
action might not continue to be valid if you subsequently submit new tasks to the server. In addition, CheckResources
does not take into account any pending tasks that may be in the system (that is, tasks that have been submitted using the AddTask
action, but are not yet fully registered with the task tracker). These tasks are shown as PENDING
in the GetStatus
output.
After you submit a task, HPE recommends that you use the GetStatus
action with the task token to check the status of the task. You should not make any calls to CheckResources
for subsequent tasks until the task status changes from PENDING
to STARTING
, RUNNING
, LOADING_LM
, and so on.
http://localhost:13000/action=CheckResources&Type=WavToText&File=Speech.wav&Out=Text1.ctm&Lang=ENUS
This action uses port 13000
to instruct HPE IDOL Speech Server, which is located on the local machine, to check that it has sufficient resources to perform the WavToText
task on the Speech.wav
file, using the ENUS
language pack and writing the text transcription to a file named Text1.ctm
.
Except for the SplitSize
and Overlap
parameters, CheckResources
accepts the same parameters as the AddTask action.
Parameter | Description | Required |
---|---|---|
OutputEncoding | The encoding to use for the action output. | |
TaskManagers | The number of task managers to split the task across. | |
Type | The name of the configuration section that defines the task. | Yes |
This action accepts the following standard ACI action parameters.
Parameter | Description |
---|---|
ActionID | A string to use to identify an ACI action. |
EncryptResponse | Encrypt the output. |
FileName | The file to write output to. |
ForceTemplateRefresh | Forces the server to load the template from disk. |
Output | Writes output to a file. |
ResponseFormat | The format of the action output. |
Template | The template to use for the action output. |
TemplateParamCSVs | A list of variables to use for the specified template. |
|