FileDocCategorySizeDatePackage
IVoiceInteractionManagerService.javaAPI DocAndroid 5.1 API20324Sat Mar 14 05:48:08 GMT 2015com.android.internal.app

IVoiceInteractionManagerService

public interface IVoiceInteractionManagerService implements android.os.IInterface

Fields Summary
Constructors Summary
Methods Summary
public intdeleteKeyphraseSoundModel(int keyphraseId, java.lang.String bcp47Locale)
Deletes the given keyphrase sound model for the current user.

param
keyphraseId The unique identifier for the keyphrase.
param
bcp47Locale The BCP47 language tag for the keyphrase's locale.

public booleandeliverNewSession(android.os.IBinder token, android.service.voice.IVoiceInteractionSession session, com.android.internal.app.IVoiceInteractor interactor)

public voidfinish(android.os.IBinder token)

public android.hardware.soundtrigger.SoundTrigger.ModulePropertiesgetDspModuleProperties(android.service.voice.IVoiceInteractionService service)
Gets the properties of the DSP hardware on this device, null if not present.

public android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModelgetKeyphraseSoundModel(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.

param
keyphraseId The unique identifier for the keyphrase.
param
bcp47Locale The BCP47 language tag for the keyphrase's locale.

public booleanisEnrolledForKeyphrase(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.

param
service The current VoiceInteractionService.
param
keyphraseId The unique identifier for the keyphrase.
param
bcp47Locale The BCP47 language tag for the keyphrase's locale.

public intstartRecognition(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 voidstartSession(android.service.voice.IVoiceInteractionService service, android.os.Bundle sessionArgs)

public intstartVoiceActivity(android.os.IBinder token, android.content.Intent intent, java.lang.String resolvedType)

public intstopRecognition(android.service.voice.IVoiceInteractionService service, int keyphraseId, android.hardware.soundtrigger.IRecognitionStatusCallback callback)
Stops a recognition for the given keyphrase.

public intupdateKeyphraseSoundModel(android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel model)
Add/Update the given keyphrase sound model.