I am integrating an media player kind of app
I have converted the audio file format into buffer, and I have applied bass,treble filters with high gain then i got noise.How to minimise or eliminate that noise from audio in ffmpeg or is there any another way such that i can remove noise using java code by doing changes in byte i.e(audio buffer)
here is my code:
void playSound(byte[] buf, final int size)
{
trackStereo.write(buf, 0,size);
trackStereo.play();
buf = null;
}
bufSizeStereo = AudioTrack.getMinBufferSize(44100,
AudioFormat.CHANNEL_OUT_STEREO,
AudioFormat.ENCODING_PCM_16BIT);
trackStereo = new AudioTrack(AudioManager.STREAM_MUSIC, 44100,
AudioFormat.CHANNEL_OUT_STEREO,
AudioFormat.ENCODING_PCM_16BIT, bufSizeStereo,
AudioTrack.MODE_STREAM);
bytes = new byte[bufSizeStereo];
how remove noise from byte before playing the audio
Thanks