Table of Contents
[!NOTE]
💡 Note Regarding Repository History & Initial Commit
This repository was made public after the project had already been fully developed locally.
As a result, the initial public commit contains the complete existing codebase and shows a large number of additions (~136k).
All subsequent updates, fixes, and active development are properly tracked through individual commits moving forward.
About
SMusic is a free, open-source Android music app that streams from YouTube Music, with offline downloads, synced lyrics, music recognition, and a deep set of customization options — including 11 distinct in-app player styles you can switch between, each with its own look, layout, and controls.
You can use it fully signed out — or sign in with your own YouTube account for a personalized Home feed, synced recommendations, and account-scoped search history. No subscription, no ads, ever.
Pulse
Pulse is the recommendation engine at the heart of SMusic. It shapes personalized sections on Home, helps choose and order tracks for radio, and gives you a taste profile you can inspect and tune. It combines what you listen to with what you explicitly tell it you want to hear.
| Signal |
How Pulse uses it |
| Listening history and time played |
Learns which tracks and artists you return to and how much of a song you actually listen to. |
| Likes, downloads, and followed artists |
Uses the music you deliberately keep to build a clearer picture of your taste. |
| Artists you choose and direct feedback |
Uses More like this to strengthen a signal and Do not recommend to steer suggestions away from unwanted tracks. You can review feedback and adjust priorities in Pulse. |
| The song that starts your radio |
Uses the seed to keep the queue close to what you started with. When cached lyrics provide enough evidence, Pulse can use their language to help avoid unrelated language jumps. |
Make it yours
- Start a radio from a track you like. The current song gives Pulse a starting point for the session.
- Choose artists in Pulse. Add artists you want to hear more often, even if you haven't listened to them much in SMusic yet.
- Adjust variety and repeat cooldown. Variety controls how much room Pulse gives to different artists. The cooldown helps keep recently played songs from coming back too soon.
- Review your feedback. Check which tracks and artists are influencing your recommendations and change those choices as your taste changes.
Pulse is a work in progress. It has less to go on when your library and listening history are new, and incomplete metadata or a limited recommendation pool can still produce misses. Listening and feedback give it better signals over time.
Features
Playback
- Stream millions of songs directly from YouTube Music, free and ad-free
- Background playback with full media-notification and lock-screen controls
- Gapless, high-quality audio via Media3 / ExoPlayer
- Home-screen widget for quick playback controls
- Sleep timer with a live countdown
- Shuffle, repeat (all/one), and full queue management
- Radio / similar-song recommendations
Account & Sync
- Sign in with your own YouTube account (secure in-app WebView login — your credentials never pass through SMusic's own servers)
- Guest mode and signed-in mode are kept fully separate: your search history, recommendations, and Home feed never mix between them
- Account-aware Home feed pulled from your actual YouTube Music activity
AI Studio
- AI-generated playlists built from your own listening history, saved straight to your library as "Recommended by AI"
- AI-assisted lyrics translation
- Bring your own API key (OpenRouter and/or DeepL) in Settings — nothing is sent anywhere without your own key configured
Audio FX / DJ Studio
- A full in-app DSP studio with dedicated tabs: Master (EQ), Echo & Delay, and Turntable (pitch/speed)
- 8D audio and spatial widening effects, built on custom Media3 audio processors
- Settings persist per-device and apply live during playback
Voice Assistant
- Hands-free playback: play a song or genre, resume/pause, skip tracks, like the current song, start a radio, and control volume — all by voice
Android Auto
- Browse your library and control playback from your car's head unit
Backup & Restore
- Full backup of your library, playlists, and settings to local files, with restore support
- Optional automatic background backups
Offline
- Download individual songs or entire playlists for offline listening
- Downloads survive app updates and are managed from a dedicated storage screen
- Low Data Mode — automatically drops to a lower audio quality on mobile data to save your plan
Lyrics
- Real-time synced lyrics from 12 providers: Lrc.red ,LRCLIB, KuGou, BetterLyrics, SimpMusic, Unison, YouLy, Megalobiz, Paxsenix, Portato, plus YouTube's own captions and subtitles — SMusic tries them in order so you almost always get a synced result
- Full-screen lyrics view with smooth line-by-line highlighting
- AI-assisted lyrics translation
- Share a lyric line as a styled image card
Discovery
- Built-in music recognition — identify any song playing around you
- Import your existing playlists straight from Spotify or YouTube Music
- Explore screen with mood- and genre-based browsing
- Search across songs, videos, albums, and artists, with filters
- Full library management — songs, albums, artists, and playlists, each with their own screen
Discord Rich Presence
- Shows what you're currently playing on your Discord profile in real time
Customization
- 11 player styles to choose from: Classic, Spotify, Apple, Galaxy, Fold, Frost, Paper, Liquid, CloudGlow, Groove, Popsy, and more — each with its own layout
- 3 seek-bar styles per player: Default, Squiggly (animated wave), and Slim
- Classic player dynamically colors itself from each song's own artwork
- Custom theme presets, accent colors, and an SF Pro-based font option
- Customizable, reorderable navigation bar
- Built-in equalizer
Your Library, Your Stats
- Listening history
- Personal listening insights — your top songs, artists, and albums
- Full backup & restore of your library, playlists, and settings
Stays Up To Date, On Its Own
- In-app notification bell for announcements
- Automatic background update checks — no need to check manually
- Browse previous versions and their changelogs right from the About screen
- Device-performance-aware animations (automatically lighter on lower-end devices)
Screenshots
 Home |
 Now Playing |
 Lyrics |
 Search |
 Pulse |
 Listening Stats |
 Library |
 Import Playlists |
 Settings |
 Update Check |
Tech Stack
- Kotlin — 100% Kotlin codebase
- Jetpack Compose (Material 3 Expressive) — fully declarative UI, no XML layouts
- Media3 / ExoPlayer — playback engine, extended with custom audio processors for the DJ Studio, 8D, and spatial audio effects
- Room — local database for library, playlists, and history
- Hilt — dependency injection
- Coil — image loading and caching
- WorkManager — background jobs (Pulse refresh, AI recommendations, update checks)
- KSP — annotation processing
- Custom InnerTube client — talks directly to YouTube Music's own internal API
Modules
| Module |
Purpose |
app |
Main application — UI, playback, database, settings |
innertube |
YouTube Music InnerTube API client |
kugou |
KuGou lyrics provider |
lrclib |
LRCLIB lyrics provider |
betterlyrics |
BetterLyrics provider |
shazamkit |
Music recognition |
jossredconnect |
Auth / backend connector |
material-color-utilities |
Google's Material color science library |
Building From Source
Requirements
- Android Studio (latest stable)
- JDK 21 for Gradle and the app’s JVM target
- Android SDK —
compileSdk 36, minSdk 24, targetSdk 35
Setup
Clone the repo:
git clone https://github.com/devxrohan/SMusic.git
cd SMusic
Create local.properties in the project root (this file is git-ignored — it never gets pushed):
sdk.dir=/path/to/your/Android/Sdk
# Optional — only needed if you're running your own update-checker worker
update.manifest.url=
# Used for fetching release changelogs and the GitHub link on the About screen
github.repo=<your-username>/SMusic
# Optional — only needed for Discord Rich Presence
discord.application.id=
AI Studio (optional) — to use AI playlist recommendations and lyrics translation, add your own API key(s) from inside the app (Settings → AI), not in local.properties. SMusic supports OpenRouter for recommendations and DeepL for translation; nothing AI-related runs until you add a key yourself.
Open the project in Android Studio and select JDK 21 as the Gradle JDK.
Configure Firebase for a fresh checkout. The app applies the Google Services Gradle plugin. Place your Firebase configuration at app/google-services.json, with the Android package matching the build variant: com.devxrohan.smusic.debug for debug or com.devxrohan.smusic for release. The configuration file is local to your checkout.
Build and run on a device or emulator using Android Studio, or build from the repository root:
| System |
Command |
| Windows |
gradlew.bat :app:assembleDebug |
| macOS / Linux |
./gradlew :app:assembleDebug |
The debug APK is written to app/build/outputs/apk/debug/app-debug.apk.
To build a signed release APK, you'll also need your own keystore.properties (also git-ignored) with your signing details:
storeFile=/path/to/your.keystore
storePassword=yourStorePassword
keyAlias=yourKeyAlias
keyPassword=yourKeyPassword
FAQ
Is this affiliated with YouTube Music or Google?
No. SMusic is an independent, unofficial client that uses YouTube Music's own public web API — the same one YouTube Music's own website uses.
Does it cost anything?
No. SMusic is completely free and always will be — no subscriptions, no premium tier, no ads.
Do I need to sign in?