jayfunc/CarpeLines 是一个托管在 GitHub 上的开源项目,主要使用 Kotlin 编写,采用 GNU General Public License v3.0 许可证,目前获得 8 个 Star、0 次 Fork。
仓库全名
jayfunc/CarpeLines
README 摘要
English | 简体中文 Seize the Line, Keep the Time Live, word-by-word lyrics for any Android media session io.github.jayfunc.carpelines · Android 11+ (API 30) · target SDK 37 · GPL-3.0-or-later alt="CarpeLines — Seize the Line, Keep the Time. Live, word-by-word lyrics for any Android media session" /> Table of Contents Highlighted Features Screenshots Download & Install Lyrics Engine Documentation Community Contribute &…
Word-level timing — Word timestamps in the lyric file highlight each word in turn, rather than advancing the line as a whole.
Character-level highlighting for CJK lyrics — Chinese, Japanese and Korean lyrics are highlighted character by character with a spring-based animation.
Duet and backing-vocal support — A two-column layout, separate backing-vocal lines and per-line styling keep overlapping parts legible.
Translations and romanization — Translated and romanized lines appear beneath the original and retain their timing.
A customizable lyrics display
Artwork-based colour palette — The full-screen lyrics page samples the current album artwork to set its colours.
Animated backgrounds — Fluid and album-blur backgrounds are available, alongside animated blur and trailing glows for sustained notes. The fluid effect is adapted from BetterLyrics’ FluidBackgroundEffect shader.
Synchronized scrolling — The current line remains near the centre of the screen as the rest of the lyrics scroll.
On-screen playback controls — Previous, play/pause, next and progress controls appear over the lyrics, fade after a few seconds, return when tapped and remain visible while playback is paused. A tonal button at the top exits the lyrics view.
Track-specific timing and lyric cards — Adjust the timing for an individual track and export its lyrics as a shareable card.
Integration with media players
System media sessions — NotificationListenerService and MediaSessionManager track the active player’s artwork, playback position and playback state. CarpeLines estimates progress between system updates.
Three lyrics widgets — The now-playing bar, lyric control card and square tile each follow the active media session, control playback and open the lyrics page.
Playback without a local audio library — CarpeLines has no audio engine or music library; its controls operate the active player.
No server or account setup — There is no cloud library to connect, no server address to enter and no scrobbling account to link.
Seven lyric sources — Read embedded tags or sibling .lrc files, or retrieve lyrics from QQ Music (QRC), NetEase Cloud Music (EAPI), Kugou (KRC), LRCLIB or Apple Music (TTML).
Configurable source order — Reorder lyric sources in Settings → Lyrics → Lyrics source order. The same order applies to in-app and external playback.
Everything it handles
Formats — LRC, QRC, KRC and TTML, detected automatically and converted to a common timed lyrics format.
Providers — embedded tags, sibling .lrc files, QQ Music, NetEase Cloud Music, Kugou, LRCLIB and Apple Music.
Matching — Title, artist and album normalization; candidate scoring; and merging translations or romanization with the original lyrics.
Display — Word- and character-level highlighting, duet columns, backing vocals, translations, romanization, animated blur, sustained-note glows and fades around the current line.
Backgrounds — Fluid (adapted from BetterLyrics’ FluidBackgroundEffect shader) and album-blur modes.
Screens — A read-only Home preview of the active media session, the lyrics page, listening statistics and a compact settings screen.
Deep links — carpelines://lyrics and carpelines://external_lyrics; betterlyrics://… is kept for compatibility.
Customization — theme, lyrics typography, layout, blur, source order and per-track offset.
Screenshots
Artwork-derived colour and fluid backdrops, with the transport pill floating over the lyrics.
Fluid — the backdrop drifts with the cover palette while translations stack under the original and the playing word lights up as it is sung.
Raindrop — droplets settle over the ambient backdrop, with the transport pill and artwork tint following the current track.
Download & Install
CarpeLines needs Android 11 (API 30) or newer.
Latest Release (Recommended)
Build from Source
Signed universal APK, built and published by CI. stable goes to the latest release; alpha and beta are pre-releases on the releases page.
Android Studio — open src/CarpeLines.KMP as the Gradle root and run the app configuration. Gradle CLI — build a universal debug APK with the commands below. Debug builds install as io.github.jayfunc.carpelines.debug.
The Gradle project lives in src/CarpeLines.KMP, so run every task from that directory. JDK 21 and Android SDK 37 are required.
cd src/CarpeLines.KMP
JAVA_HOME=/usr/lib/jvm/java-21-openjdk ./gradlew :app:assembleDebug -Pcarpelines.enableAbiSplits=false
-Pcarpelines.enableAbiSplits=false produces one universal APK; ABI splits are on by default. The APK lands in app/build/outputs/apk/debug/. On Windows:
cd src\CarpeLines.KMP
.\gradlew.bat :app:assembleDebug "-Pcarpelines.enableAbiSplits=false"
Lyrics Engine
The lyrics domain lives in a Kotlin Multiplatform shared module so parsing, matching and merging stay independent of Android UI code.
Layer
Responsibility
Parse
LRC, QRC, KRC and TTML parsers, format detection and conversion into one timed document
Decrypt
QRC / KRC payload decryption and NetEase EAPI request signing
Provide
QQ Music, NetEase Cloud Music, Kugou, LRCLIB and Apple Music clients
Match
Metadata normalization, candidate scoring and best-match selection
Pipeline
Normalization, merge, translation and romanization
The Android app bridges the shared engine to tag reads, media-session state and the Compose UI under data/carpelines/. Source order is user-owned: the same reorderable list is used whether lyrics come from the in-app screen or an external player.
CarpeLines
Copyright (C) 2026 The CarpeLines Contributors
Derived from PixelPlayerOSS, Copyright (C) 2026 Theo Vilardo
Includes components adapted from BetterLyrics, Copyright (C) jayfunc and BetterLyrics contributors
Includes components adapted from Zenith, Copyright (C) 1372Slash and Zenith contributors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Distributed APKs include third-party components under their own licences. See
THIRD_PARTY_NOTICES.md
for the full list, including Lyricify-Lyrics-Helper (Apache-2.0) and the MIT-licensed portions
inherited from the pre-fork PixelPlayer repository (MIT through 2026-05-12, before upstream
switched to a proprietary licence). CarpeLines itself remains GPL-3.0-or-later.
评论