usmanazizgroupdocs
10/7/2016 - 9:13 AM

ReadLayrics3TagInMp3.cs

// For complete examples and data files, please go to https://github.com/groupdocs-metadata/GroupDocs.Metadata-for-.NET
// initialize Mp3Format class
Mp3Format mp3Format = new Mp3Format((Common.MapSourceFilePath(filePath)));

// get Lyrics3 v2.00 tag
Lyrics3Tag lyrics3Tag = mp3Format.Lyrics3v2;

// check if Lyrics3 is presented. It could be absent.
if (lyrics3Tag != null)
{
    // Display defined tag values
    Console.WriteLine("Album: {0}", lyrics3Tag.Album);
    Console.WriteLine("Artist: {0}", lyrics3Tag.Artist);
    Console.WriteLine("Track: {0}", lyrics3Tag.Track);

    // get all fields presented in Lyrics3Tag
    Lyrics3Field[] allFields = lyrics3Tag.Fields;

    foreach (Lyrics3Field lyrics3Field in allFields)
    {
        Console.WriteLine("Name: {0}, value: {1}", lyrics3Field.Name, lyrics3Field.Value);

    }
}