aspose file tools*
The moose likes I/O and Streams and the fly likes Edit audio meta tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Edit audio meta tag" Watch "Edit audio meta tag" New topic
Author

Edit audio meta tag

Udaya Wijenayake
Ranch Hand

Joined: May 15, 2009
Posts: 30
Hi Everyone,

How can i access audio meta tag using a Java application. I want to add a new meta tag named as "Speed" to an audio file. Is there any supporting Java library to access audio meta tag ?


SCJP 1.5
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19543
    
  16

What type of audio file is it? Meta tags for WMV and MP3 for instance are quite different.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Udaya Wijenayake
Ranch Hand

Joined: May 15, 2009
Posts: 30
Its a mp3 audio file. It used ID3v1 tag.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19543
    
  16

java id3v1
First hit on SourceForge seems pretty good to me.
Udaya Wijenayake
Ranch Hand

Joined: May 15, 2009
Posts: 30
Thanks Rob. I did it using org.farng.mp3 package.
But in my application (an application to generate spectrogram) it reads only .wav files. So is there any other library to access the tags of a .wav audio file or a supportive library to convert mp3 into a .wav file.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19543
    
  16

I don't think WAVE supports tags. JLayer claims it can convert MP3 into WAVE; just scroll down a bit.
Udaya Wijenayake
Ranch Hand

Joined: May 15, 2009
Posts: 30
Thanks Rob,
Now all are going well. I used JLayer converter to convert MP3 to Wave. It is very easy to use.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Edit audio meta tag
 
Similar Threads
META-Tags
jar files that can read video and audio meta data
Serverlet/JSP
could not get audio input stream from input stream
HTML 5 audio and video tag