public static class AlwaysOnHotwordDetector.EventPayload extends Object
Modifier and Type | Method and Description |
---|---|
AudioFormat |
getCaptureAudioFormat()
Gets the format of the audio obtained using
getTriggerAudio() . |
Integer |
getCaptureSession()
Gets the session ID to start a capture from the DSP.
|
byte[] |
getTriggerAudio()
Gets the raw audio that triggered the keyphrase.
|
public AudioFormat getCaptureAudioFormat()
getTriggerAudio()
.
May be null if there's no audio present.public byte[] getTriggerAudio()
getCaptureAudioFormat()
.public Integer getCaptureSession()
getCaptureAudioFormat()
.
TODO: Candidate for Public API when the API to start capture with a session ID
is made public.
TODO: Add this to getCaptureAudioFormat()
:
"Gets the format of the audio obtained using getTriggerAudio()
or getCaptureSession()
. May be null if no audio can be obtained
for either the trigger or a streaming session."
TODO: Should this return a known invalid value instead?