A FastAPI backend for AI-powered music analysis. Extracts tempo, key, instruments, genre, mood, and more from audio files.
- Tempo & Key Detection - BPM and musical key analysis
- AI Instrument Recognition - Identify instruments in music
- Genre Prediction - Music genre classification
- Mood Analysis - Emotional characteristics detection
- Song Structure - Basic section analysis
- RESTful API - Clean FastAPI endpoints with automatic docs
- Backend: FastAPI, Python 3.10+
- Audio Processing: Librosa
- AI Models: Hugging Face Transformers
- API Docs: Automatic Swagger/OpenAPI
# 1. Clone & setup
git clone https://github.com/AnuOuseph/MIRa-Music-Analysis-API.git
cd MIRa-Music-Analysis-API
python -m venv venv
source venv/bin/activate
# 2. Install dependencies
pip install -r requirements.txt
# 3. Install FFmpeg (required)
brew install ffmpeg # macOS
# sudo apt install ffmpeg # Linux
# 4. Run the server
uvicorn main:app --reload
Visit http://localhost:8000/docs for interactive API documentation.