You can optimize a database to permanently remove tracks labeled for deletion, and to optimize lookup functions.
This step is applicable only if you are using the landmark audio fingerprinting approach (when the AFPMode
parameter is set to the default value, standard
). It is not supported when running the template-based approach (AFPMode
set to robust
).
To optimize an AFP database
Send an AddTask
action to IDOL Speech Server, and set the following parameters:
Type
|
The task type. Set to AfpDatabaseOptimize . |
To optimize a database that is defined in the IDOL Speech Server tasks configuration file, you must set the AfpDb
parameter. If the database is not defined, set both the Pack
and PackDir
parameters instead.
AfpDb
|
The name of a database that is defined in the tasks configuration file. |
Pack
|
The name of a database that is not defined in the tasks configuration file. |
PackDir
|
The path to the directory that contains the database files. |
For example:
http://localhost:13000/action=AddTask&Type=AfpDatabaseOptimize&Pack=Adverts&PackDir=C:\resources
This action uses port 13000
to instruct IDOL Speech Server, which is located on the local machine, to optimize the Adverts
database that is located in C:\resources
.
This action returns a token. You can use the token to check the task status. See Check the Status of a Task.
|