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

> [!NOTE]
>
> Vision Agents uses [Stream Video](https://getstream.io/video/) for real-time WebRTC transport by default. [External WebRTC transports](https://visionagents.ai/integrations/introduction-to-integrations.md#edge-transport) are supported as well. Most AI providers offer free tiers to get started.

> [!TIP]
>
> OpenAI also provides [Realtime speech-to-speech](https://visionagents.ai/integrations/realtime/openai.md) and a traditional [LLM](https://visionagents.ai/integrations/llm/openai.md).

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

> [card] [OpenAI LLM](https://visionagents.ai/integrations/llm/openai.md)
>
> Responses API and ChatCompletions

> [card] [OpenAI Realtime](https://visionagents.ai/integrations/realtime/openai.md)
>
> Speech-to-speech over WebRTC


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.