This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 39535
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
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
 
Similar Threads
How convert mp4 audio to mp3 on the fly (at runtime)?
Edit audio meta tag
Need pure java sound api
Convert audio file into bytes
convert flash audio to u-law