Skip to content
This repository was archived by the owner on Sep 14, 2026. It is now read-only.

Latest commit

 

History

History
48 lines (38 loc) · 1.37 KB

File metadata and controls

48 lines (38 loc) · 1.37 KB

CLAUDE.md — Sanitune

Overview

AI-powered song cleaning tool that removes or replaces explicit words while preserving the original singer's voice. Separates vocals from instrumentals, transcribes, detects profanity, and produces clean versions via mute, bleep, or voice-matched replacement.

Tech Stack

  • Python (pyproject.toml)
  • Demucs v4 (Meta, source separation)
  • WhisperX (transcription with word-level timestamps)
  • Edge-TTS / Bark (voice synthesis)
  • Kits.ai (optional cloud voice conversion)
  • Gradio (web UI)
  • Docker / Docker Compose
  • pytest (tests/)

Development

# Install with all extras
pip install -e ".[lyrics,web,ai]"

# Run CLI
sanitune process song.mp3 --mode mute --language en

# Run web UI
sanitune web

# Run tests
pytest tests/

# Run with Docker
docker compose up -d

Architecture

  • src/ — main application source
  • tests/ — test suite
  • docs/ — documentation and images
  • Dockerfile — container build definition
  • docker-compose.yml — local development stack

Key Rules

  • Audio is processed locally by default; never upload to external services without user opt-in
  • AI suggestions require BYO API key (Anthropic/OpenAI); never bundle keys
  • Docker image: drumsergio/sanitune with semver tags
  • Support both English and Spanish profanity detection
  • License: GPL-3.0

Generated by LynxPrompt CLI