Skip to content

Split synced and unsynced lyrics #1367

Open

Description

@752986

Hello there, I am here trying to improve FLAC lyric support in KDE Elisa. I posted an overview of the problem at https://discuss.kde.org/t/flac-lyrics-fix-where-to-contribute/47383, and was pointed here first. Here's the part relevant to TagLib:

Many formats make a distinction between synchronized and unsynchronized lyric data:

  • Vorbis has LYRICS and UNSYNCEDLYRICS
  • ID3 has SYLT and USLT
  • ASF has Lyrics_Synchronised and Lyrics
  • Matroska has LYRICS (unsynced, synced lyrics go in a subtitle track)

But currently, TagLib normalizes ID3 USLT and ASF Lyrics to LYRICS, and passes the rest through. I have found at least one other instance where this inconsistent behavior has been confusing: https://community.mp3tag.de/t/embedded-lyrics-and-which-tags-to-use/64698/6.

I propose that instead, all synchronized or unspecified lyric tags are normalized to LYRICS, and all unsynchronized lyric tags are normalized to UNSYNCEDLYRICS. In other words, https://taglib.org/api/p_propertymapping.html would end up looking like this:

Key ID3v2 RIFF MP4 APE ASF Matroska
LYRICS SYLT ©lyr WM/Lyrics_Synchronised
UNSYNCEDLYRICS USLT WM/Lyrics LYRICS

I think this would be better than the current situation where lyrics are either in LYRICS or various undocumented keys. However, it would be an API break, and it does mean that API consumers would need to try both keys when reading or writing lyrics. Is a breaking change like this likely to be accepted?

Activity

  1. ufleisch commented on May 30, 2026

    @ufleisch
    Contributor

    First of all, I’d like to say that I’d appreciate it if more apps supported synchronized lyrics. For ID3v2, there are the standard USLT and SYLT frames, so we do not have to discuss about them. At the moment, the property interface key "LYRICS" maps to USLT (https://taglib.org/api/p_propertymapping.html), so we must assume that there are applications which use "LYRICS" for unsynchronized lyrics, changing this would be a breaking change and thus not desired.

    Your request is motivated by support for FLAC files, for this format, most applications I have looked at (Atunes, Kid3, Media Monkey, MusicBee, TagScanner) seem to use "LYRICS" for unsynchronized lyrics, only Mp3Tag uses "UNSYNCEDLYRICS", so we should stick with "LYRICS". I have not seen any FLAC files containing synchronized lyrics, so I can only cite what the AI told me: There seem to be applications supporting synchronized lyrics in LRC format in "LYRICS" or "SYNCEDLYRICS" Vorbis comments, best compatibility can be achieved with a separate .lrc file with the same base name as the .flac file. So my suggestion for Eliza would be to look for external .lrc files, and support synchronized lyrics both with "LYRICS" and "SYNCEDLYRICS" Vorbis comments. "LYRICS" could be used for both synchronized (if it contains text in LRC format) and unsynchronized lyrics (if no LRC is detected).

    Concerning your comment about MP4 ©lyr atoms for synchronized lyrics: iTunes uses this atom with a simple text field to enter unsynchronized lyrics. All other applications I have looked at (Media Monkey, MP3Tag, MusicBee, Qoobar, TagScanner, Kid3) also use it for unsynchronized lyrics, so I do not know why you assume that this atom is used for synchronized lyrics.

    Regarding ASF tags: Media Monkey, MP3Tag, MusicBee, TagScanner, and Kid3 use "WM/Lyrics" for unsynchronized lyrics, I have never seen "WM/Lyrics_Synchronised" tags, but there is documentation for it on Microsoft Learn. However, I have doubts if anyone sees enough importance to implement this for TagLib.

    My suggestion to provide unified support for synchronized lyrics in a backwards compatible way would be to introduce a "SYNCEDLYRICS" key in the standard property interface with a value of a single string containing the synchronized lyrics in LRC format. For the formats using Vorbis Comments, this would be directly mapped into a "SYNCEDLYRICS" comment. For ID3v2, it would be mapped to the SYLT frame format. For ASF files, it would be mapped to "WM/Lyrics_Synchronised" if such a tag is supported. For all other formats, the "SYNCEDLYRICS" will not be supported and external .lrc files should be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions