When you manually load a language pack, it remains in memory until you unload it, by using the UnloadLanguage
action. You can specify language packs by name or ID.
IDOL Speech Server does not always unload the language immediately when you send an UnloadLanguage
action. By default, the resource is marked to unload and is automatically unloaded at some point determined by the server.
To ensure that IDOL Speech Server unloads the language immediately, you can set the Force
parameter to True
.
To unload a language pack by ID
Send an UnloadLanguage
action with the ID parameter set to the ID of the language that you want to unload.
For example:
http://localhost:15000/action=UnloadLanguage&ID=22b6832f37d05ec
This action unloads the language pack that has the ID 22b6832f37d05ec
.
You can find the resource ID in the response to the GetStatus
action.
To unload a language pack by name
Send an UnloadLanguage
action with the Name
parameter set to the name of the language that you want to unload.
For example:
http://localhost:15000/action=UnloadLanguage&Name=ENUS
This action unloads the ENUS
language pack.
If you unload the language by Name
, you must also specify any additional parameters that you used when you loaded the language (either when you sent the LoadLanguage
action, or when you used an AddTask
action that loaded a language).
For example, if you specify CustomLm
and DctName
in the LoadLanguage
action, you might send the following UnloadLanguage
action:
http://localhost:15000/action=UnloadLanguage&Name=ENUS&CustomLM=hpe1:0.3:hpe2:0.4&DctFile=hpe
|