安卓系统降低音频采样频率代码
最编程
2024-06-30 09:29:33
...
private void simpleDownSample() {
File BeforeDownSampleFile = new File(RawRecordFilePath);
File DownSampled = new File(DownSampledFilePath);
try {
FileInputStream fileInputStream = new FileInputStream(BeforeDownSampleFile);
FileOutputStream fileOutputStream = new FileOutputStream(DownSampled);
new SSRC(fileInputStream, fileOutputStream, 44100, 8000,
2,
2,
1, Integer.MAX_VALUE, 0, 0, true);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
上一篇: ADC采样
下一篇: Python 如何批量转换视频音频采样率
推荐阅读