mirror of
https://github.com/koel/koel.git
synced 2026-04-25 08:46:00 +03:00
[PR #2154] [MERGED] feat: add synchronized LRC lyrics support #2114
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#2114
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/koel/koel/pull/2154
Author: @DzmingLi
Created: 10/25/2025
Status: ✅ Merged
Merged: 10/29/2025
Merged by: @phanan
Base:
master← Head:lyrics-features-without-nix📝 Commits (7)
ba2d542fix: preserve LRC timestamps in lyrics73e950efeat: add synchronized lyrics display with LRC support385b386refactor: improve LyricsPane component for synchronized lyrics493aec7refactor: extract synchronized lyrics into separate componentsbf667b1test: add comprehensive tests for synchronized lyrics7391e0bfix: update test to reflect preserved LRC timestamps behaviorfe56925feat: handle lyrics lines without timestamps in LRC format📊 Changes
9 files changed (+410 additions, -5 deletions)
View changed files
📝
app/Casts/SongLyricsCast.php(+2 -2)📝
resources/assets/js/components/ui/LyricsPane.spec.ts(+88 -0)📝
resources/assets/js/components/ui/LyricsPane.vue(+76 -1)➕
resources/assets/js/components/ui/SyncLyricsLine.spec.ts(+31 -0)➕
resources/assets/js/components/ui/SyncLyricsLine.vue(+38 -0)➕
resources/assets/js/components/ui/SyncLyricsPane.spec.ts(+50 -0)➕
resources/assets/js/components/ui/SyncLyricsPane.vue(+114 -0)➕
resources/assets/js/components/ui/__snapshots__/SyncLyricsPane.spec.ts.snap(+9 -0)📝
tests/Unit/Models/SongTest.php(+2 -2)📄 Description
Description
This PR adds support for synchronized LRC lyrics with real-time highlighting and auto-scrolling. When a song has LRC-formatted lyrics with timestamps, the lyrics pane will automatically synchronize with playback, highlighting the current line and scrolling to keep it centered.
Motivation
Koel already supports reading LRC files (#1447, #1502) but displays them as plain text without synchronization. This enhancement provides a karaoke-style lyrics experience that improves the music listening experience, especially for users who enjoy following along with lyrics.
Checklist
Technical Details
Backend Changes
Frontend Changes
/\[(\d{2}):(\d{2})\.(\d{2,3})\](.*)/gCompatibility
To cope with this , I also finished the synced lyrics feature for the mobile app and opened a separate PR
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.