Interface: TextToSpeechFeatureDependentInterface

TextToSpeechFeatureDependentInterface

Class factory interface for features that are dependent on the TextToSpeechFeature
being present on the host. Speech events will automatically be listened for once a
TextToSpeechFeature is added to the host and stopped once it is removed.

Properties:
Name Type Description
EVENT_DEPENDENCIES Object

Events that the feature should start/stop
listening for when a feature of type FeatureName is added/removed from the host.

Properties
Name Type Description
TextToSpeechFeature Object

Events that are
specific to the TextToSpeechFeature.

Properties
Name Type Attributes Default Description
play string <optional>
'_onPlay'

The name of the method that will be executed when TextToSpeechFeature play
events are emitted.

pause string <optional>
'_onPause'

The name of the method that will be executed when TextToSpeechFeature pause
events are emitted.

resume string <optional>
'_onResume'

The name of the method that will be executed when TextToSpeechFeature resume
events are emitted.

stop string <optional>
'_onStop'

The name of the method that will be executed when TextToSpeechFeature stop
events are emitted.

sentence string <optional>
'_onSentence'

The name of the method that will be executed when TextToSpeechFeature sentence
events are emitted.

word string <optional>
'_onWord'

The name of the method that will be executed when TextToSpeechFeature word
events are emitted.

viseme string <optional>
'_onViseme'

The name of the method that will be executed when TextToSpeechFeature viseme
events are emitted.

ssml string <optional>
'_onSsml'

The name of the method that will be executed when TextToSpeechFeature ssml
events are emitted.

Extends

Methods

(static) Mixin(BaseClass) → {Class}

Creates a class that implements TextToSpeechFeatureDependentInterface
and extends a specified base class.

Parameters:
Name Type Description
BaseClass Class

The class to extend.

Returns:

A class that extends BaseClass and implements TextToSpeechFeatureDependentInterface.

Type
Class

discard()

Inherited From: