Exception in thread "main" java.lang.IllegalArgumentException: Unsupported conversion: PCM_SIGNED 16000.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian from PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian
at javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:955)
final AudioInputStream pcmAIS = AudioSystem.getAudioInputStream(pcmFormat, mp3AIS);
這行代碼出問題了
JAVA將MP3轉(zhuǎn)為WAV想搞個百度語音識別玩玩橄镜,但人家要固定格式的音頻(關(guān)于百度語音識別的請查看官方文檔——百度語音識別SDK),于是就上網(wǎng)找呀找呀,結(jié)果轉(zhuǎn)出來的要不就是聽不了損壞了橄抹,要不就是不能給...