Asend Audio • AI Agent SDK
asend_audio: Send audio data asynchronously.
asend_audio
Async
Method
</div>
This is a method of the RealtimeAgent class in the realtime_agent module.
Send audio data asynchronously.
Signature
async def asend_audio(audio_data: bytes) -> boolParameters
ParamField
bytesRaw audio bytes (PCM16 format)
Returns
ResponseField
boolTrue if sent successfully
Uses
decodebase64.b64encode
Used By
Source
View on GitHubpraisonaiagents/agent/realtime_agent.py at line 396