Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cracks in sound while recording #4

Open
hollmannlu opened this issue Aug 27, 2014 · 0 comments
Open

cracks in sound while recording #4

hollmannlu opened this issue Aug 27, 2014 · 0 comments

Comments

@hollmannlu
Copy link

hi, while recording audio, there appears to be some cracks/noise in your raw and wav-file (Nexus5, Android 4.4.4)... you could change buffersize to fix this like below:

in AudioRecordingThread:
audioBuffer = new byte[bufferSize * 2];
read = record.read(audioBuffer, 0, bufferSize * 2);
AudioRecord record = new AudioRecord(AudioSource.VOICE_RECOGNITION, //AudioSource.MIC
SAMPLING_RATE,
AudioFormat.CHANNEL_IN_MONO,
AudioFormat.ENCODING_PCM_16BIT,
bufferSize * 4);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant