# Turn a script into a scene

## Before you begin

- Install a speech model from the **Models** page.
- Optional: save a voice for each character in the **Voice Lab**. Without saved voices, lines are read in the
  model's built-in voices.

## Start a Script Builder story

1. In the sidebar, click **Studio**.
2. Click **New**.
3. In the **What are you making?** dialog, click **Voice & dialogue**. The story opens with the **Script**,
   **Timeline** and **Library** panels.

![The What are you making dialog with the Voice & dialogue and Music & SFX choices](https://github.com/HamSanders/soundbox/blob/main/site/public/docs/studio/new.webp)

## Paste a whole script

1. In the **Script** panel, click **Paste a script**.
2. In the box, paste your script with one line per speech, each starting with the speaker's name and a colon, such
   as `MARA: The vault door is open.`
3. In the **Into** list, select **Auto-cast speakers**. The panel then shows how many lines it found and
   which voice each speaker gets.
4. Click **Add 4 lines**. The lines join the script; lines already there stay as they are.

![The Paste a script panel with four lines for Mara and Reyes, set to Auto-cast speakers, showing Mara cast to Mara and Reyes to Narrator, and the Add 4 lines button](https://github.com/HamSanders/soundbox/blob/main/site/public/docs/studio/paste.webp)

To turn prose rather than a script into lines, select **Split by sentence**, **Split by paragraph** or **Split by
chapter** in the **Into** list instead.

## Write or change lines one at a time

1. In the **Script** panel, click a line, or click **Add first line** in an empty script.
2. Type the words.
3. To set who reads the line, type `/` and select a voice in the menu that opens.
4. To start the next line, press <kbd>Enter</kbd>. To add a pause instead, type `#`.

![The Script panel with the voice menu open under a line, listing Model default, Narrator, Mara and Captain Reyes](https://github.com/HamSanders/soundbox/blob/main/site/public/docs/studio/script.webp)

## Set how the lines are performed

1. In the **Script** panel, click **Delivery**.
2. Choose the settings for the whole script. The choices depend on the speech model.
3. Optional: to change one line only, point to the line and click its sliders icon. Its setting overrides the
   script's.

![A script line's sliders icon clicked, opening the line's delivery settings; this voice's model, Kokoro, takes none, so the panel says so](https://github.com/HamSanders/soundbox/blob/main/site/public/docs/studio/delivery.webp)

## Read the lines

1. Point to a line in the **Script** panel.
2. Click the line's microphone icon. When the read is done, the line has audio and its clip appears on the
   timeline.
3. Repeat for each line. To read a line again after changing it, click its microphone icon again.

> [!TIP]
> With the Chat panel on, you can enter "read the scene" to have the lines read in one go. See
> [Edit the story with the Chat panel](https://mirli.app/docs/studio-chat/index.md).

## What's next

- [Add sound to the timeline](https://mirli.app/docs/studio-adding/index.md) to put music or effects under the voices.
- [Arrange clips on the timeline](https://mirli.app/docs/studio-timeline/index.md) to tighten the timing.
- [Export the mix](https://mirli.app/docs/studio-export/index.md) when the scene is done.
