Class StreamingAudioEventReceiver
Event handler for real-time assistant events. Provides UnityEvents that are triggered by the RealtimeEventReceiver.
Inheritance
object
StreamingAudioEventReceiver
Implements
Namespace: Glitch9.AIDevKit.Components
Assembly: .dll
Syntax
public class StreamingAudioEventReceiver : MonoBehaviour, IStreamingAudioEventReceiver
Methods
OnReceiveAudio(float[])
Invoked when a chunk of audio data (float array) is received during streaming.
Declaration
public void OnReceiveAudio(float[] audioData)
Parameters
Type | Name | Description |
---|---|---|
float[] | audioData |
OnReceiveAudioDone()
Invoked when the full audio stream has been received and finalized.
Declaration
public void OnReceiveAudioDone()