}
AudioFormat audioFormat = preferenceUtils.getEncodingFormat();
log.debug("Starting Encoder with " + audioFormat.toString());
log.info("AudioEncoder will be initalized.");
encoderStream = new Pcm2SpeexAudioInputStream(
recorder.getAudioInputStream(), audioFormat,
AudioSystem.NOT_SPECIFIED);
if (preferenceUtils.isDtxEnabled()) {
encoderStream.getEncoder().setDtx(true);