Open topic with navigation

# AfptMatchWav

The `AfptMatchWav` task searches an audio file for any sections that match audio indexed in an AFP database.

The `AfptMatchWav` task uses templates as opposed to landmarks, which improves robustness to audio mismatches at the cost of scaleability.

## Parameters

Parameter | Description | Required
--- | --- | ---
Type | The task name. Set to `AfptMatchWav`. | Yes
AfpDb | The audio fingerprint database (if it is defined in the configuration file). | *
Delay | The delay in updating results. |
DelDelay | The amount of time (in terms of audio processed) between the last valid template hit being detected in a match, and that match being deleted. |
File | The audio file to search. | Yes
MinDuration | The minimum duration of a section that must match before that match is considered. |
MinHits | The minimum number of hits that a section of audio must generate before HPE IDOL Speech Server returns it as a match for a clip in an audio fingerprinting database. |
MinRate | The minimum hit rate threshold for audio fingerprint identification. |
MinScoreAvg | A threshold applied on the average template hit score, below which a candidate result is rejected. |
MinScoreRate | A threshold applied to the average template hit score, divided by the length of the section matched. |
NBest | The maximum number of matching AFP clips to include in the results for a section. |
Out | The file to write the search results to. | Yes
Pack | The audio fingerprint database (if it is not defined in the configuration file). | *
PackDir | The path to the directory containing the database. | *
Rnd | A window size within which a random offset shift is calculated. |
Sfreq | The sample frequency of the audio file to process. |
TimeQ | The degree of quantization to perform. |

Note: The database type for template-based audio fingerprinting is `fptdb` (as opposed to `fpdb` for landmark-based audio fingerprinting).

*If the database is defined in the HPE IDOL Speech Server configuration file, you must set the AfpDb parameter. If the database is not defined, set both the Pack and PackDir parameters instead.

## Example

    http://localhost:13000/action=AddTask&Type=AfptMatchWav&File=C:\Data\July18.wav&Pack=Adverts&PackDir=C:\resources&Out=July18Results.ctm

This action uses port `13000` to instruct HPE IDOL Speech Server, which is located on the local machine, to use template-based matching to search the `July18.wav` file for sections that match audio indexed in the `Adverts` database and to write the search results to the `July18Results.ctm` file.

© 2014 - 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