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

python
async def asend_audio(audio_data: bytes) -> bool

Parameters

ParamField bytes

Raw audio bytes (PCM16 format)

Returns

ResponseField bool

True if sent successfully

Uses

  • decode
  • base64.b64encode

Used By

Source

View on GitHub

praisonaiagents/agent/realtime_agent.py at line 396


Related Documentation