i Finally found it searching. The solution was
mic = Microphone.getMicrophone();
mic.codec = SoundCodec.SPEEX;
mic.setUseEchoSuppression(true);
mic.gain = 75;
mic.rate = 44;
mic.setSilenceLevel(5, 1000);
mic.encodeQuality =10;
I hope this be useful for someone.