Skip to content

Music Server

rookiemann edited this page Mar 15, 2026 · 1 revision

Extension 2: Music Server

The Music Server generates music, songs, and sound effects from text descriptions. Describe what you want to hear, and it creates an audio file.

Server port: 9150

Installation

  1. Go to Tools > Extensions
  2. Click Install next to "Music Generation Server"
  3. Wait for the installation to complete
  4. Click Start to launch the server

Or install manually:

cd extensions/music-server
install.bat
launcher.bat api

Available Music Models

Model Best For Duration GPU VRAM
musicgen General music from text prompts 5-30 sec ~4 GB
musicgen-large Higher quality music 5-30 sec ~8 GB
stable_audio High-quality, longer music 5-90 sec ~6 GB
ace_step Fast music with style control 5-60 sec ~4 GB
riffusion Spectrogram-based (unique sound) 5-15 sec ~4 GB
audioldm2 Music + sound effects 5-30 sec ~6 GB

How to Generate Music

Simple prompt: Say: "Generate 30 seconds of upbeat electronic dance music with synths and a driving beat"

Specific genre: Say: "Generate a calm acoustic guitar melody with light percussion, 20 seconds"

Sound effects: Say: "Generate the sound of rain falling on a tin roof with distant thunder"

With model selection: Say: "Generate music using stable_audio: epic orchestral film soundtrack, 60 seconds"

Music Tools Reference

Tool How to Use It
music_status "Is the music server running?"
music_generate "Generate music: [description]" with optional model and duration
music_models "What music models are available?"
music_model_load "Load the musicgen model"
music_model_unload "Unload the music model"
music_outputs "Show my generated music files"
music_install "Install the stable_audio model"

Music Tips

  • Be descriptive — "upbeat jazz with saxophone solo and walking bass" works better than "jazz music"
  • Specify instruments — mention specific instruments for better results
  • Set duration — start with 10-15 seconds to test, then increase
  • Try different models — each model has a different sound character
  • Generated audio files are saved in extensions/music-server/output/

Music Troubleshooting

"Music server unreachable":

  • Start the server with launcher.bat api in extensions/music-server/
  • Check that port 9150 isn't in use

"No music model loaded":

  • Say "Load the musicgen model" before generating
  • First-time loading downloads model weights

Generated music sounds bad:

  • Try a more specific prompt
  • Try a different model
  • Some models work better for certain genres

Clone this wiki locally