Open topic with navigation

# Configure Language Packs

HPE IDOL Speech Server can use language models for several languages at a time. The number of languages that you can configure depends on your license. You must configure each language in the `[Resources]` section of the tasks configuration file.

The `[Resources]` configuration section lists details for the configured language packs, primarily for use with speech-to-text. This section also contains subsections where you can configure resource packs for language identification, audio fingerprinting, phonetic phrase match, and audio security event detection.

To configure language packs

1. Open the HPE IDOL Speech Server tasks configuration file (`speechserver-tasks.cfg`) in a text editor.
2. Find the `[Resources]` section or create one if it does not exist.

3. List each language that you want to configure in the form `N=Type:LanguagePack`, where:

   - `N` is the zero-based rank order for the language.
   - `Type` is the resource type, which is either `lang`, `langvt`, `fpdb`, or `sidbase` (see Supported Resources). You can omit the type for `lang` resources, because it is the default type.
   - `LanguagePack` is the code for the language pack. For a list of available language packs, see Available language packs.

   For example:

       [Resources]
       0=ENUK
       1=ENUS
       2=langvt:ENUS-pm

4. Create a configuration section for each language that you listed in the `[Resources]` section.

5. Set the `Pack` parameter to the name of the language pack. For example:

       [ENUK]
       Pack=ENUK-6.3

6. Set the `PackDir` parameter to the directory where the language model resides. For example:

       PackDir=ENUK

   If the parameter omits the directory path or specifies a relative path, HPE IDOL Speech Server automatically prefixes the value with the default language pack directory path when it searches for the pack.

7. Set the `SampleFrequency` parameter to the sample frequency of the audio that the language pack is processing. For example:

       SampleFrequency=16000

8. If you want to use an adapted acoustic model instead of the language pack's default acoustic model, set the value of the `TrainedAm` parameter to the .am file that you want to use. For example:

   `TrainedAm=myAcousticModel.am`

9. If you configure the language pack to use a custom language model, set the `CustomLM` parameter to the name and weight of the custom language model separated by a colon (:).

   You must also set `CustomDct` parameter to the name of the custom dictionary, without the `.dct.sz` file name extension. For example:

       CustomLM=news:0.6
       CustomDct=news

   In this example, HPE IDOL Speech Server uses the file `news.tlm` in the custom language model directory with a weight of `0.6` and the dictionary file `news.dct.sz` in the same directory.

10. If you want to change the DNN file to use (for example, to use the smaller, faster DNN provided in the language pack instead of the standard one), set the value of the `DnnFile` parameter to the DNN file that you want to use.

    NOTE:

    recommends (and for 7.0+ versions of language packs, it is compulsory) that you include the following lines in the configuration file for the `[frontend]` and `[normalizer]` modules, so that HPE IDOL Speech Server can access the header to determine the quantity and nature of the extracted acoustic feature vectors:

        DnnFile = $stt.lang.DnnFile
        DnnFileStd = $stt.lang.DnnFileStd

    For more information, see the HPE IDOL Speech Server Reference.

11. If the language pack is for use specifically with language identification tasks (for example, SYLS packs), set the `LangID` parameter to `True`.
12. Configure any other available parameters for your language model or language identification model.
13. Save and close the configuration file.
14. Restart HPE IDOL Speech Server for your changes to take effect (see Start and Stop HPE IDOL Speech Server).

© 2015-2017 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