, .jar, WMA , , WMA , , . SPI, , , , , , .
. JAVE , , , , , wma . JAVE , Encoder.
try {
EncodingAttributes attr = new EncodingAttributes();
attr.setAudioAttributes(new AudioAttributes());
attr.setVideoAttributes(new VideoAttributes());
attr.setFormat("wav");
File wma = new File("Resources\\b.wma");
File target = new File("Resources\\target.wav");
Encoder encoder = new Encoder();
encoder.encode(wma, target, attr);
AudioInputStream is = AudioSystem.getAudioInputStream(target);
Clip clip = AudioSystem.getClip();
clip.open(is);
clip.setFramePosition(0);
clip.start();
} catch (IllegalArgumentException | EncoderException e) {
e.printStackTrace();
} catch (UnsupportedAudioFileException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} catch (LineUnavailableException e) {
e.printStackTrace();
}