Skip to content

VoicingText

Overview

Text that mixes ReadingBlock, supporting features of Voicing and adding listeners that speak the text string upon user input.

@author Jesse Greenberg (PhET Interactive Simulations)

Class VoicingText

import { VoicingText } from 'scenerystack/scenery';

Constructor

new VoicingText( text : string | TReadOnlyProperty<string>, providedOptions? : VoicingTextOptions )

Instance Methods

Type VoicingTextOptions

import type { VoicingTextOptions } from 'scenerystack/scenery';

ReadingBlockOptions & TextOptions

Source Code

See the source for VoicingText.ts in the scenery repository.