This example shows how to update hidden metadata in an MP3 file.
TypeScript
// Load file into Metadata class constructor
var metadata = new groupdocs.metadata.Metadata('input.mp3');
var root = metadata.getRootPackageGeneric();
if (root.getLyrics3V2() == null) {
root.setLyrics3V2(new LyricsTag());
}
// Update lyrics data
root.getLyrics3V2().setLyrics("[00:01]Test lyrics");
root.getLyrics3V2().setArtist("test artist");
root.getLyrics3V2().setAlbum("test album");
root.getLyrics3V2().setTrack("test track");
// Add a custom field to the tag
root.getLyrics3V2().set(new LyricsField("ABC", "custom value"));
// Save the result
metadata.save('output.mp3');