Open topic with navigation

# CheckResources

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.

Note: 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.

## Example

    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`.

## Parameters

Except for the `SplitSize` and `Overlap` parameters, the `CheckResources` action accepts the same parameters as the AddTask action.

© 2014 - 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send Documentation Feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm