IRecognitionListener.OnBufferReceived(Byte[]) Method

Definition

More sound has been received.

[Android.Runtime.Register("onBufferReceived", "([B)V", "GetOnBufferReceived_arrayBHandler:Android.Speech.IRecognitionListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnBufferReceived (byte[]? buffer);
[<Android.Runtime.Register("onBufferReceived", "([B)V", "GetOnBufferReceived_arrayBHandler:Android.Speech.IRecognitionListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnBufferReceived : 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

Remarks

More sound has been received. The purpose of this function is to allow giving feedback to the user regarding the captured audio. There is no guarantee that this method will be called.

Java documentation for android.speech.RecognitionListener.onBufferReceived(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