On Audio • AI Agent SDK

on_audio: Register callback for audio data.

on_audio

Method

</div>

This is a method of the RealtimeAgent class in the realtime_agent module.

Register callback for audio data.

Signature

python
def on_audio(callback: Callable[[bytes], None]) -> None

Parameters

ParamField Callable

Function to call with audio bytes

Source

View on GitHub

praisonaiagents/agent/realtime_agent.py at line 426


Related Documentation