Android APIs
public static class

AlwaysOnHotwordDetector.EventPayload

extends Object
java.lang.Object
   ↳ android.service.voice.AlwaysOnHotwordDetector.EventPayload

Class Overview

Additional payload for onDetected(AlwaysOnHotwordDetector.EventPayload).

Summary

Public Methods
AudioFormat getCaptureAudioFormat()
Gets the format of the audio obtained using getTriggerAudio().
byte[] getTriggerAudio()
Gets the raw audio that triggered the keyphrase.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public AudioFormat getCaptureAudioFormat ()

Added in API level 21

Gets the format of the audio obtained using getTriggerAudio(). May be null if there's no audio present.

public byte[] getTriggerAudio ()

Added in API level 21

Gets the raw audio that triggered the keyphrase. This may be null if the trigger audio isn't available. If non-null, the format of the audio can be obtained by calling getCaptureAudioFormat().