public static interface SoundTrigger.StatusListener
SoundTriggerModule
to received recognition and error notifications.Modifier and Type | Method and Description |
---|---|
void |
onRecognition(SoundTrigger.RecognitionEvent event)
Called when recognition succeeds of fails
|
void |
onServiceDied()
Called when the sound trigger native service dies
|
void |
onServiceStateChange(int state)
Called when the sound trigger native service state changes.
|
void |
onSoundModelUpdate(SoundTrigger.SoundModelEvent event)
Called when a sound model has been updated
|
void onRecognition(SoundTrigger.RecognitionEvent event)
void onSoundModelUpdate(SoundTrigger.SoundModelEvent event)
void onServiceStateChange(int state)
state
- Native service state. One of SoundTrigger.SERVICE_STATE_ENABLED
,
SoundTrigger.SERVICE_STATE_DISABLED
void onServiceDied()