HPE IDOL Speech Server generates different types of output files (for example, diagnostics files, language model files, acoustic model files, and so on). You can delete these output files in several ways.
You can use the ClearTmpResults
action to request the deletion of all output files generated by HPE IDOL Speech Server in the temporary directory.
To clear all temporary files
Send the following action:
http://localhost:13000/action=ClearTmpResults
The action requests the deletion of all output files generated by HPE IDOL Speech Server that are located in the temporary directory.Information on the number of files that were deleted and the number of files that were not deleted (because they are currently being used by running processes or shared by other tasks) is written to the server log once the request has been processed.
You can also use the DeleteResults
action to request the deletion of any output files, not just temporary files. You can optionally specify the following parameters:
TempOnly
. Set this parameter to True
to delete only files in the temporary directory.
Token
. Set this parameter to a task token so that you delete only files associated with a specific task.
Task
. Set this parameter to delete only files associated with a specific task type (for example, WavToText
).Label
. Set this parameter to the output label associated with the file or files to be deleted (for example, Diag
). For example:
http://localhost:13000/action=DeleteResults&TempOnly=True&Token=MTAuMS4zLjgyOjEzMDAwOkFERFRBU0s6LTEyOTk0OTU3Ng==
This example requests the deletion of all files in the temporary directory that are associated with the specified task token.
http://localhost:13000/action=DeleteResults&Task=WavToText
This example requests the deletion of all output files produced by WavToText
tasks.
Information on the number of files that were deleted and the number of files that were not deleted (because they are currently being used by running processes or shared by other tasks) is written to the server log once the request has been processed.
When you request to view a temporary results file, you can request to delete it at the same time. To do this, include the DeleteResult
action parameter in the action, and set it to True
.
http://localhost:13000/action=GetResults&Token=...&DeleteResult=True
This action deletes the file that the GetResults
action is accessing. For example, if the GetResults
action is accessing a file that contains diagnostics information, the action deletes that file if you set DeleteResult
to True
.
The action returns ResultDeleted=True
if the file has been deleted, and ResultDeleted=False
if the file is still being used by the process.
You can use the GetOutFileStatus
action to view the status of output file tracking in the server, and view information on whether the file manager is idle or processing a request, the number of queued requests, and the number of output files being tracked. For more information, see the HPE IDOL Speech Server Reference.
In all the three methods mentioned previously, certain restrictions might prevent you from deleting a file:
DeleteAllowed
and DeleteReqsToken
configuration parameters to prohibit file deletion in the configuration file, see the HPE IDOL Speech Server Reference.
|