API reference
API reference
Select your platform
No SDKs available
No versions available

AudioBufferEvents Class

A collection of events related to audio being processed by the AudioBuffer

Fields

OnAudioStateChange : Action< VoiceAudioInputState >
Callbacks as audio state changes
Signature
Action<VoiceAudioInputState> Meta.WitAi.Events.AudioBufferEvents.OnAudioStateChange
OnByteDataReady : WitByteDataEvent
Fired when data is ready to be sent to various voice services
Signature
WitByteDataEvent Meta.WitAi.Events.AudioBufferEvents.OnByteDataReady
OnByteDataSent : WitByteDataEvent
Fired when byte data is sent to various voice services
Signature
WitByteDataEvent Meta.WitAi.Events.AudioBufferEvents.OnByteDataSent
OnMicLevelChanged : WitMicLevelChangedEvent
Fired when the volume level of an input source changes
Signature
WitMicLevelChangedEvent Meta.WitAi.Events.AudioBufferEvents.OnMicLevelChanged
OnSampleReady : OnSampleReadyEvent
Fired when a sample is ready to be read
Signature
OnSampleReadyEvent Meta.WitAi.Events.AudioBufferEvents.OnSampleReady
OnSampleReceived : WitSampleEvent
Fired when a sample is received from an audio input source
Signature
WitSampleEvent Meta.WitAi.Events.AudioBufferEvents.OnSampleReceived

Methods

OnSampleReadyEvent ( marker , levelMax )
Fired when a sample is ready to be read
Signature
delegate void Meta.WitAi.Events.AudioBufferEvents.OnSampleReadyEvent(RingBuffer< byte >.Marker marker, float levelMax)
Parameters
marker: RingBuffer< byte >.Marker
levelMax: float
Returns
delegate void