Skip to main content

on_audio

Method
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]) -> None

Parameters

callback
Callable
required
Function to call with audio bytes

Source

View on GitHub

praisonaiagents/agent/realtime_agent.py at line 357