Skip to main content

asend_audio

AsyncMethod
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) -> bool

Parameters

audio_data
bytes
required
Raw audio bytes (PCM16 format)

Returns

Returns
bool
True if sent successfully

Uses

  • decode
  • base64.b64encode

Used By

Source

View on GitHub

praisonaiagents/agent/realtime_agent.py at line 327