public static enum TTSEvent.Type extends Enum<TTSEvent.Type>
| Enum Constant and Description |
|---|
AUDIO_AVAILABLE
A synthesis request has completed, and an audio URL has been received
from the external service.
|
ERROR
An error has occurred during synthesis or output.
|
PLAYBACK_COMPLETE
The Spokestack-managed media player has finished playing all queued
TTS synthesis requests.
|
PLAYBACK_STARTED
The Spokestack-managed media player has started playing synthesized
TTS audio.
|
PLAYBACK_STOPPED
The Spokestack-managed media player has stopped playing audio
(possibly because the system gave audio focus to another component),
but may still have TTS data left to play.
|
| Modifier and Type | Method and Description |
|---|---|
static TTSEvent.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TTSEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TTSEvent.Type AUDIO_AVAILABLE
public static final TTSEvent.Type PLAYBACK_COMPLETE
public static final TTSEvent.Type PLAYBACK_STARTED
public static final TTSEvent.Type PLAYBACK_STOPPED
public static final TTSEvent.Type ERROR
public static TTSEvent.Type[] values()
for (TTSEvent.Type c : TTSEvent.Type.values()) System.out.println(c);
public static TTSEvent.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021. All rights reserved.