# Write prompts that work

The models in Mirli respond to concrete descriptions of what you would hear, not
to labels or moods.

![The Music tab with a lo-fi hip hop style in the Styles box, style chips to add, and the Tempo field](https://github.com/HamSanders/soundbox/blob/main/site/public/docs/making/docs-making-prompt-styles.webp)

## Describe a sound effect

Describe **material, action and space**: what the thing is made of, what is
happening to it, and where the listener is.

| Instead of | Write |
| --- | --- |
| scary sound | heavy wooden door slamming shut in a cold stone corridor |
| explosion | distant explosion rolling across an open valley, low rumble tail |
| UI sound | short soft click of a plastic button, dry, close mic |
| rain | steady rain hitting a tin roof, gutter dripping, night |

- **Write a sentence, not a list of keywords.** The models read the connecting
  words, such as "in", "against", "over" and "while".
- **Describe one sound per prompt.** "A door slam and then footsteps" gives you
  a muddle. Make two sounds and place them in the [studio](https://mirli.app/docs/studio/index.md).
- **Say how close it is.** "Close mic", "in the next room" and "far away" change
  the result as much as the sound does.
- **Use the Negative prompt for what keeps creeping in.** If takes come back
  with music or a voice in them, enter "music, voice" in **Negative prompt**.

## Describe a music style

In the **Styles** box on the **Music** tab:

- **Name specific instruments and how they are played.** "Muted funk guitar"
  works better than "guitar", and "staccato low strings, brass stabs, taiko on
  the downbeat" works better than "epic battle music".
- **Give a tempo and a key**, such as "120 BPM" and "C minor".
- **Add a production word or two**, such as "lo-fi", "wide stereo" or "tape
  saturation".
- **Add a mood last**, after the instruments and tempo.
- **Pick one genre.** A long list of genres pulls the model in several
  directions at once.

- **Describe the voice here, not in the lyrics.** Anything in the lyrics gets
  sung, so "raspy male lead vocal" belongs in **Styles**.

For lyrics, see [Make music and write lyrics](https://mirli.app/docs/generating-music/index.md#add-lyrics).

## Write text for speech

On the **Speech** tab and in studio scripts, every character is read:

- **Use punctuation for timing.** Most models pause briefly at a comma and
  longer at a full stop, and lift the end of a question.
- **Spell out what should be said.** "Twenty-four" usually reads more reliably
  than "24", and "doctor" than "Dr."
- **Keep each read to a sentence or a short paragraph.** Long passages are
  easier to fix one line at a time in a script.
- **Put directions in the settings, not the text.** "(whispering)" is read
  aloud. See [Control how a line is read](https://mirli.app/docs/voice-lab-delivery/index.md).

## Rewrite a prompt with the prompt assistant

The prompt assistant is a small model that rewrites a rough idea into a prompt
written for the model you picked. It is off by default.

1. Go to **Settings > Prompt assistant & artwork**.
2. Under **Prompt assistant**, select **Local** to let Mirli install a small
   model, or **External** to use one you already run, such as Ollama or LM
   Studio. If Mirli finds one running, click **Use it**.
3. In the **Create** panel, enter a rough idea, such as "spooky door".
4. Click the sparkle icon in the prompt box (on the **Music** tab, in the
   **Styles** box). The prompt is rewritten.
5. Optional: to go back to your own words, click **Restore the previous
   prompt**.

## Fix a prompt that does not work

**The take is silent, or nearly.** The model has nothing to go on: an abstract
word, or a sound it never heard. Describe the physical sound instead.

**Every take sounds the same and none is right.** Change the words, not the
seed. Rewrite the material, action or space, or try another model.

**One take is close.** Lock its seed and change one word at a time. See
[Refine a take with a locked seed](https://mirli.app/docs/generating-sfx/index.md#refine-a-take-with-a-locked-seed).

## What's next

- [Make sound effects](https://mirli.app/docs/generating-sfx/index.md).
- [Make music and write lyrics](https://mirli.app/docs/generating-music/index.md).
- [Make speech and narration](https://mirli.app/docs/generating-speech/index.md).
