PlayerEvents
Values
Triggered when Player created.
Triggers by the createURLPlayer and createTTSPlayer methods when
- the audio file download to the Voximplant cache is finished;
- the audio file is found in the cache (i.e., it is in the cache before).
Triggered when playback is started. Note that if the createURLPlayer method is called with the onPause parameter set to true, the event is not triggered; it is triggered after the Player.resume method call.
Triggers as a result of the Player.stop method call.
Triggered when playback has finished successfully or with an error.
Triggered when playback has finished with an error.
Triggered when Player.addMarker is reached.
Triggered when an audio file is playing faster than it is being loaded.
Triggered when an audio chunk playback is finished. Note that this event is triggered only for RealtimeTTSPlayer instances.
For VoxTTS.RealtimeTTSPlayer, the optional final field indicates whether the completed flush ends the current phrase or is an intermediate auto-flush.