on_audio
Method
This is a method of the RealtimeAgent class in the realtime_agent module.Register callback for audio data.
Signature
Parameters
Function to call with audio bytes
Register callback for audio data.
This is a method of the RealtimeAgent class in the realtime_agent module.Register callback for audio data.
def on_audio(callback: Callable[[bytes], None]) -> None