Use the following procedure to display details of all resources that are configured and available for use in tasks.
To display all configured resources
Send the ListResources
action to HPE IDOL Speech Server. To filter the list of resources that HPE IDOL Speech Server returns, set any of the following optional parameters:
Found
|
Whether to exclude languages that do not have lang files on disk from the results. |
LangCode
|
A language code to restrict results to (for example, ENUK). |
Licensed
|
Whether to exclude unlicensed languages from the results. |
Type
|
A resource type to restrict results to (lang , langvt , fpdb , or sidbase ). |
For example:
http://localhost:13000/action=ListResources&Type=lang&Found=True
This action uses port 13000
to instruct HPE IDOL Speech Server, which is located on the local machine, to return a list of all configured lang resources that are on disk.
HPE IDOL Speech Server returns resource details in XML format. For example:
<autnresponse> <action>LISTRESOURCES</action> <response>SUCCESS</response> <responsedata> <resources> <resource> <name>ENUK</name> <type>lang</type> <found>TRUE</found> <licensed>TRUE</licensed> <lang>ENUK</lang> <sampleRate>16000</sampleRate> </resource> <resource> <name>ENUS</name> <type>lang</type> <found>TRUE</found> <licensed>TRUE</licensed> <lang>ENUS</lang> <sampleRate>8000</sampleRate> </resource> </resources> </responsedata> </autnresponse>
For each resource, HPE IDOL Speech Server returns the following information.
name
|
The name of the resource as specified in the configuration file. |
type
|
The resource type (lang , langvt , fpdb , or sidbase ). |
found
|
Whether the resource was found on disk. |
licensed
|
Whether a license to use the resource is available. HPE IDOL Speech Server returns the value Unknown if it cannot determine the resource language code. |
lang
|
The language code associated with the resource. HPE IDOL Speech Server returns the value Unknown if it cannot determine the resource language code, or N/A for resource types that are language independent. |
sampleRate
|
The sample rate associated with the resource. HPE IDOL Speech Server returns the value Unknown if it cannot determine the sample rate. |
|