private void register() { myServ.config = new ConfigParameters(); myServ.config.put("codec", CODEC.toString()); myServ.config.put("sample-rate", audioConf.sampleRate); myServ.config.put("frame-size", audioConf.frameSize); byte[] cb = audioRec.getConfigBytes(); if (cb != null) { myServ.config.put("config-bytes", cb); } myId = airtube.registerService(myServ, this); LOG.info("registered myself as " + myId); }
@Override public void stop() { audioRec.stop(); }
@Override public void start() { audioRec.start(); }
public void setSpeexAEC(boolean on) { audioRec.setSpeexAEC(on); }