Media Server 12.11

# ImportCustomSpeechLanguageModel

Imports a custom language model that was exported using the action ExportCustomSpeechLanguageModel.

Type: asynchronous

Parameter | Description | Required
--- | --- | ---
`identifier` | The identifier to give to the imported custom language model. | Yes
`modeldata` | The custom language model data. You must upload files as multipart/form-data. For more information about sending data to Media Server, refer to the Media Server Administration Guide. | Set this or `modelpath`
`modelpath` | The path to the custom language model to import. The path must be absolute, or relative to the Media Server executable file. | Set this or `modeldata`

## Example

The following example imports a custom language model by specifying a file path:

    /action=ImportCustomSpeechLanguageModel&identifier=MedicalTerms
                                           &modelpath=MedicalTerms.dat

The following example sends the data:

    curl http://localhost:14000 -F action=ImportCustomSpeechLanguageModel
                                -F identifier=MedicalTerms
                                -F modeldata=@MedicalTerms.dat

## Response

This action is asynchronous, so Media Server always returns success accompanied by a token. You can use this token with the QueueInfo action to retrieve the status of your request.

© Copyright 2022 Micro Focus or one of its affiliates
Version 12.11 | Last updated February 2022

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL Media Server 12.11

Topic Title: ImportCustomSpeechLanguageModel