RecognitionService.Callback.BufferReceived(Byte[]) Method

Definition

The service should call this method when sound has been received.

[Android.Runtime.Register("bufferReceived", "([B)V", "GetBufferReceived_arrayBHandler")]
public virtual void BufferReceived (byte[]? buffer);
[<Android.Runtime.Register("bufferReceived", "([B)V", "GetBufferReceived_arrayBHandler")>]
abstract member BufferReceived : byte[] -> unit
override this.BufferReceived : byte[] -> unit

Parameters

buffer
Byte[]

a buffer containing a sequence of big-endian 16-bit integers representing a single channel audio stream. The sample rate is implementation dependent.

Attributes

Exceptions

Remarks

The service should call this method when sound has been received. The purpose of this function is to allow giving feedback to the user regarding the captured audio.

Java documentation for android.speech.RecognitionService.Callback.bufferReceived(byte[]).

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