InspireMusic Complete User Guide
Environment Deployment Process:
- Foundation Installation:
1. Cloning the code base:git clone https://github.com/FunAudioLLM/InspireMusic.git
2. Installation of dependencies:pip install -r requirements.txt
3. Install PyTorch according to the CUDA version. - Hardware Requirements:Recommended for devices with NVIDIA graphics cards with ≥ 8GB of video memory for the best experience
Basic music generation:
- Prepare text prompts (e.g., "Romantic Violin Concerto")
- Execute the generate command:
python app.py --text "你的文本描述" --output_dir ./results - View the generated .wav audio file in the specified directory
Advanced control methods:
- Structural control:Define beats/chords via JSON files using the
--structureparameter loading - Style Control:increase
--style "爵士"Specify music genres with parameters such as - Sound Quality Options:pass (a bill or inspection etc)
--sample_rate 48000Get broadcast-quality sound
All generated parameters can be used in combination, and developers can also author interactively with the provided Jupyter Notebook.
This answer comes from the articleInspireMusic: Ali's open source unified music, song and audio generation frameworkThe































