Members
publicAsset
Gets the public api Speech object for this internal api Speech object.
setVolume
- Deprecated:
-
- Updates the playback volume for the audio element. This does not override the value for the speech object. It will be reset to the speech object's value when the audio is done playing.
Methods
(static) forPublicAsset(publicAsset) → {Speech}
Gets the internal api Asset object for a specified public api Speech object.
Parameters:
Name | Type | Description |
---|---|---|
publicAsset |
Asset |
The public api Speech object. |
connectTo(nodes)
Connect output of speech to audionode
Parameters:
Name | Type | Description |
---|---|---|
nodes |
Array.<AudioNode> | AudioNode |
isPaused() → {boolean}
Gets the pause status of the speech
isPlaying() → {boolean}
Gets the play status of the speech
pause()
Pause the speech if it's playing and record the pause position
play() → {Promise}
Plays the audio for the speech.
It will try to get audioBuffer and speechMarks from SpeechManager#getAudioAndSpeechMark
process()
Processes speech marks if any to emit the proper system bus events for gesture control.
Called on each render frame.
resume()
Resume the speech if paused
stop()
External call to the stop