Methods Summary |
---|
public int | deleteKeyphraseSoundModel(int keyphraseId, java.lang.String bcp47Locale)Deletes the given keyphrase sound model for the current user.
|
public boolean | deliverNewSession(android.os.IBinder token, android.service.voice.IVoiceInteractionSession session, com.android.internal.app.IVoiceInteractor interactor)
|
public void | finish(android.os.IBinder token)
|
public android.hardware.soundtrigger.SoundTrigger.ModuleProperties | getDspModuleProperties(android.service.voice.IVoiceInteractionService service)Gets the properties of the DSP hardware on this device, null if not present.
|
public android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel | getKeyphraseSoundModel(int keyphraseId, java.lang.String bcp47Locale)Gets the registered Sound model for keyphrase detection for the current user.
May be null if no matching sound model exists.
|
public boolean | isEnrolledForKeyphrase(android.service.voice.IVoiceInteractionService service, int keyphraseId, java.lang.String bcp47Locale)Indicates if there's a keyphrase sound model available for the given keyphrase ID.
This performs the check for the current user.
|
public int | startRecognition(android.service.voice.IVoiceInteractionService service, int keyphraseId, java.lang.String bcp47Locale, android.hardware.soundtrigger.IRecognitionStatusCallback callback, android.hardware.soundtrigger.SoundTrigger.RecognitionConfig recognitionConfig)Starts a recognition for the given keyphrase.
|
public void | startSession(android.service.voice.IVoiceInteractionService service, android.os.Bundle sessionArgs)
|
public int | startVoiceActivity(android.os.IBinder token, android.content.Intent intent, java.lang.String resolvedType)
|
public int | stopRecognition(android.service.voice.IVoiceInteractionService service, int keyphraseId, android.hardware.soundtrigger.IRecognitionStatusCallback callback)Stops a recognition for the given keyphrase.
|
public int | updateKeyphraseSoundModel(android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel model)Add/Update the given keyphrase sound model.
|