Exemple #1
0
 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);
 }
Exemple #2
0
 @Override
 public void stop() {
   audioRec.stop();
 }
Exemple #3
0
 @Override
 public void start() {
   audioRec.start();
 }
Exemple #4
0
 public void setSpeexAEC(boolean on) {
   audioRec.setSpeexAEC(on);
 }