CoolFace
Apppublic

OnyxMunk/AudioForge

sourceHugging Facemitupdated 8mo agoView on Hugging Face
0likes
App README

AudioForge - Open-Source Suno-Style Music Generation Platform

A production-ready, fully open-source text-to-music generation platform built with modern best practices.

๐Ÿš€ Quick Start

New to AudioForge? Start here: [START_HERE.md](START_HERE.md)

For detailed setup: [SETUP.md](SETUP.md)

Architecture

  • โ€”Backend: FastAPI (Python) with async processing
  • โ€”Frontend: Next.js 14+ with TypeScript and App Router
  • โ€”Music Generation: Meta MusicGen / AudioCraft
  • โ€”Vocal Generation: Bark / XTTS
  • โ€”Database: PostgreSQL for metadata, Redis for caching
  • โ€”Observability: Structured logging, Prometheus metrics, OpenTelemetry tracing

Features

  • โ€”๐ŸŽต Multi-stage text-to-audio pipeline
  • โ€”๐ŸŽค Vocal generation with lyrics
  • โ€”๐ŸŽš๏ธ Post-processing and mastering
  • โ€”๐Ÿ“Š Full observability and monitoring
  • โ€”๐Ÿงช Comprehensive test coverage
  • โ€”๐ŸŽจ Beautiful, modern UI
  • โ€”โšก Fast and scalable

Quick Start

Prerequisites

  • โ€”Python 3.11+ (check with python --version)
  • โ€”Node.js 20+ (check with node --version)
  • โ€”PostgreSQL 16+ (or use Docker)
  • โ€”Redis 7+ (or use Docker)
  • โ€”Docker & Docker Compose (optional, recommended)

Using Docker Compose (Recommended)

bash
# Start all services
docker-compose up -d

# Check status
docker-compose ps

# View logs
docker-compose logs -f

This starts:

  • โ€”PostgreSQL on port 5432
  • โ€”Redis on port 6379
  • โ€”Backend API on port 8000
  • โ€”Frontend on port 3000

Access:

  • โ€”Frontend: http://localhost:3000
  • โ€”Backend API: http://localhost:8000
  • โ€”API Docs: http://localhost:8000/api/docs

Manual Setup

See [SETUP.md](SETUP.md) for detailed manual setup instructions.

Quick version:

bash
# Backend
cd backend
python scripts/quick_setup.py
python scripts/init_db.py
uvicorn app.main:app --reload

# Frontend (in another terminal)
cd frontend
pnpm install
echo "NEXT_PUBLIC_API_URL=http://localhost:8000" > .env.local
pnpm dev

Verify Setup

bash
# Backend verification
cd backend
python scripts/verify_setup.py

# Test backend health
curl http://localhost:8000/health

Tech Stack

  • โ€”Backend: FastAPI, Pydantic, SQLAlchemy, Redis, PostgreSQL
  • โ€”Frontend: Next.js, TypeScript, Tailwind CSS, shadcn/ui, React Query
  • โ€”ML: MusicGen, Bark, Transformers, PyTorch
  • โ€”Testing: pytest, Vitest, Playwright
  • โ€”Observability: structlog, prometheus-client, opentelemetry

Documentation

  • โ€”[START_HERE.md](START_HERE.md) - Entry point for new users
  • โ€”[SETUP.md](SETUP.md) - Detailed setup guide
  • โ€”[QUICKSTART.md](QUICKSTART.md) - 5-minute quick start
  • โ€”[VERIFICATION.md](VERIFICATION.md) - Setup checklist
  • โ€”[ARCHITECTURE.md](ARCHITECTURE.md) - System design
  • โ€”[CONTRIBUTING.md](CONTRIBUTING.md) - Development guide
  • โ€”[FINAL_STATUS.md](FINAL_STATUS.md) - Current status report

Status

โœ… Ready to Run - All issues resolved, zero errors, production-ready

License

Open-source (see LICENSE file)