使用JAVA中的JAVE库将vox转换为wav

时间:2019-09-11 17:48:00

标签: java audio jave

无法通过Java中的jave库将vox转换为wav

        File source = new File("‪D:\\123.vox");
        File target = new File("‪D:\\123.mp3");
        AudioAttributes audio = new AudioAttributes();
        audio.setCodec("libmp3lame");//libmp3lame
        audio.setBitRate(new Integer(128000));
        audio.setChannels(new Integer(2));
        audio.setSamplingRate(new Integer(44100));
        EncodingAttributes attrs = new EncodingAttributes();
        attrs.setFormat("mp3");
        attrs.setAudioAttributes(audio);
        Encoder encoder = new Encoder();        
        encoder.encode(source, target, attrs);

为上述问题提供解决方案,或需要任何其他库将vox转换为wav文件

0 个答案:

没有答案