Sdílet prostřednictvím


AlwaysOnHotwordDetector.EventPayload.GetTriggerAudio Method

Definition

Gets the raw audio that triggered the keyphrase.

[Android.Runtime.Register("getTriggerAudio", "()[B", "GetGetTriggerAudioHandler")]
public virtual byte[]? GetTriggerAudio ();
[<Android.Runtime.Register("getTriggerAudio", "()[B", "GetGetTriggerAudioHandler")>]
abstract member GetTriggerAudio : unit -> byte[]
override this.GetTriggerAudio : unit -> byte[]

Returns

Byte[]
Attributes

Remarks

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().

This member is deprecated. Use #getData() instead.

Java documentation for android.service.voice.AlwaysOnHotwordDetector.EventPayload.getTriggerAudio().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to