Java - getting error with audio input stream for opening mp3 file -


I am trying to change the WAV file from MP3 and be able to proceed with the conversion post I get an error when opening an MP3 file is required -

  audio file format input file format = audio system. GetAudio file format (new file ("C: / dg. Mp3")); AudioInputStream ais = AudioSystem.getAudioInputStream (new file ("C: /dg.mp3"));  

Error:

javax.sound.sampled.UnsupportedAudioFileException: File is not a supported file type on javax.sound.sampled.AudioSystem.getAudioFileFormat (unknown source) MP3toWav .main (MP3toWav.java10)

Any help on this is appreciated? I have searched a lot but unable to find any answers for my problem!

You can not open the MP3 file The default Java Audio API lets you access an external API such as


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -