Read and then write .pcm files using Java

How can I read and then write .pcm files using Java on Android, which I just wrote with a microphone at different frequencies?

 // TODO Auto-generated method stub File fileForSaving = new File(Environment. getExternalStorageDirectory(),recordings/" + name + ".pcm"); File file = new File(Environment.getExternalStorageDirectory(),"test.pcm"); int sampleFreq = (Integer)freqset[SELECTED_INDEX]; 

I want to save a file to a ForSaving file with different frequencies.

+4
source share

Source: https://habr.com/ru/post/1479474/


All Articles