---
title: Dialogue and sound — MAGI-2 | Runware Docs
url: https://runware.ai/docs/models/sandai-magi-2/guides/dialogue-and-sound
description: How to write spoken lines for MAGI-2's native audio, from one speaker to a two-person scene, and how to direct effects, ambience, a score and lines in other languages.
---
### [Introduction](https://runware.ai/docs/models/sandai-magi-2/guides/dialogue-and-sound#introduction)

MAGI-2 generates **picture and sound in one pass**, and the track can carry **dialogue with lip sync** alongside sound effects, ambience and music. All of it comes from the prompt. A spoken line is written in quotation marks, and the rest of the track is a list of what the viewer should hear.

[Watch video](https://runware.ai/docs/assets/hero.D9eK0e_R.mp4)

*A shop owner speaking to camera*

> **Prompt**: A vertical testimonial clip for a small business. The owner of a neighborhood bike repair shop, a man in his fifties with a short gray beard, rolled shirt sleeves and a canvas work apron, stands at his workbench with a bicycle on the repair stand behind him. He looks into the camera and says in a warm, unhurried American voice: "Most bikes that come in here just need an hour of love. Bring yours by, we'll get it rolling again." He smiles and pats the saddle. Locked-off camera at chest height, warm workshop light. Audio: his voice close and clear, a faint radio in the back room, no music, no subtitles.

This guide covers writing a spoken line, scenes with two speakers, effects and ambience, scoring a clip, and lines in other languages.

### [Request shape](https://runware.ai/docs/models/sandai-magi-2/guides/dialogue-and-sound#request-shape)

There is **no separate speech parameter**. The line goes inside `positivePrompt` with the rest of the shot:

**TypeScript**:

```typescript
import { createClient } from '@runware/sdk'

const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()

const [result] = await client.run({
  model: 'sandai:magi@2',
  positivePrompt: 'A vertical testimonial clip for a small business. The owner of a neighborhood bike repair shop, a man in his fifties with a short gray beard, rolled shirt sleeves and a canvas work apron, stands at his workbench with a bicycle on the repair stand behind him. He looks into the camera and says in a warm, unhurried American voice: "Most bikes that come in here just need an hour of love. Bring yours by, we\'ll get it rolling again." He smiles and pats the saddle. Locked-off camera at chest height, warm workshop light. Audio: his voice close and clear, a faint radio in the back room, no music, no subtitles.',
  width: 1080,
  height: 1920,
  duration: 8
})
```

**Python**:

```python
import asyncio
import os

from runware import Runware

async def main():
    async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
        results = await client.run({
            "model": "sandai:magi@2",
            "positivePrompt": "A vertical testimonial clip for a small business. The owner of a neighborhood bike repair shop, a man in his fifties with a short gray beard, rolled shirt sleeves and a canvas work apron, stands at his workbench with a bicycle on the repair stand behind him. He looks into the camera and says in a warm, unhurried American voice: \"Most bikes that come in here just need an hour of love. Bring yours by, we'll get it rolling again.\" He smiles and pats the saddle. Locked-off camera at chest height, warm workshop light. Audio: his voice close and clear, a faint radio in the back room, no music, no subtitles.",
            "width": 1080,
            "height": 1920,
            "duration": 8
        })

asyncio.run(main())
```

**cURL**:

```bash
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "taskType": "videoInference",
      "taskUUID": "e41e43bf-7ce6-4b64-aa8f-ade5fd626a0d",
      "model": "sandai:magi@2",
      "positivePrompt": "A vertical testimonial clip for a small business. The owner of a neighborhood bike repair shop, a man in his fifties with a short gray beard, rolled shirt sleeves and a canvas work apron, stands at his workbench with a bicycle on the repair stand behind him. He looks into the camera and says in a warm, unhurried American voice: \"Most bikes that come in here just need an hour of love. Bring yours by, we'll get it rolling again.\" He smiles and pats the saddle. Locked-off camera at chest height, warm workshop light. Audio: his voice close and clear, a faint radio in the back room, no music, no subtitles.",
      "width": 1080,
      "height": 1920,
      "duration": 8
    }
  ]'
```

**CLI**:

```bash
runware run sandai:magi@2 \
  positivePrompt="A vertical testimonial clip for a small business. The owner of a neighborhood bike repair shop, a man in his fifties with a short gray beard, rolled shirt sleeves and a canvas work apron, stands at his workbench with a bicycle on the repair stand behind him. He looks into the camera and says in a warm, unhurried American voice: \"Most bikes that come in here just need an hour of love. Bring yours by, we'll get it rolling again.\" He smiles and pats the saddle. Locked-off camera at chest height, warm workshop light. Audio: his voice close and clear, a faint radio in the back room, no music, no subtitles." \
  width=1080 \
  height=1920 \
  duration=8
```

**JSON**:

```json
{
  "taskType": "videoInference",
  "taskUUID": "e41e43bf-7ce6-4b64-aa8f-ade5fd626a0d",
  "model": "sandai:magi@2",
  "positivePrompt": "A vertical testimonial clip for a small business. The owner of a neighborhood bike repair shop, a man in his fifties with a short gray beard, rolled shirt sleeves and a canvas work apron, stands at his workbench with a bicycle on the repair stand behind him. He looks into the camera and says in a warm, unhurried American voice: \"Most bikes that come in here just need an hour of love. Bring yours by, we'll get it rolling again.\" He smiles and pats the saddle. Locked-off camera at chest height, warm workshop light. Audio: his voice close and clear, a faint radio in the back room, no music, no subtitles.",
  "width": 1080,
  "height": 1920,
  "duration": 8
}
```

The quotation marks around the line are escaped in JSON, and everything between them is **the text the character speaks**. Sound is on by default, and **the price per second is the same** with or without it. Set `settings.audio` to `false` only when the clip goes under a voiceover or a track you mix yourself.

### [Writing a spoken line](https://runware.ai/docs/models/sandai-magi-2/guides/dialogue-and-sound#writing-a-spoken-line)

A line needs three things in the prompt: **who says it, the exact words, and how they sound**. Name the speaker by role or by something visible, put the words in quotes, and describe the voice in the sentence that introduces them: age, accent, tone and pace, as in "a warm, unhurried American voice".

**Size the line to the clip.** Two short sentences sit comfortably in eight seconds and leave time for an action after the last word, here the smile and the pat on the saddle. For longer copy, raise `duration` instead of packing more words into the same seconds.

### [Two speakers](https://runware.ai/docs/models/sandai-magi-2/guides/dialogue-and-sound#two-speakers)

A conversation needs **a speaker and a time slot for every line**. Put each turn on the clock, cut to whoever is talking, and say outright that only one person speaks at a time:

[Watch video](https://runware.ai/docs/assets/output-conversation.Bv9RkPfq.mp4)

*Three lines from two speakers, each in its own time slot*

> **Prompt**: A short scene for an eyewear store's social ad. 0–4 s: medium shot of a woman in her thirties with a dark bob trying on round tortoiseshell glasses in front of a mirror in a bright optician's shop. She turns to the sales associate beside her and asks: "Be honest, are these too big for my face?" 4–8 s: cut to the associate, a young man in a navy sweater, who smiles and answers: "Not at all. They make your eyes the first thing you notice." 8–12 s: cut back to the woman as she looks in the mirror again and laughs: "Okay, sold." Only one person speaks at a time, and each has a distinct voice. Soft daylight, clean retail interior. Audio: their voices, quiet shop ambience, no music, no subtitles.

**Refer to each speaker by something the viewer can see**, "the associate" or "the woman with the dark bob", so every line has one face to land on. The cuts follow the dialogue, which keeps the speaker on screen for each line, and "each has a distinct voice" keeps the two voices apart.

### [Effects and ambience](https://runware.ai/docs/models/sandai-magi-2/guides/dialogue-and-sound#effects-and-ambience)

With no dialogue, the audio clause becomes **a list of sounds tied to what happens on screen**. Open it with "only live sound, cut to the picture", then name each sound next to the action that makes it:

[Watch video](https://runware.ai/docs/assets/output-effects.7TjShcZk.mp4)

*Effects only, synced to the zipper and her steps*

> **Prompt**: A woman in a red fleece unzips the door of a green dome tent at dawn on a mountain campsite, steps out onto the gravel and looks out over a misty valley. Medium-wide shot from beside the tent, steady camera. Audio: only live sound cut to the picture, the long rasp of the tent zipper, the nylon door flapping open, gravel crunching under her boots, birdsong and a distant stream. No music, no voices, no subtitles.

**Pair every effect with its cause**: the rasp with the zipper, the crunch with her boots on the gravel. Then close with what the track leaves out, "no music, no voices, no subtitles", so the mix holds the campsite and nothing else.

### [Scoring a clip](https://runware.ai/docs/models/sandai-magi-2/guides/dialogue-and-sound#scoring-a-clip)

A score is written like any other sound: **the instruments, the mood, and where it changes**. Tie the change to an action so the music has a moment to land on:

[Watch video](https://runware.ai/docs/assets/output-music.DQQQfR1I.mp4)

*A piano and strings score that swells on the drop*

> **Prompt**: A beauty product reveal for a vitamin C face serum. A frosted amber glass dropper bottle stands on a wet white stone slab. The camera pushes in slowly as a single drop of golden serum falls from the raised dropper and lands on the stone beside the bottle. Soft warm backlight, clean luxury commercial grade. No text, no logos. Audio: a slow cinematic score of soft piano and warm strings that swells as the drop falls and lands, with a faint patter of water underneath. No voices.

The swell is written against the picture, **"as the drop falls and lands"**, so the score peaks with the product moment. To score a clip with a track you already have, such as a brand jingle, pass it as a [reference audio](https://runware.ai/docs/models/sandai-magi-2/guides/video-and-audio-references) instead of describing it.

### [Other languages](https://runware.ai/docs/models/sandai-magi-2/guides/dialogue-and-sound#other-languages)

Write the line **in the language it should be spoken in**, and name that language in the sentence that introduces it. The same greeting from a tour guide, in two versions:

**Spanish**:

[Watch video](https://runware.ai/docs/assets/output-spanish.BRDI9MFS.mp4)

*Spanish*

> **Prompt**: A vertical travel clip. A tour guide in her late twenties with a straw sun hat and a small clip-on microphone stands on a sunny rooftop terrace with the old town behind her and greets the group in front of her with a big smile. Medium shot at eye level, handheld. She says in natural, cheerful Spanish: "¡Bienvenidos! Desde aquí se ve toda la ciudad vieja." Audio: her voice clear, light wind, distant city sounds, no music, no subtitles.

**Mandarin**:

[Watch video](https://runware.ai/docs/assets/output-mandarin.B8K2msXL.mp4)

*Mandarin*

> **Prompt**: A vertical travel clip. A tour guide in her late twenties with a straw sun hat and a small clip-on microphone stands on a sunny rooftop terrace with the old town behind her and greets the group in front of her with a big smile. Medium shot at eye level, handheld. She says in natural, cheerful Mandarin Chinese: "欢迎大家！从这里可以看到整个老城。" Audio: her voice clear, light wind, distant city sounds, no music, no subtitles.

**Translate the line yourself.** Sand AI reports that the released MAGI-2 translates a line less readily than its pre-trained version did, so write the words in the target language rather than asking the character to say an English line in Spanish.

Each take is a separate generation from text, so the guide herself changes between them. To keep **one presenter across every language**, pass her portrait as a [reference image](https://runware.ai/docs/models/sandai-magi-2/guides/reference-images) and change only the line.

### [Tips](https://runware.ai/docs/models/sandai-magi-2/guides/dialogue-and-sound#tips)

1. **Quote the line exactly.** The words between the quotation marks are what gets spoken.
    
2. **Describe the voice where the line starts.** Age, accent, tone and pace turn the words into a performance.
    
3. **Give every line a speaker and a time slot.** Refer to speakers by what the viewer can see, and state that only one person speaks at a time.
    
4. **Pair each effect with the action that makes it.** "Gravel crunching under her boots" lands on the picture, where "campsite sounds" does not.
    
5. **Close the audio clause with what to leave out.** "No music", "no voices" and "no subtitles" keep the mix to what you asked for.
    
6. **Write the line in the target language.** Name the language in the same sentence, and keep the presenter steady across languages with a reference image.