[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [MMAudio V2 Text to Audio](https://spiral.ai/integrations/muse-code/mmaudio-v2-text-to-audio)

# How to Use MMAudio V2 Text to Audio in Muse Code

MMAudio V2 Text to Audio creates short sound effects and ambience from written descriptions. It starts from text alone, making it useful for drafting audio without a reference clip.

|  |  |
| --- | --- |
| Model | MMAudio V2 Text to Audio |
| Available through | fal |
| Category | Audio |
| Price | $0.0013 per second. Billed on `duration`, default 8. |
| Returns | audio |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with MMAudio V2 Text to Audio in Muse Code

- Read the game's environment notes and use MMAudio V2 Text to Audio to draft an eight-second forest atmosphere: rustling leaves, light wind, and scattered bird calls. Exclude speech and music, and save it with the project's audio assets.
- Use MMAudio V2 Text to Audio to make an eight-second draft of footsteps on gravel for this game's walking scene. Start with 25 steps and guidance strength 4.5, and record the prompt beside the asset.
- Read the product demo storyboard and use MMAudio V2 Text to Audio to create separate eight-second candidates for paper packaging rustling and a lid clicking shut. Keep speech and music out of the requested audio.
- Use MMAudio V2 Text to Audio to generate an eight-second rainy street atmosphere for the project's opening scene: rain on pavement, gutter water, and distant traffic. Add speech and music to the negative prompt.
- Inspect the animatic's written action list and use MMAudio V2 Text to Audio to draft an eight-second wooden door creak followed by a firm closing sound. Save the clip for manual placement in the edit.

## How to set up MMAudio V2 Text to Audio in Muse Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run MMAudio V2 Text to Audio**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "fal-ai/mmaudio-v2/text-to-audio",
    "input": {
      "prompt": "Indian holy music"
    }
  }'
```

Then paste one of the prompts above: Muse Code finds MMAudio V2 Text to Audio on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## MMAudio V2 Text to Audio tools and prices

- [MMAudio V2 Text to Audio](https://spiral.ai/tools/fal/fal-ai/mmaudio-v2/text-to-audio) (fal): $0.0013 per second. Billed on `duration`, default 8.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| negative_prompt |  |  | The negative prompt to generate the audio for. |
| seed | 0 to 65535 | — | The seed for the random number generator |
| num_steps | 4 to 50 | 25 | The number of steps to generate the audio for. |
| duration | 1 to 30 | 8 | The duration of the audio to generate. |
| cfg_strength | 0 to 20 | 4.5 | The strength of Classifier Free Guidance. |
| mask_away_clip |  | false | Whether to mask away the clip. |

## What can you do with MMAudio V2 Text to Audio in Muse Code?

Turn project sound briefs into short effects and ambience for games, demos, and animations. A coding agent can organize candidate clips alongside the project and record the descriptions used to create them.

### Game environment audio

Draft eight-second forest, shoreline, or rainy street ambience from sound descriptions. Audition each clip against the scene before editing it into the game.

### Foley for short scenes

Generate footsteps, door movements, or object impacts from text. Place and trim the selected sounds manually against the action.

### Podcast scene transitions

Draft a short rainstorm, passing train, or crackling fire to introduce a location in an audio story. Keep spoken narration separate.

### Product demonstration effects

Describe packaging rustles, a lid clicking shut, or liquid pouring into a glass. Try separate clips for each action so an editor can place them independently.

### Animation sound drafts

Turn written action descriptions into short effects for an animatic. Use the results to explore sound choices before final editing.

### Audio drama atmosphere

Draft an eight-second room or outdoor atmosphere from a written scene description. Listen for unwanted voices before placing it beneath dialogue.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## MMAudio V2 Text to Audio in other agents

- [Amp](https://spiral.ai/integrations/amp/mmaudio-v2-text-to-audio)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/mmaudio-v2-text-to-audio)
- [Claude](https://spiral.ai/integrations/claude-desktop/mmaudio-v2-text-to-audio)
- [Claude Code](https://spiral.ai/integrations/claude-code/mmaudio-v2-text-to-audio)
- [Cline](https://spiral.ai/integrations/cline/mmaudio-v2-text-to-audio)
- [Codex](https://spiral.ai/integrations/codex/mmaudio-v2-text-to-audio)
- [Cursor](https://spiral.ai/integrations/cursor/mmaudio-v2-text-to-audio)
- [Devin](https://spiral.ai/integrations/devin/mmaudio-v2-text-to-audio)
- [dots](https://spiral.ai/integrations/dots/mmaudio-v2-text-to-audio)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/mmaudio-v2-text-to-audio)
- [Gemini](https://spiral.ai/integrations/gemini/mmaudio-v2-text-to-audio)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/mmaudio-v2-text-to-audio)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/mmaudio-v2-text-to-audio)
- [goose](https://spiral.ai/integrations/goose/mmaudio-v2-text-to-audio)
- [Grok](https://spiral.ai/integrations/grok/mmaudio-v2-text-to-audio)
- [Grok Build](https://spiral.ai/integrations/grok-build/mmaudio-v2-text-to-audio)
- [Hermes](https://spiral.ai/integrations/hermes/mmaudio-v2-text-to-audio)
- [Instinct](https://spiral.ai/integrations/instinct/mmaudio-v2-text-to-audio)
- [Manus](https://spiral.ai/integrations/manus/mmaudio-v2-text-to-audio)
- [Muse](https://spiral.ai/integrations/muse/mmaudio-v2-text-to-audio)
- [n8n](https://spiral.ai/integrations/n8n/mmaudio-v2-text-to-audio)
- [Notion](https://spiral.ai/integrations/notion/mmaudio-v2-text-to-audio)
- [OpenClaw](https://spiral.ai/integrations/openclaw/mmaudio-v2-text-to-audio)
- [opencode](https://spiral.ai/integrations/opencode/mmaudio-v2-text-to-audio)
- [Perplexity](https://spiral.ai/integrations/perplexity/mmaudio-v2-text-to-audio)
- [Raycast](https://spiral.ai/integrations/raycast/mmaudio-v2-text-to-audio)
- [VS Code](https://spiral.ai/integrations/vscode/mmaudio-v2-text-to-audio)
- [Windsurf](https://spiral.ai/integrations/windsurf/mmaudio-v2-text-to-audio)
- [Zapier](https://spiral.ai/integrations/zapier/mmaudio-v2-text-to-audio)

## More Muse Code guides

- [Lyria 3.5](https://spiral.ai/integrations/muse-code/lyria-3-5)
- [MiniMax Music 01](https://spiral.ai/integrations/muse-code/minimax-music-01)
- [Lyria 3 Pro](https://spiral.ai/integrations/muse-code/lyria-3-pro)
- [MiniMax Music 1.5](https://spiral.ai/integrations/muse-code/minimax-music-1-5)
- [Lyria 3](https://spiral.ai/integrations/muse-code/lyria-3)
- [MiniMax Music 2.0](https://spiral.ai/integrations/muse-code/minimax-music-2-0)

## Questions about MMAudio V2 Text to Audio in Muse Code

**Can Muse Code use MMAudio V2 Text to Audio?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run MMAudio V2 Text to Audio like any built-in tool.

**How much does MMAudio V2 Text to Audio cost in Muse Code?**

$0.0013 per second. Billed on `duration`, default 8. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse Code plan is separate.

**Do I need a fal account to use MMAudio V2 Text to Audio in Muse Code?**

No. Spiral runs MMAudio V2 Text to Audio on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up MMAudio V2 Text to Audio in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while MMAudio V2 Text to Audio runs?**

MMAudio V2 Text to Audio runs in the background. Muse Code starts the run, checks on it and gives you the audio when it's ready.

**What should I use MMAudio V2 for?**

Use it to draft short sound effects and environmental ambience. Start with a concrete sound, such as rain hitting a window, running water, or a dog barking.

**What clip length should I start with?**

Start with eight seconds, the training and default output length. The maker warns that lengths far from the training duration can reduce quality.

**Can MMAudio V2 read a script aloud?**

It is a poor choice for narration or dialogue. The researchers report unintelligible mumbles when MMAudio is prompted to generate human speech.

**What audio sampling rate does MMAudio V2 use?**

The recommended V2 checkpoint uses 44.1 kHz audio. That describes the sampling rate, rather than a guarantee about the quality of a particular result.

**How should I describe the sound I want?**

Write an audible description: the source, its action, and the surrounding sound. For example, try 'steady rain tapping a metal roof, with occasional distant thunder.'

