public interface OnSpeechEventListener
This is the primary event interface in Spokestack. The speech pipeline routes events/errors asynchronously through it as they occur.
Modifier and Type | Method and Description |
---|---|
void |
onEvent(SpeechContext.Event event,
SpeechContext context)
receives a speech event.
|
void onEvent(@NonNull SpeechContext.Event event, @NonNull SpeechContext context) throws Exception
event
- the name of the event that was raisedcontext
- the current speech contextException
- on errorCopyright © 2021. All rights reserved.