Speech Rate and Preferences Editor Connector API

Speech Rate and Preferences Editor Connector Overview

The speech rate panel component and the self voicing component controls the enabling and disabling of the same preference: the 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.


Adding a Speech Rate and Preferences Editor Connector Component

Typically passed into the speech rate component by supplying it as a gradeNames option in an Auxiliary Schema.

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

Grades

The base grades used by the Speech Rate and Preferences Editor Connector:

Model

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/panels.js"></script>