> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Asend Audio • AI Agent SDK

> asend_audio: Send audio data asynchronously.

# asend\_audio

<div className="flex items-center gap-2">
  <Badge color="blue">Async</Badge>
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**RealtimeAgent**](../classes/RealtimeAgent) class in the [**realtime\_agent**](../modules/realtime_agent) module.

Send audio data asynchronously.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def asend_audio(audio_data: bytes) -> bool
```

## Parameters

<ParamField query="audio_data" type="bytes" required={true}>
  Raw audio bytes (PCM16 format)
</ParamField>

### Returns

<ResponseField name="Returns" type="bool">
  True if sent successfully
</ResponseField>

## Uses

* `decode`
* `base64.b64encode`

## Used By

* [`RealtimeAgent.send_audio`](../functions/RealtimeAgent-send_audio)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/realtime_agent.py#L327">
  `praisonaiagents/agent/realtime_agent.py` at line 327
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Multimodal" icon="volume-high" href="/docs/features/multimodal" />
</CardGroup>
