generate_audio
Create background music, instrument loops, stems or sound effects from text prompts locally with Stable Audio 3; each candidate returns a WAV file path.
Instructions
Generate BGM, instrument loops/stems or sound effects from text with Stable Audio 3 (runs locally). Returns one WAV path per candidate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | No | Tempo for music/instrument; appended as 'BPM: N.' | |
| cfg | No | Guidance. 1.0 = official default; 3–7 = stricter prompt adherence (≈2× slower). | |
| seed | No | Base seed for reproducibility; omit or -1 for random. | |
| steps | No | Sampling steps; 8 is the official default. | |
| title | No | Short name; used as the file name and stored in metadata. Auto-named if omitted. | |
| prompt | No | English description (see server instructions). Optional for sfx when the sound_* fields are given. | |
| audio_type | No | music = BGM / full instrumental track; instrument = solo instrument, stem or loop; sfx = sound effect, ambience or one-shot; raw = no prefix (prompt used verbatim) | music |
| variations | No | Number of candidates (different seeds) to generate in one call. | |
| sound_space | No | SFX: space and recording (indoor/outdoor, distance, dry/reverberant, mic). | |
| sound_action | No | SFX: how it is triggered and evolves over time (attack, decay, movement). | |
| sound_source | No | SFX: what makes the sound (object, instrument, creature, machine). | |
| original_idea | No | The user's original request, verbatim and in their language. Stored in metadata only. | |
| sound_material | No | SFX: material, texture, timbre. | |
| negative_prompt | No | Qualities to avoid. Only takes effect when cfg != 1. | |
| peak_ceiling_db | No | Safety ceiling in dBFS: a louder peak is turned down to this, quieter audio is untouched. null disables. | |
| duration_seconds | No | Length in seconds. Default: music 60, instrument 12, sfx 5, raw 30. |