Open topic with navigation

# ResourceSelection

When sent an audio file and language code, the `ResourceSelection` action returns a list of language packs that are appropriate to use in tasks that process the supplied audio.

For HPE IDOL Speech Server to recommend a language pack:

- the language pack must be configured in the configuration file
- all required language pack files must be available on disk
- the language must be licensed
- the language pack must have a sample frequency equal to, or lower than, the sample frequency of the audio file (HPE IDOL Speech Server does not permit upsampling)

You can search using the base language code (for example, `EN`) or the full code (for example, `ENUS`).

## Example

    http://localhost:13000/action=ResourceSelection&File=C:\data\sample.wav&Lang=ENUK

This action uses port `13000` to instruct HPE IDOL Speech Server, which is located on the local machine, to recommend British English language packs that can be used with the `sample.wav` file.

`http://localhost:13000/action=ResourceSelection&Lang=EN&File=C:\data\sample.wav`

This action uses port `13000` to instruct HPE IDOL Speech Server, which is located on the local machine, to recommend language packs that cover the base language `EN` that you can use with the `sample.wav` file.

## Parameters

Parameter | Description | Required
--- | --- | ---
ActionID | A string to use to identify an ACI action. |
EncryptResponse | Encrypt the output. |
File | The audio file. Specify the full path, file name, and file extension. | Yes
FileName | The file to write output to. |
ForceTemplateRefresh | Forces the server to load the template from disk. |
Lang | The language code. | Yes
Output | Write output to a file. |
OutputEncoding | The encoding to use for the action output. |
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. |

© 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