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

# Kokoro

[Kokoro](https://github.com/hexgrad/kokoro) is a local TTS engine that runs entirely on your machine. No API key or internet connection required. Ideal for offline voice synthesis, privacy-sensitive applications, or prototyping.

> [!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.

## Installation

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

## Quick Start

```python theme={null}
from vision_agents.core import Agent, User
from vision_agents.plugins import kokoro, gemini, deepgram, 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=kokoro.TTS(),
)
```

> [!NOTE]
>
> Kokoro runs locally. No API key or internet connection is required.

## Parameters

| Name | Type | Default | Description |
| - | - | - | - |
| `voice` | `str` | `"af_heart"` | Voice preset |
| `lang_code` | `str` | `"a"` | Language code (`"a"` = American English) |
| `speed` | `float` | `1.0` | Playback speed (e.g., `0.9` slower, `1.2` faster) |
| `device` | `str` | `None` | Device (`"cuda"`, `"cpu"`, or auto-detect) |

## Next Steps

> [card] [Build a Voice Agent](https://visionagents.ai/introduction/voice-agents.md)
>
> Get started with voice

> [card] [Build a Video Agent](https://visionagents.ai/introduction/video-agents.md)
>
> Add video processing


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