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
def on_audio(callback: Callable[[bytes], None]) -> NoneParameters
ParamField
CallableFunction to call with audio bytes
Source
View on GitHubpraisonaiagents/agent/realtime_agent.py at line 426