GroupDocsGists
10/19/2017 - 11:16 AM

ReadLayrics3TagInMp3.vb

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

' get Lyrics3 v2.00 tag
Dim lyrics3Tag As Lyrics3Tag = mp3Format.Lyrics3v2

' check if Lyrics3 is presented. It could be absent.
If lyrics3Tag IsNot Nothing Then
    ' 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
    Dim allFields As Lyrics3Field() = lyrics3Tag.Fields

    For Each lyrics3Field As Lyrics3Field In allFields

        Console.WriteLine("Name: {0}, value: {1}", lyrics3Field.Name, lyrics3Field.Value)
    Next
End If