Audio to text validation command
Accepts an audio file that may be recorded from a device and creates a text file that contains the textual translation (transcript) of the audio file. In addition, the command performs a text checkpoint function, checking for the existence of a text string in the translated text file. This function utilizes matching parameters similar to the text checkpoint function.
Parameters
Name | Type | Possible values | Description |
---|---|---|---|
Expected text (needle)* |
String |
Text that should be validated against the generated text file. |
|
Device audio URL |
String |
The URL to the audio file of the device (as, for example, returned by the Start audio recording command). |
|
Audio file key |
Media |
The full repository path, including directory and file name, where to locate the audio file. You can select a file that already resides in the Perfecto repository or select a file from your computer that is then uploaded to the Perfecto repository. To learn more about the Perfecto repository, see Manage the repository. Click the Select media link, browse to the file, and then click SELECT. Example: |
|
Target |
String |
As is | Any | All |
The target search in case the needle includes more than one word, where:
When selecting Any or All, the words in the Expected text parameter can be divided into phrases with quotation marks. Example: "new contact" "add contact" When selecting All, the words and phrases can be located in several places on the screen. This enables multiple text verifications. |
Match mode |
String |
Contain | Equal | Start with | End with | First | Last | Index |
The needle comparison method, where:
|
Index |
Number |
|
If the needle has multiple occurrences on the screen, specifies the index of the required occurrence |
Whole-words search |
String |
False | True |
When set to true, searches only for whole words in the haystack. When set to false, includes also partial words For example, to define whether 'person' in 'personal' is a good match or not, set this parameter to:
|
Exact phrase |
String |
Enter a phrase to to find the exact needle phrase with no errors. This parameter is not relevant when using native screen source. |
|
Threshold |
Number |
The acceptable match level percentage, between 20 and 100. Values that are too low can lead to a false positive result. Values that are too high can lead to a false negative result. |
|
Confidence |
Number |
Indicates the minimal confidence level that the audio to text tool measures for the conversion. If the conversion does not reach this confidence level, the parameter will return a failed status. |
|
Result variable |
String |
The variable to receive the retrieved values. |
|
Language |
String |
US English | UK English | Spanish | Japanese | French | Chinese | Portuguese | Arabic |
The supported audio file languages. |
Rate |
String |
Broad | Narrow |
The sampling rate of the audio recording |
Profile |
String |
Performance | Accuracy |
The profile of the NLP network |
Phrase |
String |
A list of phrases for the speech-to-text library to use to avoid confusion. For example, provide the words ‘two’ and ‘four’ to avoid confusion with ‘to’ and ‘for’. In the Value column, click Edit to add a phrase. A phrase can be based on as a constant, a variable, or a DataTable. |
|
Dictionary |
String |
A dictionary for the speech-to-text library to use. In the Value column, click Edit to add a dictionary entry. A dictionary entry can be based on as a constant, a variable, or a DataTable. |
|
Comment |
String |
Adds a comment to the script |
|
On-fail Result* |
Condition |
Ignore | Break | Continue | Abort | Catch |
The behavior when the command fails. |
* Mandatory parameter