An Android music player that builds recommendations from the sound of your own local library. Kotlin, Jetpack Compose, Media3, Room and ONNX Runtime.
- Scans local audio using MediaStore and plays it through a media-session service.
- Computes music embeddings and relaxed/happy/party scores on the device.
- Learns a preference vector from favorites, ratings and listening recency.
- Builds a queue with relevance, mood, exploration and MMR diversity, including an artist-repeat penalty.
No music catalog account is required. The models are bundled; inference can run locally after installation. The UI and code are an initial public source snapshot.
Use JDK 17, Android SDK 36 and Android Studio (or set ANDROID_HOME):
./gradlew testDebugUnitTest assembleDebugOn Windows use gradlew.bat. Minimum device API is 26. Grant audio-library access
when prompted. No signing key or local SDK paths are committed.
MusicRecommenderTest checks queue behavior with deterministic tracks.
See models/NOTICE.md and the SHA-256 manifest.
Model weights are CC BY-NC-SA 4.0; app source is MIT.
The optional tools/generate_aimusic_analysis.py computes an importable report on
your computer; install tools/requirements-ai-analysis.txt, then use --help.
No songs or personal listening histories are included.
MusicEmbeddingEngine.kt prepares audio/log-mel patches and executes ONNX graphs.
MusicRecommender.kt ranks and diversifies candidates. Analysis cost depends on
the device and library size; mood outputs are estimates rather than factual labels.
Русский: локальный музыкальный плеер с анализом звучания и рекомендациями по своей коллекции.