unsynchronised lyrics

The place for "I can't figure out how to..." questions.
Post Reply
Posts: 2
Joined: Thu Oct 04, 2007 4:45 pm

unsynchronised lyrics

Post by larryseyer » Thu Oct 04, 2007 4:57 pm

I LOVE getid3! (using getid3-1.7.7)

This has saved me TONS of work trying to do what I'm trying to do.

I've gotten almost everything to work just great... I can read all the tags and format them the way that I need to.

However, it seems that no matter what I do, and no matter what options I choose, I cannot read 'USLT' Lyrics from mp3 files.

I am positive that the lyrics are there since I've confirmed this by both reading the mp3 file in binary, and also reading it both in 'Tag and Rename' along with 'Itunes'... So the lyrics are there and appear to be properly formatted.

Here is a link in case you want to test this yourselves:


However, I cannot seem to be able to read them using getid3!

Here is what I have tried:

$getID3 = new getID3;
$filename = "test.mp3";
$ThisFileInfo = $getID3->analyze($filename);

echo @$ThisFileInfo['id3v2']['USLT'][0]['unsynchronised_lyrics'] . "<br>";
echo @$ThisFileInfo['comments_html']['unsynchronised_lyrics'][0]. "<br>";
echo @$ThisFileInfo['comments']['unsynchronised_lyrics'][0] . "<br>";
echo @$ThisFileInfo['tags']['id3v2']['unsynchronised_lyrics'][0] . "<br>";

And after reading this forum, I also tried:

echo @$ThisFileInfo['id3v2']['USLT'][0]['unsynchronised lyrics'] . "<br>";
echo @$ThisFileInfo['comments_html']['unsynchronised lyrics'][0]. "<br>";
echo @$ThisFileInfo['comments']['unsynchronised lyrics'][0] . "<br>";
echo @$ThisFileInfo['tags']['id3v2']['unsynchronised lyrics'][0] . "<br>";

(with the space in there)

Nothing seems to work.

Anyone know what I'm doing wrong?


Last edited by larryseyer on Thu Oct 04, 2007 5:12 pm, edited 1 time in total.

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Thu Oct 04, 2007 5:06 pm

Do a

print "<pre>";

Posts: 2
Joined: Thu Oct 04, 2007 4:45 pm

Post by larryseyer » Thu Oct 04, 2007 5:17 pm

Allan Hansen wrote:Do a

print "<pre>";
You, my friend, are a genius!

I was able to figure out that the tag is "unsynchronised_lyric" and NOT "unsynchronised_lyrics".

That was all I was doing wrong.

Thanks for your quick response and your invaluable help!

Best to you!


Post Reply