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

# Fast-Whisper

[Fast-Whisper](https://github.com/guillaumekln/faster-whisper) is a high-performance local STT using CTranslate2. Provides 2-4x faster inference than standard Whisper with support for CPU and GPU acceleration.

> [!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[fast-whisper]"
```

## Quick Start

```python theme={null}
from vision_agents.core import Agent, User
from vision_agents.plugins import fast_whisper, gemini, elevenlabs, 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=fast_whisper.STT(model_size="base"),
    tts=elevenlabs.TTS(),
)
```

> [!NOTE]
>
> Fast-Whisper runs locally. No API key required. Models download automatically
> on first use.

## Parameters

| Name | Type | Default | Description |
| - | - | - | - |
| `model_size` | `str` | `"base"` | Model size (`"tiny"`, `"base"`, `"small"`, `"medium"`, `"large-v3"`) |
| `language` | `str` | `None` | Language code or `None` for auto-detect |
| `device` | `str` | `"cpu"` | Device (`"cpu"`, `"cuda"`, `"auto"`) |
| `compute_type` | `str` | `"int8"` | Precision (`"int8"`, `"float16"`, `"float32"`) |

## Model Sizes

| Model | Speed | Use Case |
| - | - | - |
| `tiny` | Fastest | Real-time, resource-constrained |
| `base` | Very Fast | General purpose |
| `small` | Fast | Balanced |
| `medium` | Moderate | Higher accuracy |
| `large-v3` | Slower | Maximum accuracy |

## Optimization

```python theme={null}
# CPU (default) - use int8 for best performance
stt = fast_whisper.STT(device="cpu", compute_type="int8")

# GPU - use float16 for speed and accuracy
stt = fast_whisper.STT(device="cuda", compute_type="float16")
```

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