public void stopRecording(){
  if (inputSpeech != null) {
    inputSpeech.setAsFinal();
    if (SAVE_SPEECH.length() > 0 && inputSpeech.length() > MIN_DURATION) {
      AudioUtils.generateFile(inputSpeech.toByteArray(),new File(SAVE_SPEECH));
    }
    inputSpeech=null;
    system.addContent(system.getSettings().floor,"free");
  }
}

public void stopRecording ( ) { if ( inputSpeech != null ) { inputSpeech . setAsFinal ( ) ; if ( SAVE_SPEECH . length ( ) > 0 && inputSpeech . length ( ) > MIN_DURATION ) { AudioUtils . generateFile ( inputSpeech . toByteArray ( ) , new File ( SAVE_SPEECH ) ) ; } inputSpeech = null ; system . addContent ( system . getSettings ( ) . floor , "free" ) ; } }
stops the recording of the current speech segment .
