Convert 8kHz mulaw to 16KHz PCM in real time
问题 In my POC I'm receiving a conversation streaming from Twilio in 8kHz mulaw and I want to transcribe it using Amazon Transcribe that needs to get the audio in 16KHz and PCM. I found here how to convert a file but failed to do this in streaming... The code for a file is: File sourceFile = new File("<Source_Path>.wav"); File targetFile = new File("<Destination_Path>.wav"); AudioInputStream sourceAudioInputStream = AudioSystem.getAudioInputStream(sourceFile); AudioInputStream