AudioObserver
autogen.agentchat.realtime.experimental.AudioObserver #
Bases: RealtimeObserver
Observer for user voice input
Observer for user voice input
Source code in autogen/agentchat/realtime/experimental/audio_observer.py
run async #
Run the observer with the agent.
When implementing, be sure to call self._ready_event.set() when the observer is ready to process events.
| PARAMETER | DESCRIPTION |
|---|---|
agent | The realtime agent attached to the observer. TYPE: |
Source code in autogen/agentchat/realtime/experimental/realtime_observer.py
wait_for_ready async #
on_close async #
on_event async #
Observe voice input events from the Realtime.
| PARAMETER | DESCRIPTION |
|---|---|
event | The event from the OpenAI Realtime API. |