my dog learned polymorphism*
The moose likes Java in General and the fly likes Audio Format conversion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Audio Format conversion" Watch "Audio Format conversion" New topic
Author

Audio Format conversion

zainu Mehmood
Ranch Hand

Joined: May 09, 2007
Posts: 45
Hi All,
Well i want to convert and WMA audio file to MP3 auddio file but i am just unable to find any method,please do help
Anubhav Anand
Ranch Hand

Joined: May 18, 2007
Posts: 341

Hello Abid,

To start with you will require to study two java packages namely javax.sound.sampled and javax.sound.midi.

These two packages have all relevant classes that will assist you to write a program to convert sound formats.

Hope that helps
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42946
    
  70
These two packages have all relevant classes that will assist you to write a program to convert sound formats.

While that's true in general, I don't think it helps here because neither WMA nor MP3 are supported by javax.sound. MP3 capabilities can be added as described here. Not sure about WMA, though. File formats that that are used almost exclusively on Windows tend to be not well supported in the Java world.

Also, both MP3 and WMA are sampled formats, so the javax.sound.midi package will not be involved.
zainu Mehmood
Ranch Hand

Joined: May 09, 2007
Posts: 45
Exactly!! this was the main problem what Ulf identify
Anubhav Anand
Ranch Hand

Joined: May 18, 2007
Posts: 341

Well I had once worked with audio somewhile ago. It was a simple job.
Thanks Ulf for enriching my knowledge as well.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Audio Format conversion