Inspire Music

The Next Generation AI Music Creation Toolkit

Inspire Music revolutionizes the way we create and generate music using artificial intelligence

Why Choose InspireMusic?

Unified Framework

InspireMusic provides a comprehensive solution for music, song, and audio generation using PyTorch

Controllable Generation

Inspire Music enables precise control through text prompts, music genres, and structures

High Quality Audio

Generate professional-grade music with InspireMusic's text-to-music and continuation capabilities

Easy Fine-tuning

Inspire Music offers convenient scripts and strategies for model fine-tuning and inference

InspireMusic Model Collection

Explore the powerful pre-trained models available in the Inspire Music ecosystem

Model Name Description
InspireMusic-Base The foundational music generation model by Inspire Music, supporting 24kHz mono output
InspireMusic-1.5B Advanced 1.5B parameter model for enhanced music generation capabilities
InspireSong-Base Specialized model for song generation in the Inspire Music framework

Getting Started with InspireMusic

Begin your journey with Inspire Music in just a few simple steps:

git clone --recursive https://github.com/FunAudioLLM/InspireMusic.git
cd InspireMusic
conda create -n inspiremusic python=3.8
conda activate inspiremusic
pip install -r requirements.txt

InspireMusic Tutorial

1. Basic Music Generation

from inspiremusic import MusicGenerator

# Initialize the generator
generator = MusicGenerator.from_pretrained('inspiremusic-base')

# Generate music from text
music = generator.generate(
    prompt="A peaceful piano melody with soft strings",
    duration_seconds=30
)
music.save("output.wav")

Generate your first piece of music using text prompts to control the style and mood.

2. Song Generation with Lyrics

from inspiremusic import SongGenerator

generator = SongGenerator.from_pretrained('inspiresong-base')

# Generate a song with lyrics
song = generator.generate(
    lyrics="Your lyrics here",
    genre="pop",
    tempo=120
)
song.save("song.wav")

Create complete songs with lyrics using InspireSong models.

3. Fine-tuning Models

from inspiremusic import MusicTrainer

trainer = MusicTrainer(
    model="inspiremusic-base",
    dataset_path="your/music/dataset",
    output_dir="fine_tuned_model"
)

trainer.train(
    epochs=10,
    batch_size=16,
    learning_rate=1e-4
)

Customize InspireMusic models with your own music dataset.

4. Advanced Controls

music = generator.generate(
    prompt="Epic orchestral theme",
    duration_seconds=60,
    temperature=0.8,
    genre="classical",
    instruments=["strings", "brass", "percussion"],
    structure={
        "intro": 10,
        "main_theme": 30,
        "bridge": 10,
        "outro": 10
    }
)

Explore advanced generation controls for precise music creation.

Frequently Asked Questions about InspireMusic

What is InspireMusic?

InspireMusic is a state-of-the-art AI music generation toolkit that enables users to create music using artificial intelligence. It provides a comprehensive framework for generating music, songs, and audio using PyTorch.

What can I create with Inspire Music?

With Inspire Music, you can generate various types of music including instrumental pieces, songs, and audio sequences. The toolkit supports text-to-music generation, music continuation, and controlled generation based on specific genres and structures.

Do I need programming experience to use InspireMusic?

Basic Python programming knowledge is helpful for using InspireMusic. However, we provide comprehensive documentation and examples to help users get started, regardless of their experience level.

What are the system requirements for Inspire Music?

InspireMusic requires Python 3.8 or later, PyTorch, and sufficient GPU memory for model inference. Detailed requirements can be found in our documentation.

Can I fine-tune InspireMusic models on my own data?

Yes, InspireMusic provides convenient scripts and strategies for fine-tuning models on your own music datasets. This allows you to create custom models tailored to specific musical styles or requirements.

Is InspireMusic free to use?

Yes, InspireMusic is open-source and licensed under Apache-2.0. You can freely use it for both personal and commercial projects, subject to the license terms.

Join the InspireMusic Community

Connect with Inspire Music developers and users to share experiences and get support