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

# Realtime Config • AI Agent SDK

> RealtimeConfig: Configuration for RealtimeAgent.

# RealtimeConfig

> Defined in the [**Realtime Agent**](../modules/realtime_agent) module.

<Badge color="blue">AI Agent</Badge>

Configuration for RealtimeAgent.

Attributes:
voice: Voice to use for audio output (alloy, echo, fable, onyx, nova, shimmer)
modalities: List of modalities to use (text, audio)
turn\_detection: Turn detection mode (server\_vad, none)
input\_audio\_format: Input audio format (pcm16, g711\_ulaw, g711\_alaw)
output\_audio\_format: Output audio format (pcm16, g711\_ulaw, g711\_alaw)
temperature: Sampling temperature (0.0 to 2.0)
max\_response\_output\_tokens: Maximum tokens for response
instructions: System instructions for the session

## Properties

<ResponseField name="voice" type="str">
  No description available.
</ResponseField>

<ResponseField name="modalities" type="List">
  No description available.
</ResponseField>

<ResponseField name="turn_detection" type="str">
  No description available.
</ResponseField>

<ResponseField name="input_audio_format" type="str">
  No description available.
</ResponseField>

<ResponseField name="output_audio_format" type="str">
  No description available.
</ResponseField>

<ResponseField name="temperature" type="float">
  No description available.
</ResponseField>

<ResponseField name="max_response_output_tokens" type="Optional">
  No description available.
</ResponseField>

<ResponseField name="instructions" type="Optional">
  No description available.
</ResponseField>

<Accordion title="Internal & Generic Methods">
  * **to\_dict**: Convert config to dictionary.
</Accordion>

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Configuration Overview" icon="gear" href="/docs/configuration/index" />

  <Card title="Agent Config" icon="robot" href="/docs/configuration/agent-config" />
</CardGroup>
