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 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 (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:15000/action=ResourceSelection&File=C:\data\sample.wav&Lang=ENUK

This action requests the British English language packs that can be used with the `sample.wav` file.

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

This action requests language packs that cover the base language `EN` that you can use with the `sample.wav` file.

## Parameters

Parameter | Description | Required
--- | --- | ---
File | The audio file. Specify the full path, file name, and file extension. | See Comments
Lang | The language code. | Yes
OutputEncoding | The encoding to use for the action output. |
TaskData | The binary data block to process. | See Comments

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.

## Comments

You must set one of File or TaskData.

© 2015-2018 EntIT Software LLC, a Micro Focus company | Send documentation feedback to Micro Focus 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 swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm