Skip to main content

Simple text-to-music generation that actually works - no enterprise complexity

Project description

MusicGen-Minimal

Text-to-music generation in 200 lines of code. No bullshit, just music.

What This Does

  • Generates music from text descriptions
  • Uses Facebook's MusicGen model
  • Works on CPU (slow) or GPU (fast)
  • Outputs WAV files

What This Doesn't Do

  • No web interface (yet)
  • No real-time generation
  • No style transfer
  • No complex features
  • Maximum 120 seconds per generation

Installation

pip install musicgen-minimal

Usage

# Generate music
musicgen generate "upbeat jazz piano" --duration 10

# Test your setup
musicgen test

Performance (Real Numbers)

  • Model loading: ~30 seconds first time
  • Generation: ~12 seconds per 1 second of audio (CPU)
  • Generation: ~0.5 seconds per 1 second of audio (GPU)
  • Memory usage: ~4GB

Why So Simple?

Because it actually works. The original project had 343 files and didn't run. This has 4 files and ships music.

Contributing

Keep it simple. If your PR adds more than 50 lines, it's too complex.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

musicgen_minimal-1.0.0.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

musicgen_minimal-1.0.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file musicgen_minimal-1.0.0.tar.gz.

File metadata

  • Download URL: musicgen_minimal-1.0.0.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for musicgen_minimal-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1602e30ac34d7ddfaf4f3a1089e9f5e5119e72e202c3131e28c74accf2e4aee5
MD5 aa4fd86a11c0964edb9dcfcd70447d8a
BLAKE2b-256 d8f749081b80bd720e07964c01006d94ecf7b65b75f0afb9014e99ff4e2d961c

See more details on using hashes here.

File details

Details for the file musicgen_minimal-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for musicgen_minimal-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff5db1f58eec7d998a60ae65a9a552dba972ffd689977575270013984f1c8fd3
MD5 08c275170347634a8bb6bc64812d8746
BLAKE2b-256 96de8a7b44002b5d4f0493136e67e00624fe27985821bac04eba6b8976a09b4b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page