Skip to content

Commit

Permalink
fix: Adding scale to magnification
Browse files Browse the repository at this point in the history
  • Loading branch information
jlacivita committed Mar 1, 2024
1 parent 8f04700 commit d4636b8
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion requirements/specifications/intents/command-and-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ volume to 50% *of what it currently is\...*"

**Note**: Both Google & Alexa support either 0-10 or 0% to 100%.

Firebolt uses a scale of 0-100 for this intent. It\'s up to each voice
Firebolt uses a size of 0-100 for this intent. It\'s up to each voice
integration if it wants to convert "5" to "50%" before generating
the intent, but convenience transformations like this are recommended.

Expand Down Expand Up @@ -613,6 +613,35 @@ Additionally, this intent may specify a toggle:
}
```

Finally, this intent may specify a magnification scale as a number:

```json
{
"type": "xrn:firebolt:intent:platform:accessibility",
"target": "client",
"metadata": {
"assistant": "XFINITY",
"lang": "eng-USA",
"micType": "NEAR_FIELD"
},
"intent": {
"action": "textMagnification",
"data": {
"scale": 2.5
},
"context": {
"source": "voice"
}
}
}
```

Setting the scale to `1` turns off magnification. Setting the scale to a value greater than 1 turns on magnification.

Even if a Firebolt platform does not support specifying the numeric scale, it **MUST** turn magnifacation on and off based on them.

The magnification intent **MUST** have only one property, `scale`, `toggle`, `value` and **MUST NOT** comebine them in a single intent.

### 3.6. Interaction Intents

Interaction Intents allow for voice (or other upstream intent service)
Expand Down

0 comments on commit d4636b8

Please sign in to comment.