.wav 오디오 파일에서 웨이브 폼의 그래프를 플롯하려고합니다. 이 사이트에서 .WAV의 바이트를 추출하는 기능 찾을 :오디오 웨이브 폼 그래프 플롯 Java
ByteArrayOutputStream out = new ByteArrayOutputStream();
BufferedInputStream in = null;
try {
in = new BufferedInputStream(new FileInputStream(args[0]));
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
int read;
byte[] buff = new byte[1024];
while ((read = in.read(buff)) > 0)
{
out.write(buff, 0, read);
}
out.flush();
byte[] audioBytes = out.toByteArray();
for (int i=0; i<audioBytes.length; i++) {
System.out.println(audioBytes[i]);
}
그럼 내가 콘솔에서 볼 수있는 포인트를 사용을 (System.out에이 ...) "Microsoft Excel에서"내 오디오 파형을 플롯합니다 그리고 risult은 다음과 같습니다
는waveform on Excel 하지만 내 .wav 파일의 파형은 파형 다른 많은입니다 플롯 (예) 오픈 소스 "프라 트"
waveform on Praat 어디에서 잘못? 내가 가져야하는 파일의 바이트가 아닌가요?
아 맞다 그래서, 당신을 위해 어떤 점을 나는 같이 그 차트를 가지고해야합니다.! Praat의 이미지? –