> ## 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.

# aspeech • AI Agent SDK

> aspeech: Async version of speech().

# aspeech

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

> This is a method of the [**AudioAgent**](../classes/AudioAgent) class in the [**audio\_agent**](../modules/audio_agent) module.

Async version of speech().

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def aspeech(text: str, output: Optional[str], voice: Optional[str], speed: Optional[float], response_format: Optional[str], model: Optional[str]) -> Any
```

## Parameters

<ParamField query="text" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="output" type="Optional" required={false}>
  No description available.
</ParamField>

<ParamField query="voice" type="Optional" required={false}>
  No description available.
</ParamField>

<ParamField query="speed" type="Optional" required={false}>
  No description available.
</ParamField>

<ParamField query="response_format" type="Optional" required={false}>
  No description available.
</ParamField>

<ParamField query="model" type="Optional" required={false}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Any">
  The result of the operation.
</ResponseField>

## Uses

* `aspeech`
* `response.stream_to_file`
* `Path`

## Used By

* [`AudioAgent.aspeech`](../functions/AudioAgent-aspeech)
* [`AudioAgent.asay`](../functions/AudioAgent-asay)

## Source

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