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