Open topic with navigation

# Configure Language Packs

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

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

   Micro Focus 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 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 IDOL Speech Server Reference.

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

© 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