public interface AIListener
AIService| Modifier and Type | Method and Description |
|---|---|
void |
onAudioLevel(float level)
Event fires every time sound level changed.
|
void |
onError(ai.api.model.AIError error)
Event fires if something going wrong while recognition or access to the AI server
|
void |
onListeningCanceled()
Event fires when recognition engine cancel listening
|
void |
onListeningFinished()
Event fires when recognition engine finish listening
|
void |
onListeningStarted()
Event fires when recognition engine start listening
|
void |
onResult(ai.api.model.AIResponse result)
Event fires when entire process finished successfully, and returns result object
|
void onResult(ai.api.model.AIResponse result)
result - the result object, contains server answervoid onError(ai.api.model.AIError error)
error - the error description objectvoid onAudioLevel(float level)
level - the new RMS dB valuevoid onListeningStarted()
void onListeningCanceled()
void onListeningFinished()