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

# OpenAI TTS

[OpenAI](https://openai.com) provides streaming text-to-speech synthesis.

<Info>
  Vision Agents requires a [Stream](https://getstream.io/try-for-free/) account
  for real-time transport. Most providers offer free tiers to get started.
</Info>

<Tip>
  OpenAI also provides [Realtime speech-to-speech](/integrations/realtime/openai) and a traditional [LLM](/integrations/llm/openai).
</Tip>

## Installation

```sh theme={null}
uv add "vision-agents[openai]"
```

## Quick Start

```python theme={null}
from vision_agents.core import Agent, User
from vision_agents.plugins import openai, deepgram, gemini, getstream

agent = Agent(
    edge=getstream.Edge(),
    agent_user=User(name="Assistant", id="agent"),
    instructions="You are a helpful assistant.",
    llm=gemini.LLM("gemini-3-flash-preview"),
    stt=deepgram.STT(),
    tts=openai.TTS(),
)
```

## Parameters

```python theme={null}
tts = openai.TTS(model="gpt-4o-mini-tts", voice="alloy")
```

| Name    | Type  | Default             | Description                                                 |
| ------- | ----- | ------------------- | ----------------------------------------------------------- |
| `model` | `str` | `"gpt-4o-mini-tts"` | TTS model                                                   |
| `voice` | `str` | `"alloy"`           | Voice ("alloy", "echo", "fable", "onyx", "nova", "shimmer") |

## Next Steps

<CardGroup cols={2}>
  <Card title="OpenAI LLM" icon="brain" href="/integrations/llm/openai">
    Responses API and ChatCompletions
  </Card>

  <Card title="OpenAI Realtime" icon="bolt" href="/integrations/realtime/openai">
    Speech-to-speech over WebRTC
  </Card>
</CardGroup>
