Open topic with navigation

# Use a Custom Language Model

Using a custom language model can substantially improve speech-to-text rates, if the model represents the speech data very accurately.

For instructions on how to build custom language models, see Create Custom Language Models. After you build a custom language model, you must add it to the language pack section in the tasks configuration file (see Configure Language Packs).

To use a custom language model for speech-to-text

- Include the `CustomLm` parameter when you send the `AddTask` action. Set it to the name of the custom language model and the interpolation weight, separated by a colon (:).

For example:

    http://localhost:15000/action=AddTask&Type=SpeechToText&File=C:/myData/Speech.wav&Out=SpeechTranscript.ctm&Lang=ENUS&CustomLm=myLangModel:0.4

This action performs the `SpeechToText` task on the `Speech.wav` file using both the U.S. English and `myLangModel` language packs, and writes the results to the `SpeechTranscript.ctm` file. The `myLangModel` language pack is weighted at `0.4` against the U.S. English pack.

IDOL Speech Server suggests the interpolation weight to use at the time that you build the custom language model. All custom language models are placed in a specific folder, so you need to specify only the base name of the custom language model.

© 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