The `{Digits}` tag recognizes a set of single-digit numbers spoken individually. It is useful when a prompt speaks telephone numbers or PIN's.

**How to use {Digits} tag ?**

- Open Expect To Hear field
- Select {Digits} Tag from the tags drop down and click +Tag button:

- In the bottom switch to Raw view to edit the default length.

**Syntax :**

{Digits Length=x}

{Digits Length=x-y}

Parameter | Default | Range | Description |
---|---|---|---|

Length |
x=1 y=20 |
1 to 20 for x and y where x<=y |
x is the minimum number of digits to recognize y is the maximum number of digits to recognize (if only x is specified, the maximum will also be set to x) |

The defaults allow for the widest allowable range of inputs, but if the expected input is known to be within a certain number of digits, explicitly specifying these parameters will improve recognition accuracy.

**How to Fail a High Confidence Test Case with Incorrect Spoken Digit?**

In a certain test scenario where you want your test case to fail the step if the prompt in it is not speaking the exact digit you are expecting then you can do so with variable parameter.

Please find the below tag which you can use to detect exact digit expected in the prompt.

{Digits Length=x $value == "z"}

-where z is the digit you expect in the prompt.

If the prompt does not match the value specified in the tag it will fail with below error even if other texts gives more confidence score.

## Comments

0 comments

Please sign in to leave a comment.