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