Skip to content

moegon/ai-music-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MusicGen App Pro (fixed downloads)

This build serves generated files under /outputs and returns absolute URLs from /generate-json so Swagger/UI downloads won't 404.

Run:

python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install --index-url https://download.pytorch.org/whl/cu121 torch torchvision torchaudio
pip install -r requirements.txt
uvicorn --app-dir src musicgen_app.api.server:app --host 127.0.0.1 --port 8001 --reload

Open http://127.0.0.1:8001/ui

New endpoints

  • /diagnostics: Returns environment, CUDA, and model placement info.
  • /synthesize-fm: Form POST to render an FM tone and get a WAV file.
  • /synthesize-fm-json: JSON POST variant returning a URL and path.

FM synth params

  • carrier_hz, mod_hz, mod_index, duration_s, sample_rate, amplitude
  • attack_s, decay_s, sustain_level, release_s

About

AI Music Generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors