# Speech Bubbles, Captions & Title Cards

> Add dialogue with auto-placed speech bubbles, bottom captions, and opening title pill cards in film.yaml.

PraisonAI Film formats spoken dialogue and opening titles automatically using bundled offline fonts (`Nunito Sans`, `JetBrains Mono`, `Inter`) so text renders identically on macOS and Linux.

---

## 1. Spoken Dialogue (`do: say`)

Add a spoken line to any character:

```yaml
action:
  - {who: mira, do: say, at: 0.5, text: "Edit one line and render again."}
```

- **Face-safe speech bubbles:** Bubbles automatically position themselves away from every visible character's face and point cleanly toward the speaker.
- **Automatic reading duration:** If you omit `dur:`, PraisonAI Film calculates comfortable reading time from the line length automatically.

---

## 2. Captions & Bubble Toggles

Control how dialogue appears at the top of `film.yaml`:

```yaml
bubbles: true     # Show comic speech bubbles (default: true)
captions: true    # Also show bottom subtitle captions (default: false)
```

| Combination | Result |
|---|---|
| `bubbles: true`, `captions: false` *(default)* | Comic speech bubbles above speakers |
| `bubbles: true`, `captions: true` | Both speech bubbles and bottom captions |
| `bubbles: false`, `captions: true` | Clean subtitle captions only (great for cinematic/realistic cuts) |

---

## 3. Opening Title Card (`card` & `card_seconds`)

By default, your `title:` appears as a styled opening pill card in the top-left corner:

```yaml
title: Second take
card_seconds: 1.8      # How long the title card stays visible (default: 2.4s)
```

- **Custom card text:** Set `card: "EPISODE 1"` to show different text than `title:`.
- **Hide the title card:** Set `card: false`.

## Related pages

- [How a Film File Works](https://film.praison.ai/docs/features/film-yaml.md)
- [Clean Vector](https://film.praison.ai/docs/styles-guide/clean-vector.md)
