SaltPlayerSource icon indicating copy to clipboard operation
SaltPlayerSource copied to clipboard

Improve TTML Implementation for Apple Music Word-by-Word Lyrics

Open sujitFYI opened this issue 1 year ago • 4 comments

在反馈此问题前请注意 Please note before reporting this issue

  • [x] 已经查看相关帮助内容 Read more about the Salt Player help content
  • [x] 已经在本仓库搜索相关内容(避免重复反馈)Already searched for related content in this repository (to avoid duplicate feedback)
  • [x] 确认仅将提交一个问题(多个问题或者备注提及另外的问题请重新提交新的)Confirm to submit only one issue (if multiple issues or notes mention other issues, please submit a new one separately)

描述 Describe

Salt Player currently does not properly support Apple Music's TTML format for word-by-word lyrics. Many identifier tags (e.g., lead singer, featured singer, background vocals) are displayed as lyrics instead of being correctly processed, which breaks the immersion.

Apple Music Identifier System:

1: Lead singer (shown on the left if encounter first otherwise right)

2: Featured singer (shown on the left if encounter first otherwise right)

1000: Duet or different artist (always on the left)

2000: Intro/background artist (always on the right)

3: Outro/chorus artist (always on the left)

(Brackets): Background vocals (appear in a smaller size when needed under Main Lyrics)

v1: Main vocal (shown on the left if encounter first otherwise right)

v2: Featured artist (shown on the left if encounter first otherwise right)

[BG: Lyrics here]: Background vocals (same behavior as brackets)

Current Issue: Salt Player does not recognize these identifiers and displays them as part of the lyrics, leading to formatting issues and incorrect lyric display.

Salt Player with parsing issue Salt Player with parsing issue

Apple Music with proper implementation Apple Music with proper implementation

Feature Request:

Implement proper TTML parsing for Apple Music lyrics.

Ensure identifiers are correctly recognized and formatted.

Maintain proper positioning (left/right) for different artist roles.

Display background vocals in a smaller font only when necessary.

This improvement will enhance the user experience by making lyrics more immersive and accurate. Thank you for considering this feature!

Extra LRC file with This format

02. Cassie - Long Way 2 Go.lrc.txt 04. Travis Scott - MY EYES [E].lrc.txt

sujitFYI avatar Mar 31 '25 07:03 sujitFYI

Hello, i just noticed this too and wanted to report it but some one did already , just wanted to remind you guys to fix it, waiting for it and excited!

AhmadGamer34 avatar Feb 14 '26 13:02 AhmadGamer34

what is the status of it now?

AhmadGamer34 avatar Feb 14 '26 13:02 AhmadGamer34

This would be awesome to have, anu updates?

Anik200 avatar Jun 26 '26 09:06 Anik200

‎+1 from Android ⁦(Salt Player 12.6.0)⁩. My embedded enhanced LRC files ⁦(Apple Music source, converted by SpotiFLAC)⁩ show the same problem: word-by-word timestamps work, but   v1:  /  v2:   prefixes are rendered as lyric text and   [bg: …]   lines are shown with literal brackets.

‎Example: [02:17.845]v1: <02:17.845>Fro<02:19.728>zen inside, without your touch<02:23.730> [bg: <02:18.812>Frozen inside, with<02:22.812>]

Expected: hide the vocal prefixes and render the bg line as "⁦(Frozen inside, with)⁩" at its start time, the way AMLL ⁦(applemusic-like-lyrics)⁩ does. ‎I see this is In Progress and milestoned for SPW ⁦(Windows)⁩ — please bring the same handling to Android too. Happy to provide full sample files.

ahmdrb avatar Nov 12 '26 07:11 ahmdrb