Skip to content
FoxCoderGitPublic

About

Android music player with local ONNX audio analysis and sound-based recommendations.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

MyMusik

An Android music player that builds recommendations from the sound of your own local library. Kotlin, Jetpack Compose, Media3, Room and ONNX Runtime.

What it does

  • 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.

Build and test

Use JDK 17, Android SDK 36 and Android Studio (or set ANDROID_HOME):

./gradlew testDebugUnitTest assembleDebug

On 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.

Models and optional desktop analysis

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.

Implementation notes

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.

Русский: локальный музыкальный плеер с анализом звучания и рекомендациями по своей коллекции.

About

Android music player with local ONNX audio analysis and sound-based recommendations.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages