I am recording audio using AudioRecord
. Currently I am using 44100 as sample rate and 16bit as AudioFormat
.
Can I use 48000 as sample rate and 24bit as AudioFormat
?
Below is the code with sample rate 44100 and audio format as 16bit.
int SAMPLE_RATE = 44100;
int mBufferSize = AudioRecord.getMinBufferSize(SAMPLE_RATE, AudioFormat.CHANNEL_IN_MONO,
AudioFormat.ENCODING_PCM_16BIT);
AudioRecord mRecorder = new AudioRecord(MediaRecorder.AudioSource.DEFAULT, SAMPLE_RATE ,
AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT, mBufferSize);
if (AudioRecord.STATE_INITIALIZED == mRecorder.getState()) {
mRecorder.startRecording();
}
As per Developer site, 44100Hz is the highest sample rate available. My question is, can i use 48000Hz with 24bit Audio format.
Thanks
As per this link we can record audio using 24 bits per sample. 24 Bits Per Sample With Android L, the sample resolution will be increased from 16bit PCM to 24bit for better results. Even though many smartphones released in 2013 supported 24bit 96khz DAC, the Android OS was never capable of using it.