public interface SlangUtteranceAction extends SlangAction
SlangIntent
SlangAction.Status
Modifier and Type | Method and Description |
---|---|
void |
onUtteranceDetected(String utterance,
SlangSession session)
This method is called by the Slang platform whenever it detects an utterance spoken by
the user, before attempting intent resolution.
|
void |
onUtteranceUnresolved(String utterance,
SlangSession session)
This method is called by the Slang platform whenever it is unable to resolve a user
utterance into a
SlangIntent |
void onUtteranceDetected(String utterance, SlangSession session)
Threading Details: This method is always called on a background, non-UI thread
utterance
- The utterance spoken by the usersession
- The current sessionvoid onUtteranceUnresolved(String utterance, SlangSession session)
SlangIntent
Threading Details: This method is always called on a background, non-UI thread
utterance
- The utterance spoken by the usersession
- The current session