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:13000/action=AddTask&Type=WavToText&File=C:/myData/Speech.wav&Out=SpeechTranscript.ctm&Lang=ENUS&CustomLm=myLangModel:0.4

This action uses port `13000` to instruct HPE IDOL Speech Server, which is located on the local machine, to perform the `WavToText` task on the `Speech.wav` file using both the U.S. English and `myLangModel` language packs, and to write the results to the `SpeechTranscript.ctm` file. The `myLangModel` language pack is weighted at `0.4` against the U.S. English pack.

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

© 2013-2016 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