Speech Rate and Preferences Editor Connector

Overview

Component Name: gpii.firstDiscovery.panel.speechRate.prefsEditorConnection

File: panels.js

The speech rate panel component and the self voicing component control the enabling and disabling of the same preference: text-to-speech. In the First Discovery Tool, the state of the text-to-speech preference is stored in prefsEditor.model.gpii_firstDiscovery_speak. This connector component distributes this model value into the speech rate panel component.

Using the Speech Rate and Preferences Editor Connector component

Typically, the Speech Rate and Preferences Editor Connector component is added as an extra grade to the Speech Rate Panel specification in the Auxiliary Schema:

"speechRate": {
    "type": "gpii.firstDiscovery.speechRate",
    "panel": {
        "gradeNames": ["gpii.firstDiscovery.panel.speechRate.prefsEditorConnection"],
        ...
    }
}

Grades

This component uses the following base grades:

Model

This component supports the following model properties:

Path Description Values Default
enabled Indicates whether the text-to-speech is enabled. Boolean undefined

Dependencies

<script type="text/javascript" src="src/lib/infusion/infusion-custom.js"></script>
<script type="text/javascript" src="src/js/msgLookup.js"></script>
<script type="text/javascript" src="src/js/tooltip.js"></script>
<script type="text/javascript" src="src/js/panels.js"></script>